2022-07-18 03:26:03,259 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-07-18 03:26:04,924 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-07-18 03:26:06.120  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Jul 18, 2022 3:26:08 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Jul 18, 2022 3:26:08 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Jul 18, 2022 3:26:08 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Jul 18, 2022 3:26:08 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-07-18 03:26:09.743 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-07-18 03:26:10.155  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-07-18 03:26:10.430  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-07-18 03:26:11.487 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-07-18 03:26:11.492 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-07-18 03:26:11.494 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-07-18 03:26:11.499 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-07-18 03:26:11.594 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-07-18 03:26:11.601 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-07-18 03:26:11.799 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-07-18 03:26:12.760 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/]]} Jul 18, 2022 3:26:13 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-07-18 03:26:14.015  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 12.137 seconds (JVM running for 15.22) Jul 18, 2022 3:26:37 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-07-18 03:26:53.557  INFO 1 [nio-8443-exec-4] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-07-18 03:26:53.576 DEBUG 1 [nio-8443-exec-4] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-07-18 03:26:53.634 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-07-18 03:26:53.640 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-07-18 03:26:53.669  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-07-18 03:26:53.672  INFO 1 [nio-8443-exec-4] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-07-18 03:26:53.674  INFO 1 [nio-8443-exec-4] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-07-18 03:26:53.676 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-07-18 03:26:53.676 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-07-18 03:26:53.681 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-07-18 03:26:53.690 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-07-18 03:26:53.695 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-07-18 03:26:53.769 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-07-18 03:26:53.778 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-07-18 03:26:53.782 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-07-18 03:26:53.792 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-07-18 03:26:54.633  INFO 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-07-18 03:26:54.638  INFO 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-07-18 03:26:54.639 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-07-18 03:26:54.643 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-07-18 03:26:54.665  INFO 1 [nio-8443-exec-4] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-07-18 03:26:54.668  INFO 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-07-18 03:26:54.670 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-07-18 03:26:54.671 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-07-18 03:26:54.672 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-07-18 03:26:54.696 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-07-18 03:26:54.698 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-07-18 03:26:54.698 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-07-18 03:26:54.712 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-07-18 03:26:54.713 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-07-18 03:26:54.714 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-07-18 03:26:54.718 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-07-18 03:26:54.782 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: 58504548682143283802687877877527059554190820643 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Mon Jul 18 03:23:07 UTC 2022 Final Date: Sat Jul 17 03:23:06 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [ca:e1:b7:bf:d7:30:0d:ff:e6:92:6c:94:0b:71:2e:6f:d9:f2:88:f4] modulus: 82550d3511fd1f8b79e0331ec119117cdb44f85b9580adfbab2576d7f45f7617056a706aebe74b03724ed0e1958ae7eb6f67faffbb4c16496ef700470de87f7e913e51b9e3706774c402b1b044b160a66bbf59859d224c153c9e789686f41b1944310ddbaea8903e7e6db95c86c121f850876358699ab3fe7dfee6398ab88fe0e4142f8e1bcf4f54156e5294ed6e73a28d1f7e96abc8342e013ca7e08f70ebb3f7a678662cd2662aed54a0fd04c55169e65fcd6272868922564bf7c051b5f9185edbe094e1149362f2b4913d64133eb72dc0bbc67a7afffb34ccdaea85172c039f169e16ca0f508fa2c58f7eea5fea65a2ff401588eb3c10f361e917aa9dcf8583c745728a10ce537e9c006fa65a3595aaad88d1e1a43651d3d36cb8134252276d01dfa8a8789f3f48898cb40fe9b24ff571d9044d1041e77e656ab2be0929f5fd370db5941f7521de4fa8bb5fc3f63f73af3ad1e493aa617bfce14bb697a4581bf5571f99c32128a86a1e39f4e199e78a7020b07b91239207d87e4ef779a4c5 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 50bd866a119d0d2820988341c7fcd1deb0f97506 7debb1e5b6eea50613b2a51bd05d14074b86abac 836c0878d616e150d650326faf1292d971a90835 c5cb7ecd8a93491d861bb5d76950ccd09ad9b64f ba0c0cb2fc10d0510ee52ba4635da9eb87ed2fd9 a25f589747dad1712434a6e5d183ce7fe33d9a15 66164545087462398eca89737767e24c4b5ad097 b635561450fe8b7749ff38c99fbd82e37aa24e8d a46163c70300479ff595b19a5a2e1dfb92498633 3d2504deeef7d1be698bbbf949b39704c962c1b3 4ca2fdfc4eeda2eb133e623544f3b4f384f855cf d97639a330ad3c37c2f9cded7a0351fe2785dfc3 cbad16d9cad99b3873f5584afa66e6f747c1da12 7b6e71a9a7e7f2d616d59a28547d4846d4339416 9b40090b793a67cf91d5dd2193d9d3431bd3b63a 05bf98b8485e67049e0130d1f8887c154706a945 5217a6f1b259848ab82f3f206897a55d8808fa08 2604c7608576946d3dd5d89e36422155540b1496 d5807176e88c9ac97cd52ec53688f5b068340094 81ddc031 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 [f3:f0:eb:b7:05:c6:73:5d:3c:7b:ae:39:37:ef:44:5c:5a:d5:37:bd] modulus: d956ce8edee7b3eebc7eb78294e7c83f320837d51e455878701e8c3ce01935d550f22a73115aa39b9c503c20bf0a529ef557f7f0eb1d2c4ccc74342ad8a513d37e2d2d278e5ca09261bcf2e5afc1b4edb7fd9ec06c9a6a45f906078d802eaed5ae548d7a48a8e164a83d4b6c656239faa1ced3ad623b135c4817057b6b8b9d6bcc97b890ae591cfda67d87ee3bd24b28e5a59c1e26e376ab832e031104984ab2e30b27c3894afde004405db616b8c2a90bb4289e876645b28b2dd58b6a7dc1f570193998107f668e8bfe04841fdaebe2fd172ab3c6c8495d64a2be57e1797dc939f92e8b64d75eb96d2fcd0cc2c25d232092989dfe45f4fae55dd0c93549ab7f public exponent: 10001 ]