2022-01-22 03:05:21,166 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-01-22 03:05:26,283 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-01-22 03:05:29.466  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Jan 22, 2022 3:05:39 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Jan 22, 2022 3:05:39 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Jan 22, 2022 3:05:39 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Jan 22, 2022 3:05:40 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-01-22 03:05:42.370 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-01-22 03:05:43.393  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-01-22 03:05:44.177  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-01-22 03:05:47.587 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-01-22 03:05:47.669 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.CertificationController: {GET [/v1/certificate/{caName}], produces [application/json]}: signCertificate(String,String,String) {GET [/v1/certificate-update/{caName}], produces [application/json]}: updateCertificate(String,String,String,String,String) 2022-01-22 03:05:47.671 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-01-22 03:05:47.676 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-01-22 03:05:47.890 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-01-22 03:05:47.893 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-01-22 03:05:48.477 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-01-22 03:05:53.571 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/]]} Jan 22, 2022 3:05:57 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-01-22 03:05:58.575  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 41.306 seconds (JVM running for 49.432) Jan 22, 2022 3:06:03 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-01-22 03:50:35.267  INFO 1 [nio-8443-exec-7] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-01-22 03:50:35.276 DEBUG 1 [nio-8443-exec-7] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-01-22 03:50:35.393 DEBUG 1 [nio-8443-exec-7] .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-01-22 03:50:35.397 DEBUG 1 [nio-8443-exec-7] .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-01-22 03:50:35.477  INFO 1 [nio-8443-exec-7] .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-01-22 03:50:35.481  INFO 1 [nio-8443-exec-7] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-01-22 03:50:35.482  INFO 1 [nio-8443-exec-7] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-01-22 03:50:35.567 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-01-22 03:50:35.568 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-01-22 03:50:35.573 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-01-22 03:50:35.579 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-01-22 03:50:35.582 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-01-22 03:50:35.776 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-01-22 03:50:35.781 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-01-22 03:50:35.782 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-01-22 03:50:35.788 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-01-22 03:50:37.378  INFO 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-01-22 03:50:37.380  INFO 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-01-22 03:50:37.380 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-01-22 03:50:37.381 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-01-22 03:50:37.571  INFO 1 [nio-8443-exec-7] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-01-22 03:50:37.573  INFO 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-01-22 03:50:37.574 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-01-22 03:50:37.574 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-01-22 03:50:37.575 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-01-22 03:50:37.675 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-01-22 03:50:37.676 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-01-22 03:50:37.677 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-01-22 03:50:37.682 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-01-22 03:50:37.682 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-01-22 03:50:37.682 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-01-22 03:50:37.766 DEBUG 1 [nio-8443-exec-7] 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-01-22 03:50:37.874 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 383712354877302823286811711138850722515361374985 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Sat Jan 22 03:01:03 UTC 2022 Final Date: Thu Jan 22 03:01:02 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [ed:7d:13:a2:c1:f2:45:4f:3f:29:d2:76:57:3c:fe:00:88:60:20:a6] modulus: b397febde451709cd285a0f277abac5d4875fc8fcda411ca4ca4ca08f67bf056ae6fb5af9f1add23d2e526cb1cd50513cd14d2bacbbb755d3127122252227d27f9f911af2ea66657b7fa3b25759316f7a5daf07a63fa90f7173954da614531be96606009c012b7397cecf28c96f187897fabe7707a1f87b25e818980d12ac7eff879628f9802e9d8952de31c9caa8f25e24a65b66de1d298fc550bb41e6ef867ce4ad0b36901ad5aaafa526f3aec99b0b6b8500a5f5a02b5c68e6dc57cdd19dbcbff3d3c9f77d761d7045c1c28d9fb80d1966d8121fb6a877723a077c2a8e68d845a1b94132a5e8f9c35b4518c6505a534e4983447bf5e5be93aa2480c3f92cc3af31718088829aa04fab0b6d3166a2bc3d37e3b3aca50618e4d79dc32abc8050f02813c9cf905734f51459ce3c01a313eb6b250e52b341b5bd9993a97a58f00829797c20199cded54b3fb541aeaba4a26873c75a5293e2acb330502f513ebb2a2ae909e742274e61751225599ca40ff5432c66c53fe7fb18f4adc7a5afb470f public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 70b7447be3833f4d689beee5c3f1d3001547e866 5040c98da22dfff6c5dc908bb3aa5c21df8c57d2 6aaee55da3f6dbe20b2370e2749d4490e499d35a 3b60f726a6d6808c308853608a5eb35ee7bb5957 302cbcecd00a8f0fb9263b717d7caa43b6f13b9d 4f70fa840c941074c4656ff00f78a01325e66e33 4d7622074da8328f14abe10fe95623d275c52626 72f27a49fb1fcb4f0fae8b0675fac6893b16bd21 56bd4fbe5272b5a9a3e4741038aa1bf0ae10f5d5 5d7934f299f4bd9703a44247a5a15c91589db83a b18ce95f849a4b88f873d28ec2444db8947dd6f5 a461460ffdc983893670fe01adf58ffc16ad9007 93ca669b61b16d195be51fd9f2d4dd6f2a321005 5bf2e5d247d450f35bb71c8e14e1efd270fe5b78 610771753ddeb9f1ab2b4a492a4e28c55265be64 a8e4c461c3abb4b21f9347aea34b9cc0c5c8f746 6327e57967b2dd3d58be979561f189c9e389aa38 afcc0b3f89ff069d4ef4c5e169e539b584a4978d 154cf73ad739ae7e75ba21e07ecd0941cde1dbe9 f9ed4df1 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 [b7:01:f5:ef:28:c8:01:54:4f:11:b5:7c:52:f4:51:8d:5e:42:73:29] modulus: c355c710dc55f78b5f6f11e209197572de803a8d8d4bfd9b4aa5d1ac4b0fc8ed29dbaac0d1e20ea02e44cbf9f1ec62607e0df8c4748c3061107cc2423676662ede749392a10fe6ffc4f640a1aebe93ee7a3d6dc1f49060900292f7aa9ff33eaeb42e18f470d2a379a420295139fe10037d6c9c5688a1c63865e57592a7f0d073c3bb06e2cae2e956a232385e06fa8dd91b9722a347c382e187ad665e1285c443ad3f8ddc61b935186e03336b58f92d9ff0f8dd370d5e49cc689a3c9f811b4e58951eaeb788aa45c1ee0ebbd879be7100e63a6fab9ce32d156afd96e2a752ab45c38085f0e9ef666d322b8c90156fd7df504882ffe06d575b25d3e1892b814337 public exponent: 10001 ]