X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=certServiceClient%2FREADME.md;h=63d9780b481d7ab306ac8a008162e57168fa5bb3;hb=944cae91430e83ddd801386a80b5333f2bff6775;hp=125202185e7683ea804fd543f0290bfbdc67b8d0;hpb=4f34110db72d7e7f29a0efc14e2f55965967e37d;p=oom%2Fplatform%2Fcert-service.git diff --git a/certServiceClient/README.md b/certServiceClient/README.md index 12520218..63d9780b 100644 --- a/certServiceClient/README.md +++ b/certServiceClient/README.md @@ -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,49 +16,28 @@ 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.oom.platform.cert-service.oom-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-oom-platform-cert-service/en/latest/sections/usage.html) -### 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= -NETWORK_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: ``` -var/log/onap/aaf/certservice-client/certservice-client.log +var/log/onap/oom/certservice-client/certservice-client.log ``` ### Logs in Docker container ``` -docker logs aaf-certservice-client +docker logs oom-certservice-client ``` ###Exit codes ``` @@ -74,5 +48,7 @@ docker logs aaf-certservice-client 4 Fail in CSR generation 5 CertService HTTP unsuccessful response 6 Internal HTTP Client connection problem -7 Fail in PKCS12 conversion +7 Fail in PEM conversion 8 Fail in Private Key to PEM Encoding +9 Wrong TLS configuration +10 File could not be created