2022-10-20 16:36:04,726 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-10-20 16:36:05,995 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-10-20 16:36:06.779  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Oct 20, 2022 4:36:08 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Oct 20, 2022 4:36:08 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Oct 20, 2022 4:36:08 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Oct 20, 2022 4:36:08 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-10-20 16:36:09.167 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-10-20 16:36:09.474  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-10-20 16:36:09.629  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-10-20 16:36:10.291 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-10-20 16:36:10.293 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-10-20 16:36:10.295 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-10-20 16:36:10.298 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-10-20 16:36:10.338 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-10-20 16:36:10.342 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-10-20 16:36:10.466 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-10-20 16:36:11.022 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/]]} Oct 20, 2022 4:36:11 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-10-20 16:36:11.890  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 7.955 seconds (JVM running for 9.653) Oct 20, 2022 4:36:32 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-10-20 16:36:43.521  INFO 1 [nio-8443-exec-3] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-10-20 16:36:43.530 DEBUG 1 [nio-8443-exec-3] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-10-20 16:36:43.572 DEBUG 1 [nio-8443-exec-3] .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-10-20 16:36:43.576 DEBUG 1 [nio-8443-exec-3] .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-10-20 16:36:43.594  INFO 1 [nio-8443-exec-3] .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-10-20 16:36:43.597  INFO 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-10-20 16:36:43.597  INFO 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-10-20 16:36:43.599 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-10-20 16:36:43.599 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-10-20 16:36:43.602 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-10-20 16:36:43.608 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-10-20 16:36:43.611 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-10-20 16:36:43.651 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-10-20 16:36:43.655 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-10-20 16:36:43.655 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-10-20 16:36:43.658 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-10-20 16:36:44.278  INFO 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-10-20 16:36:44.281  INFO 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-10-20 16:36:44.282 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-10-20 16:36:44.283 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-10-20 16:36:44.293  INFO 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-10-20 16:36:44.294  INFO 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-10-20 16:36:44.294 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-10-20 16:36:44.295 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-10-20 16:36:44.295 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-10-20 16:36:44.307 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-10-20 16:36:44.307 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-10-20 16:36:44.308 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-10-20 16:36:44.314 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-10-20 16:36:44.314 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-10-20 16:36:44.314 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-10-20 16:36:44.316 DEBUG 1 [nio-8443-exec-3] 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-10-20 16:36:44.343 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 243933723114991340688899421731841672400107723683 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Thu Oct 20 16:33:27 UTC 2022 Final Date: Tue Oct 19 16:33:26 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [cf:98:9c:42:c8:cd:8d:dc:eb:44:b1:6e:72:60:d3:f6:ed:89:5c:3d] modulus: 8f79f9b243578c7f4e03d90caed976bbe209a40923236703767160d42f6d36fd281b3072494a0b47079b129befca1909fc040b77d6dcbbed20d9055b4b8c51c4a7318d58ff5fe9bcf42c35b186a5fb2c6d948f146c547894c42b9d98ef660653a5e0176014e2bf9d51d64acde9b8dafd28234da61907dc0c9a204ad29dd12cb5f887ce83aaaddeaf50cb1c6b7ab53aac186bf60b35dcdcebd75bd864dfce72f40e6f36658e4621a4912106fa2ae42912aff31625617e6be88dd0afa92f02b57a53354afc8948ca01dd487116ae635195bd000fe9a6eac8666800461eae22bacbb1f6287fcebf47a6dd669dbbd6117eb947af862ce468fa87d5534982188c9d936ce407fc3bda9629fdc0cf09ee9d0470537072d9057c3fe93febe1f78b4ec133819fd0980bf0ea80322651691bc4d377c9887e6b6705ba6d2fb87bd1a9a309647959ecf4914312ff439b8823800e7de97b62c3a6cc1caeeb5ff829e8bf48ff62ff639fe4e8832498abe0ddfa7f63045a99b73194ebf27613e1b89b3bf4500911 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 64a3670b1aa245a3da20573770f6e4daad6549b7 0d205e51cd42388980e8ab5f36c9dee56b1e4a06 a20d2b9a15d20c8735090caf4d13ca46ba7544e4 3ecf0e9534046ecc87a8e7cedb6245cdf52cf8e6 563b64ad772ee2db7423af9e772718aeb6e80213 fe18188a81f1e445992c570432c8f50eca4f9d6b 19f065b0e502b92e3db906a9223376553fc1327d 793ded2a4de4fb676ad34455dafb8246ed25ebf6 a4b0e3ad3f647e81c1fda0a6d3cb085f457f772c 515828d86256ec5aebc09beca03c614a88f6477a 4fa087f9fffc85fa725147b3c18e5a3877143448 90613a6cb271adfc51c4905834226f9e7570ecfe 94116b359487ff763d2a693ee22b3ef088fa7c45 d0a72ecb2bf66acad069504424158022ef8b4717 b78d6ce2b4896a3e45f0c2542e8fa0b6f91bac84 8957e71b180c01d60eade88b083f22530ed1bbaa 186fed9cc0cee323abdaa274cacd466f90ca564f 6d96d48c56a093c8e56d80670dcf74b0b4472407 f59f6ea05726f91b62c15aafe39c74293848d7d5 d4f00c6c 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 [b0:48:cb:29:97:eb:0e:7b:55:cf:7f:3f:16:6a:72:4f:7e:84:bb:4a] modulus: cdad0403d7177c79d88b5e3f2ff4f5d65e8ab2ca3d3234f3bd9eeac432a15bd700e1bc16363dfb1bb146f5fcb08b64cdd3a6db8a1f85cb0401d4420cbe1bc3415f8b03f7670ccda1ae354240ec784004663e9dbefb04dd68688953d71756f5e2c2391f7ec4850619dde1e251fe419d34edacb174f93dd25f44eaaba1bd24516a2cfef5b6efbb00a5607018bf76b341596fc2e1445d5f68cc482ba5ef4ba3b7a0f4632191f23d1d35a0f0dfa7e6e954cb5f7d34f06792b2b56282d4973743364d9e9be9822ca8915d52d4c9dcd2f989b24918c7126515e7723db5a2972ad195861f01783a9b2c64ac2600c56ff578e123ba8603099ce529a62137226d73c3b44b public exponent: 10001 ]