diff options
author | Tomasz Wrobel <tomasz.wrobel@nokia.com> | 2020-03-09 13:09:57 +0100 |
---|---|---|
committer | Tomasz Wrobel <tomasz.wrobel@nokia.com> | 2020-03-09 14:50:49 +0100 |
commit | d42cfe761abd4458e74c826486da43d11d48e07f (patch) | |
tree | 36dbedcf5e8b5f850e285feea0168f38f008a667 /certServiceClient | |
parent | 6f0873762d86352f9011a0efd5409e39fff30075 (diff) |
Add descrption of usage client container
Issue-ID: AAF-996
Signed-off-by: Tomasz Wrobel <tomasz.wrobel@nokia.com>
Change-Id: I34cafe8c7ad917a66a251692910d5f6188444c92
Diffstat (limited to 'certServiceClient')
-rw-r--r-- | certServiceClient/README.md | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/certServiceClient/README.md b/certServiceClient/README.md index c1d56ad7..092eb326 100644 --- a/certServiceClient/README.md +++ b/certServiceClient/README.md @@ -31,6 +31,30 @@ docker run --name aaf-certservice-client onap/org.onap.aaf.certservice.aaf-certs docker run --name aaf-certservice-client nexus3.onap.org:10001/onap/org.onap.aaf.certservice.aaf-certservice-client:1.0.0 ``` +### Running client as standalone docker container +``` +AAFCERT_CLIENT_IMAGE=nexus3.onap.org:10001/onap/org.onap.aaf.certservice.aaf-certservice-client:latest +DOCKER_ENV_FILE= <path to envfile> +NETWORK_CERT_SERVICE= <docker network of cert service> + +docker run --env-file $DOCKER_ENV_FILE --network $NETWORK_CERT_SERVICE $AAFCERT_CLIENT_IMAGE +``` +Sample Environment file: +```aidl +#Client envs +REQUEST_TIMEOUT=1000 +OUTPUT_PATH=/var/log +CA_NAME=RA +#Csr config envs +COMMON_NAME=onap.org +ORGANIZATION=Linux-Foundation +ORGANIZATION_UNIT=ONAP +LOCATION=San-Francisco +STATE=California +COUNTRY=US +SANS=example.com:example2.com +``` + ### Logs locally path: @@ -40,4 +64,16 @@ var/log/onap/aaf/certservice-client/certservice-client.log ### Logs in Docker container ``` docker logs aaf-certservice-client +``` +###Exit codes +``` +0 Success +1 Invalid client configuration +2 Invalid CSR data +3 Failed key pair generation +4 Failed CSR generation +5 API return unsuccessful response +6 Problem with Http Client connection +7 Failed PKCS12 conversion +8 Failed Private Key to PEM Encoding ```
\ No newline at end of file |