Add subfolders creation
[oom/platform/cert-service.git] / certServiceClient / README.md
index c1d56ad..b300534 100644 (file)
@@ -5,11 +5,6 @@
 mvn clean package
 ```
     
-### Building Docker image manually
-Go to the certServiceClient subfolder and execute following statement (1.0.0-SNAPSHOT is related to a current project.version parameter):
-```
-docker build --build-arg VERSION=1.0.0-SNAPSHOT -t onap/org.onap.aaf.certservice.aaf-certservice-client .
-```
     
 ### Install the package into the local repository
 ```
@@ -21,15 +16,18 @@ mvn clean install
 mvn clean install -P docker
 ```   
 
-### Running Docker container local
+### Nexus container image
 ```
-docker run --name aaf-certservice-client onap/org.onap.aaf.certservice.aaf-certservice-client
+nexus3.onap.org:10001/onap/org.onap.aaf.certservice.aaf-certservice-client:latest
 ```
 
-### Running Docker container from nexus
-```
-docker run --name aaf-certservice-client nexus3.onap.org:10001/onap/org.onap.aaf.certservice.aaf-certservice-client:1.0.0
-```
+### Running local client application as standalone docker container
+CertService API and client must be running in same network.
+
+You need certificate and trust anchors (in JKS format) to connect to CertService API via HTTPS. Information how to generate truststore and keystore files you can find in CertService main README.
+
+Information how to run you can find in CertService main README and official documentation, see [Read The Docs](https://docs.onap.org/projects/onap-aaf-certservice/en/latest/sections/usage.html)
+
 
 ### Logs locally
 
@@ -40,4 +38,17 @@ var/log/onap/aaf/certservice-client/certservice-client.log
 ### Logs in Docker container
 ```
 docker logs aaf-certservice-client
-```
\ No newline at end of file
+```
+###Exit codes
+```
+0      Success
+1      Invalid client configuration
+2      Invalid CSR configuration 
+3      Fail in key pair generation
+4      Fail in  CSR generation
+5      CertService HTTP unsuccessful response
+6      Internal HTTP Client connection problem
+7      Fail in PEM conversion
+8      Fail in Private Key to PEM Encoding
+9      Wrong TLS configuration
+10     File could not be created