2022-04-25 05:14:27,615 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-04-25 05:14:28,697 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-04-25 05:14:29.683  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Apr 25, 2022 5:14:31 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Apr 25, 2022 5:14:32 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Apr 25, 2022 5:14:32 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Apr 25, 2022 5:14:32 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-04-25 05:14:32.722 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-04-25 05:14:33.040  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-04-25 05:14:33.238  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-04-25 05:14:34.094 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-04-25 05:14:34.101 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-04-25 05:14:34.104 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-04-25 05:14:34.111 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-04-25 05:14:34.163 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-04-25 05:14:34.168 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-04-25 05:14:34.319 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-04-25 05:14:35.067 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/]]} Apr 25, 2022 5:14:35 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-04-25 05:14:36.180  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 9.506 seconds (JVM running for 11.558) Apr 25, 2022 5:14:54 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-04-25 05:15:04.391  INFO 1 [nio-8443-exec-8] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-04-25 05:15:04.402 DEBUG 1 [nio-8443-exec-8] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-04-25 05:15:04.464 DEBUG 1 [nio-8443-exec-8] .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-04-25 05:15:04.472 DEBUG 1 [nio-8443-exec-8] .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-04-25 05:15:04.496  INFO 1 [nio-8443-exec-8] .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-04-25 05:15:04.500  INFO 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-04-25 05:15:04.501  INFO 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-04-25 05:15:04.503 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-04-25 05:15:04.503 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-04-25 05:15:04.507 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-04-25 05:15:04.514 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-04-25 05:15:04.518 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-04-25 05:15:04.570 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-04-25 05:15:04.577 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-04-25 05:15:04.577 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-04-25 05:15:04.581 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-04-25 05:15:05.647  INFO 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-04-25 05:15:05.653  INFO 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-04-25 05:15:05.654 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-04-25 05:15:05.657 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-04-25 05:15:05.670  INFO 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-04-25 05:15:05.671  INFO 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-04-25 05:15:05.672 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-04-25 05:15:05.673 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-04-25 05:15:05.673 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-04-25 05:15:05.688 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-04-25 05:15:05.689 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-04-25 05:15:05.690 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-04-25 05:15:05.701 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-04-25 05:15:05.702 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-04-25 05:15:05.702 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-04-25 05:15:05.705 DEBUG 1 [nio-8443-exec-8] 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-04-25 05:15:05.739 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 576914969045236237364910275858056656668078476010 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Mon Apr 25 05:11:05 UTC 2022 Final Date: Sat Apr 24 05:11:04 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [07:5d:70:96:36:31:00:c1:cf:0d:d4:c2:9c:e3:17:5c:99:a4:4c:be] modulus: abf23ce92a0861f0d0465b14c9828eb467464739f370a1244582c8792518762edf88fb0c33002a09049fc6d1ded163602acc4567d61314770799b16419559aca09088366e8c1ccd4e102a5b6c9d68398b1561f9299ecada288e7275233541b64087df9d86db0c2af9495bad0be95b12624b5ce8b764976b42a4c491b2a81798162553f3d51214bc28585ed161bad4b10148633f28a313161ca64611d22b3c66090a251c009ff75f933c5e86661daeae0935a06bb27be5c53d482d8c7bb7b83a052d495f82970a6034ac9d6f50daa03d122576d2bfd6e86ae1ce9bde251e3fc554a188da516a72bdbd133347378f7f8d1514369e3a2c010a3cf57f87d209ae106ce028056c752c91ee040cb768d0002a539f9e4caaaa782d06f8f56559d8c161ab77105103e13b5381ec881c598d91b79e25d3c1c09d55c5e3038144af4dd68904c418ccef197cc85a47f46fd029bbc452c69b9affbeea0baee072abc34e8dafa62193267ba19115a5efd67ecf7082ef2490b1d77bf73b2b7d55f710f3fff1819 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 8b8f159b58f80b4f3e11144f75c65e82bb93b880 f73e812c6a6b2c6e97bdb2143c90bec56641bb19 e3f32d7a0a10d668196945947ae4316f75f48b40 ab800b1d21197fcbb35b9a5d143cfa346d9a5d68 8b0e94587ddc7d66bcb3b4859bb356cf0da0f2d9 d434a61b0c18048c25503006977a73cc5d8b8c9b 73df30690c91806f2382ed3cb4f757f9ecf03db6 5ed3e96e0b6af359661b8f397113469f5ec6e2a6 4e504c7f2813c303ca67e563ca4ebba359c2a6bc bd966c47f1af9dd82f16cb4bd3eb6e6fac659a17 7cf94132ffbb837a184caaf12744f5aadb799a9e ec5b4e7ba0e9fe0561bcf3fadc582e68eb56ce53 1951f3b3bc05c247d6acc4319f7c9759aa800236 5452645462c22282c72a84939841ad7952429b0d 7c3cff1dc080fa3a2c37a159df9bcb9c2aa2c794 b1eb26ba100e42edfbd14e5d6fd2a3a4beda0b45 7dcea58063be46a60b46023de187b2d1e4c2e20a b77861d01b02725cca7acf34112e70b70fb1546e 79a195f60d56928f329cb120191d975661daca43 bcc939ae 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 [99:42:f9:bd:c9:42:1b:2c:37:20:36:68:92:f3:dd:6a:24:e9:08:6d] modulus: b4efdda6cb337414dd85ddb06f8209cbc91c7c211f3b4297d398346ed814880777770c215a83bef4953991bbf056234d370c6b8e22260e4f38a70baacaea87ca0ed38eb348a6435c10bf9193e71cb51cc2bbb3bc7a48de260e2cb5e19840eeb8370efc38b5661198035bdde498e7da81824b0c918d997853e81d5885b6a0deb3aa53f9eab0b4a3f5b6e5a94ae9e7191e243bba8604f62e589847664e981697b300d4bbb8c59e0f38714f9a33d1eb211e00bd2f1f49eadbdbcbb3ad10f07396566440c5772038f64953c84ff521a2632e221e8af9780f6cf9b668e5d8953463d780e7a3e321d4b4a55e743529dcac136e9d337f02dec9a045e34f90ef6d1d6afd public exponent: 10001 ]