1 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
2 .. http://creativecommons.org/licenses/by/4.0
3 .. Copyright 2020 NOKIA
8 Certification Service API
9 --------------------------
10 To see console Certification Service logs use:
16 docker logs <cert-service-container-name>
22 kubectl logs <cert-service-pod-name>
24 Console logs contain logs for logging levels from **DEBUG** to **ERROR**.
26 Certification Service logs for different logging levels are available in the container:
32 docker exec -it <cert-service-container-name> bash
38 kubectl exec -it <cert-service-pod-name> bash
42 /var/log/onap/aaf/certservice
46 - audit.log - contains logs for **INFO** logging level
47 - debug.log - contains logs for logging levels from **DEBUG** to **ERROR**
48 - error.log - contains logs for **ERROR** logging level
50 User cannot change logging levels.
53 Certification Service Client
54 ----------------------------
55 To see console Certification Service Client logs use :
61 docker logs <cert-service-client-container-name>
64 CertService Client is used as init container in other components. In the following example:
65 - *<some-component-pod-name>* refers to the component that uses CertService Client as init container
66 - *<cert-service-client-init-container-name>* refers to name of init container used by the mentioned component. It can be found by executing *'kubectl descrine pod <some-component-pod-name>'* and looking into 'Init Containers section'
70 kubectl logs <some-component-pod-name> -c <cert-service-client-init-container-name>
74 | Container stops after execution, so all logs available are printed to console.
75 | User cannot change logging levels.
77 Client application exits with following exit codes:
80 +-------+------------------------------------------------+
81 | Code | Information |
82 +=======+================================================+
84 +-------+------------------------------------------------+
85 | 1 | Invalid client configuration |
86 +-------+------------------------------------------------+
87 | 2 | Invalid CSR configuration |
88 +-------+------------------------------------------------+
89 | 3 | Fail in key pair generation |
90 +-------+------------------------------------------------+
91 | 4 | Fail in CSR generation |
92 +-------+------------------------------------------------+
93 | 5 | CertService HTTP unsuccessful response |
94 +-------+------------------------------------------------+
95 | 6 | Internal HTTP Client connection problem |
96 +-------+------------------------------------------------+
97 | 7 | Fail in PKCS12 conversion |
98 +-------+------------------------------------------------+
99 | 8 | Fail in Private Key to PEM Encoding |
100 +-------+------------------------------------------------+
101 | 9 | Wrong TLS configuration |
102 +-------+------------------------------------------------+