2022-02-23 00:39:38,370 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-02-23 00:39:42,972 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-02-23 00:39:46.279  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Feb 23, 2022 12:39:55 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Feb 23, 2022 12:39:55 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Feb 23, 2022 12:39:55 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Feb 23, 2022 12:39:56 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-02-23 00:39:58.378 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-02-23 00:39:59.571  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-02-23 00:40:00.274  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-02-23 00:40:03.580 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-02-23 00:40:03.583 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-02-23 00:40:03.584 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-02-23 00:40:03.587 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-02-23 00:40:03.782 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.s.a.OpenApiResource: {GET [/v3/api-docs], produces [application/json]}: openapiJson(HttpServletRequest,String) {GET [/v3/api-docs.yaml], produces [application/vnd.oai.openapi]}: openapiYaml(HttpServletRequest,String) 2022-02-23 00:40:03.868 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.s.u.SwaggerWelcome: {GET [/v3/api-docs/swagger-config], produces [application/json]}: openapiYaml(HttpServletRequest) {GET [/docs]}: redirectToUi(HttpServletRequest) 2022-02-23 00:40:04.382 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-02-23 00:40:09.965 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/]]} Feb 23, 2022 12:40:13 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-02-23 00:40:14.968  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 40.818 seconds (JVM running for 48.882) Feb 23, 2022 12:40:22 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-02-23 00:41:01.186  INFO 1 [nio-8443-exec-4] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-02-23 00:41:01.366 DEBUG 1 [nio-8443-exec-4] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-02-23 00:41:01.669 DEBUG 1 [nio-8443-exec-4] .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-02-23 00:41:01.674 DEBUG 1 [nio-8443-exec-4] .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-02-23 00:41:01.976  INFO 1 [nio-8443-exec-4] .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-02-23 00:41:01.979  INFO 1 [nio-8443-exec-4] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-02-23 00:41:01.979  INFO 1 [nio-8443-exec-4] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-02-23 00:41:01.980 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-02-23 00:41:01.981 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-23 00:41:02.066 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-02-23 00:41:02.075 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-02-23 00:41:02.078 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-02-23 00:41:02.386 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-02-23 00:41:02.466 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-23 00:41:02.467 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-23 00:41:02.474 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-02-23 00:41:03.994  INFO 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-02-23 00:41:03.996  INFO 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-02-23 00:41:03.997 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-02-23 00:41:03.998 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-02-23 00:41:04.005  INFO 1 [nio-8443-exec-4] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-02-23 00:41:04.006  INFO 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-02-23 00:41:04.006 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-02-23 00:41:04.006 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-23 00:41:04.007 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-23 00:41:04.078 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-02-23 00:41:04.078 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-23 00:41:04.079 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-23 00:41:04.084 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-02-23 00:41:04.084 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-23 00:41:04.084 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-23 00:41:04.086 DEBUG 1 [nio-8443-exec-4] 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-02-23 00:41:04.181 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 565972149866189186298414258167829762346816392480 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Wed Feb 23 00:36:44 UTC 2022 Final Date: Mon Feb 23 00:36:43 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [6a:65:0f:56:5b:92:f2:63:15:e6:a7:10:6e:92:c0:40:77:ad:b4:9b] modulus: aa9afb310e3e951694a0a6e16e3c5352d2610f434c12e7d0b359c545c382a6ef48267c81381030dda775796880bd7c45784df63d3a567fd92df162e7ab1af06056e95e5f8607ec49cbf334e437148a6caba305d608f6b1d89b7dfab027a49f254a6d7be939851a77f87b8cdbc512c86337c01295f5de1a5f8a31be6e428b7e1aff5d1c31651528c47a85c2cc1d25581154fbdb9e6a41b6e48f1eea4fdc198ca8f26100cecb251355ff0a149b5b131114640120888e80c3a664edd50ed000292a240b6eb884d6c88374c10a28bb598405691f746d2c07a89ab3907945ea48520e9fe306b0e62d995b6e206dc7bc802eff52aff17ccb60f02165490a82ff4284c13e3198e9999d34cf047f2bf6aa256fc8f8305001fe798ef328f911dcdf65c1617c48279ffe340150241abeacffa7496491bef4753c4f36373c53f289a92ffcb7e3cc4139da97184c4ad423c3febe3b0b96047b21cea39afa25035effaa85fda78f0f7a9cd4448c3052692d688ef60ee28be6f85d0dd4d1acfaec874dbc307bbd public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 93f79152263737fdc1a291e165bb8e30937ea684 c8312495f7b3b0aa0761479dc54016f46dc72573 8c848f29d59fe5030dfe11c1d41a8689e21b57c0 3d02f21251b50e57afd8af150bc4354f401ec2aa 0c1c2b2709a00ede7d4e3c8d1ff80bb889b94d40 4a9052b2a01ae5e25ad0b1be3309e536f0aba687 a744998c08589e25e7e183bd004c76adae81eb17 fb960479b486087c2a44eab535393d1858ca9e99 4c3c2074f4dc439f63437cc6e1ecb210c3c5056d ff10695c695aa94618a02bf3811a0fa9f1355368 47d93702faac9e5865c015105950686f70fa1341 a5675a19076a80447db96562a242a41850aeefc1 52f91487d5bf08fa381ccc3d3390b62aa4ea023d 460dc8108f0bbc19bf3332f94bc0a827f4bb91dd 53da61c43387153018124ee311528fdd8e57f0d5 0948bec73f30ce9737eea618a59a46b871c989a9 c8145ed1e9d3d79ff0cee4f52c837126f4220dc7 6e340bc368b3ec0b090f682e24a03480f0cc3034 c7f0da1ff7034eb5ab8c537a4de559797a2add73 116b1b25 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 [cc:07:58:2a:22:fa:85:c9:bf:36:ff:d5:59:cd:43:8c:47:54:d4:1c] modulus: c62c45f9808fa323ab95dad64fd8356c87a73102ca1b65ca24c6376f14f6193884a17a36d21fbcaf2240279c820fe487090a729ef63a9129a7efe8d9371772fe3d2d6287747653fc19444b7f03dfe4e5d1a27a79bb7333821b093e98f12e3fe9957fdc9c5dd9e5533eacd040f60b8c62c11aaf41c162f00503614e977084d70567dc874925c67713bc663a05d32254bc12d71c00fa1eaf4da86422a5ce35f5ab5f312f10a681bd1124d76c50d4ef7344d5e49ee17d260fc5873ff150b952be17e3ddc2e2ef0b78901534b8dc970cb65408b38f110f51913ee7b185a4764471a1a67b97502291141333a187428e3ec7cfed09641928401384fafe1c7066afd1f9 public exponent: 10001 ]