2022-03-09 03:01:04,646 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-09 03:01:05,942 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-09 03:01:06.759  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Mar 09, 2022 3:01:08 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Mar 09, 2022 3:01:08 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Mar 09, 2022 3:01:08 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Mar 09, 2022 3:01:08 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-03-09 03:01:09.670 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-03-09 03:01:09.996  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-03-09 03:01:10.184  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-09 03:01:10.986 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-03-09 03:01:10.990 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-03-09 03:01:10.991 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-03-09 03:01:10.996 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-09 03:01:11.045 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-09 03:01:11.058 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-03-09 03:01:11.218 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-03-09 03:01:11.835 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 09, 2022 3:01:12 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-03-09 03:01:13.013  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 9.353 seconds (JVM running for 11.589) Mar 09, 2022 3:01:37 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-03-09 03:01:50.104  INFO 1 [nio-8443-exec-2] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-03-09 03:01:50.124 DEBUG 1 [nio-8443-exec-2] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-03-09 03:01:50.161 DEBUG 1 [nio-8443-exec-2] .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-09 03:01:50.166 DEBUG 1 [nio-8443-exec-2] .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-09 03:01:50.182  INFO 1 [nio-8443-exec-2] .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-09 03:01:50.185  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-03-09 03:01:50.186  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-03-09 03:01:50.187 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-03-09 03:01:50.188 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-09 03:01:50.192 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-03-09 03:01:50.198 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-03-09 03:01:50.201 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-03-09 03:01:50.249 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-03-09 03:01:50.254 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-09 03:01:50.255 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-09 03:01:50.259 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-03-09 03:01:50.993  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-03-09 03:01:50.996  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-03-09 03:01:50.997 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-03-09 03:01:50.999 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-03-09 03:01:51.016  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-03-09 03:01:51.018  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-03-09 03:01:51.019 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-03-09 03:01:51.020 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-09 03:01:51.021 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-09 03:01:51.033 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-03-09 03:01:51.033 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-09 03:01:51.034 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-09 03:01:51.039 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-03-09 03:01:51.040 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-09 03:01:51.040 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-09 03:01:51.042 DEBUG 1 [nio-8443-exec-2] 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-09 03:01:51.071 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 73255413059826153134776664296619392015385529386 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Wed Mar 09 02:58:42 UTC 2022 Final Date: Mon Mar 08 02:58:41 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [de:3b:b0:29:4c:39:ff:70:f1:43:ac:6a:ee:49:ba:b8:49:4c:50:8e] modulus: cf6499f89bc35339b4f7e5ab916682c7a695954a0b11e7ef3296e51553222d5ae0c2fd4e89cec903ec6f1543b65275d46770d6cb42f477a23781118315802315861945735d5d2338af3a41e59b8aa77cd976a658bbf346c477308ebff1c37fe81486189cae73a50f1765a546c45a97fb452e65f146a1e3bf7908c2a92c2f94df093a54dd0ee7d6b2a5cfb08b888530d8db503cd6044354e86a0e4882472566366270cbc560ac8dade065c5d3812ee7386a1f795c405fddbcac9f32d903de8421651248d456e2351912b794153a9a89d11117ca5dfa5bff4b9c51bd9b49388762bee675a77ef09256301f9a8748e87478650f8ade4492b1134f2cfca12dc68dad759ed32ca5e30bd8486412c32294c168a687fc2cf8299eb082137aeda142fe92f0578299fbef0efb1dd3ec317ad0f2bfebbf84d47111d48d2526219ced47465d8df9447a98ac9b19d79a253b614a5e85acdaf8995c9072c78d840ab2a1013cbc2483373ecf43c18ddda24d571a70c7af27ae0a86b5c3986852b2c5fe7392b233 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: c54f8ca4c27f532a5bb62e0adafc17573ac7eb08 8078ba7df270bd8da687617eeda821dcf513d6a6 f9a7875647bb47f2068df86832488fa8dc363468 7181786e5df0e5a6f6d2715d018ecccbe0d22e38 9a99fc0bfdf5b1b5ddc4f2d850d085da8ed7ad06 9d2c686f5ffa222819f8ce33884d5725ad719cdd 46b029e0cd0a00c60497b41e7983ffb71b1c9303 d3a98abf46d2b1f51bb8d98272b684c9fabeb054 c3431125600c68ed275bf1c788bae9a21c5be68f d4bd62357c21b518cbf8abfe2b3854e61e9d2740 a28f0d6a15dbeec9dc41c7daa69e422eb1c9a153 9c247b8cdea44edfd6a68c90c1b504c0190c5b15 291828e9c774f918a131190fe190c87a7a49d473 355b3785c5528d8d790173dd3d39e117ee753085 2993bedfe04eecc6afc62e4cd6c0a4ecfe79da0e 5444ee7442213b29468315e3cada81d0bbcf5b6e 0cccbc42469a511a3e4d55c3bb0bd6a969a4923b a42c1808e3d66f6c64cefeb6cc6c0e7085a77819 c73516b3cfada5749d430689aa5f5765d23af7b2 23902453 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 [92:f3:48:87:d8:ba:b7:e4:12:bf:a2:df:25:99:9f:aa:0f:eb:bc:11] modulus: baa7f4705d528ed0c5d4a496bbd5b9ffadd6b4434199612a8cbf5f79d7e331ec18cf4ae038b7334125c7187744ed74ef049cf573e1597fcd8ada6d30901abab5ec1695ab7578e5ea5160038a8f72eb9147d3bc15cd03a6ceb8b115cf940e528cf8d37f46224ffef0cb2bfd7035fe185a3c7f7030ec840d5f4635453c1f9ac07f8749537cd0d620dea1f4f8ded7ab70d29ae617e643479607f65bdf806cb885b02c7c26ba635e4552b6bac07400a60d641799f646c8de02586cc8afafeb158196adeded919c413c88fcdf3a75b2fe11f2f807bc8eb80ab0afe9d43afc14d2f75becb4e5cf2878f45eddea1f2b821b0914e3a7fcc371ffcd27c32211bc50fe5b1f public exponent: 10001 ]