2022-03-14 23:10:03,694 main INFO Log4j appears to be running in a Servlet environment, but there's no log4j-web module available. If you want better web container support, please add the log4j-web JAR to your web archive or server lib directory. 2022-03-14 23:10:04,557 main INFO Log4j appears to be running in a Servlet environment, but there's no log4j-web module available. If you want better web container support, please add the log4j-web JAR to your web archive or server lib directory. . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.5.8) 2022-03-14 23:10:05.194  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Mar 14, 2022 11:10:06 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Mar 14, 2022 11:10:06 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Mar 14, 2022 11:10:06 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Mar 14, 2022 11:10:06 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-03-14 23:10:07.204 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-03-14 23:10:07.490  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-03-14 23:10:07.642  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-03-14 23:10:08.260 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-03-14 23:10:08.263 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.CertificationController: {GET [/v1/certificate-update/{caName}], produces [application/json]}: updateCertificate(String,String,String,String,String) {GET [/v1/certificate/{caName}], produces [application/json]}: signCertificate(String,String,String) 2022-03-14 23:10:08.264 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-03-14 23:10:08.267 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.s.b.a.w.s.e.BasicErrorController: { [/error]}: error(HttpServletRequest) { [/error], produces [text/html]}: errorHtml(HttpServletRequest,HttpServletResponse) 2022-03-14 23:10:08.305 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.s.a.OpenApiResource: {GET [/v3/api-docs.yaml], produces [application/vnd.oai.openapi]}: openapiYaml(HttpServletRequest,String) {GET [/v3/api-docs], produces [application/json]}: openapiJson(HttpServletRequest,String) 2022-03-14 23:10:08.307 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.s.u.SwaggerWelcome: {GET [/docs]}: redirectToUi(HttpServletRequest) {GET [/v3/api-docs/swagger-config], produces [application/json]}: openapiYaml(HttpServletRequest) 2022-03-14 23:10:08.410 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-03-14 23:10:08.906 DEBUG 1 [ main] o.s.w.s.h.SimpleUrlHandlerMapping  : 'resourceHandlerMapping' {/webjars/**=ResourceHttpRequestHandler [classpath [META-INF/resources/webjars/]], /**=ResourceHttpRequestHandler [classpath [META-INF/resources/], classpath [resources/], classpath [static/], classpath [public/], ServletContext [/]], /**/swagger-ui/**=ResourceHttpRequestHandler [classpath [META-INF/resources/webjars/]]} Mar 14, 2022 11:10:09 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-03-14 23:10:09.701  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 6.669 seconds (JVM running for 8.052) Mar 14, 2022 11:10:38 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-03-14 23:11:02.064  INFO 1 [nio-8443-exec-8] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-03-14 23:11:02.071 DEBUG 1 [nio-8443-exec-8] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-03-14 23:11:02.110 DEBUG 1 [nio-8443-exec-8] .o.c.c.CertificationResponseModelFactory : Received CSR meta data: CSR: { Subject: { C=US,ST=California,L=San-Francisco,O=Linux-Foundation,OU=ONAP,CN=sdnc.simpledemo.onap.org }, SANs: [sdnc.simpledemo.onap.org] } 2022-03-14 23:11:02.113 DEBUG 1 [nio-8443-exec-8] .o.c.c.CertificationResponseModelFactory : Found server for given CA name: Cmpv2Server{authentication=Authentication{ iak=*****, rv=*****}, caName='RA', issuerDN='O=EJBCA Container Quickstart,CN=ManagementCA,UID=12345', url='http://ejbca:8080/ejbca/publicweb/cmp/cmpRA'} 2022-03-14 23:11:02.127  INFO 1 [nio-8443-exec-8] .o.c.c.CertificationResponseModelFactory : Sending initialization request for certification model for CA named: RA, and certificate signing request: CSR: { Subject: { C=US,ST=California,L=San-Francisco,O=Linux-Foundation,OU=ONAP,CN=sdnc.simpledemo.onap.org }, SANs: [sdnc.simpledemo.onap.org] } 2022-03-14 23:11:02.129  INFO 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-03-14 23:11:02.130  INFO 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-03-14 23:11:02.131 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-03-14 23:11:02.132 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-14 23:11:02.135 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-03-14 23:11:02.141 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-03-14 23:11:02.145 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-03-14 23:11:02.182 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-03-14 23:11:02.186 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-14 23:11:02.187 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-14 23:11:02.190 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-03-14 23:11:02.701  INFO 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-03-14 23:11:02.704  INFO 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-03-14 23:11:02.705 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-03-14 23:11:02.707 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-03-14 23:11:02.718  INFO 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-03-14 23:11:02.719  INFO 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-03-14 23:11:02.720 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-03-14 23:11:02.720 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-14 23:11:02.721 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-14 23:11:02.734 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-03-14 23:11:02.735 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-14 23:11:02.735 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-14 23:11:02.742 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-03-14 23:11:02.742 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-14 23:11:02.743 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-14 23:11:02.744 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Verifying certificate CN=sdnc.simpledemo.onap.org,OU=ONAP,O=Linux-Foundation,L=San-Francisco,ST=California,C=US as part of cert chain with certificate UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart 2022-03-14 23:11:02.773 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 110401675883264403965038509449367963891111715534 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Mon Mar 14 23:08:21 UTC 2022 Final Date: Sat Mar 13 23:08:20 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [89:94:d9:45:36:ba:6c:32:c3:98:b1:74:3f:36:af:70:81:84:48:76] modulus: bc6d167ab5cb32a8f9cfd390c39866cbe2d462b6f864acdf6af08c7e3f3a80792ffd76babcaa99f10d71b7e71933cbd5e7dad60b84ee9caf2d560b6dd9acff586dd931f0f5dcbfef44866d3467ff8c6c583b4470a42b50ed3aaad8640f4c89fe8176e06b0d5779e0463fc5deeced39c2ab46206138cf098cf238e2b686e3d5bc2aa0014a12946039611d319f0dbfdb9630781972e62966fc350458256fea476a497221aeb28afe290bf2e6b23fbd44492d82404a893046fde2c7e3f0988cef6edd8d82b400130a96ce96673a0f19c4370ee718e8b7a08901b1c719eda03592f126c02ad8d00cfb8de86026d7a21508a5cc8db6b4b2c2e05c41b26e5454b31eb53dd0b75337bd0ff02b88c80929c646b5a3f203f24af096cf6e9e143e58720c479c4a6d44246e024bf623bcc342698f56a787860876e6e460dbc04932621ea227b3a09eb4e9a70830ab1c89e809767b208869713ee7c337f0afeaeffe3d5c4db9df9ed2f8675a2ad82ce22a49a80778d5559d4d1c4c235899ca7ddb97c0fc34fb public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 54ee4df9a564ad8bfff0b39c845ba6b88e8982d5 f740ee0700219ba7f7f96db38e65da3b2c9b0850 e8904546d2daabbf8370ed94f8ee5599fcc9f0b5 d2214dc1590673938e270235e32a19569b523d02 71350f823c473774a2f024c76a8f4a60ea2b8441 a8054112648ee4d4563b76b9785a59b12b686414 4e590993e386a3fbcc02dffdae877a6cb76a220a 38ed5acbf13bb9cd7a711e3652c4e64f5a313b48 4e41b794b316b6b28997596aca43e55b41a0cc09 3fd0384ee0e2e1c4ed83ac9458fc5effbbf5f27c 4c728825d0d025b343d3eeda98aff038bc468b90 ad9bb7efa94bea841d6a124651007da076272d1a 02532e60806050ce6bc0893b89963f897a5d2d22 4ae3664781812c99191e846f34f5ce17f67af005 5eb873eb384482cfb52b3cc6bca590c976eec5c8 850ab1230bc6b4d15900dbdee635c3ed9497ce98 a9d1535870d51c61c1d5b46053c0c7b1f3f27910 e83711e7a25776ffa6254a7651482c07cf888a2f c6350e67608aa107d18f402358f96288ebb3dc5e 4c0fe02c Extensions: critical(true) BasicConstraints: isCa(true) critical(false) 2.5.29.35 value = Sequence Tagged [0] IMPLICIT DER Octet String[20] critical(false) 2.5.29.14 value = DER Octet String[20] critical(true) KeyUsage: 0x86 Policy Tree: null Subject Public Key: RSA Public Key [42:1f:ab:9c:48:b8:54:63:03:6e:91:e5:ba:6c:e1:13:b9:e4:0f:eb] modulus: d603700275361bc6f1b05131d0e22f1895d15376d347b536746b48e2b01091bdc082ed7cd677f858dab370988af77082f7a1b9e46fcf72be8dd0d4c4ee4d36bd0e3304ce5232b99e777a1443ed0934573ec4ab2222261a547be4c8d7468586b5ef8939759948cf3a8924b48e8e0a39398119bb57f91292b90a3b124f2b8fc3c7e2e5bf3dd1030953ce7cc13bd7871b35eef402ab8fde5a56a1ee57c6d0cae8d3ad206777e52fbf05219f0dc653e17d1ac6f666aaa99c72b90c59a46ba2b7c49fc73d80e0c18d295599849c086079c6019fc6b5827ed214669e893a6b15c16bb96fb333653848accd9d37852b295a88d872132a338dbd327cb49d3ba65bdcadd9 public exponent: 10001 ]