2022-04-18 01:23:46,385 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-18 01:23:51,075 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-18 01:23:54.570  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Apr 18, 2022 1:24:04 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Apr 18, 2022 1:24:04 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Apr 18, 2022 1:24:04 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Apr 18, 2022 1:24:04 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-04-18 01:24:06.582 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-04-18 01:24:07.968  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-04-18 01:24:08.672  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-18 01:24:12.165 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-04-18 01:24:12.169 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-18 01:24:12.171 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-04-18 01:24:12.175 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-18 01:24:12.372 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-18 01:24:12.375 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-04-18 01:24:13.070 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-04-18 01:24:18.464 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 18, 2022 1:24:21 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-04-18 01:24:23.266  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 40.506 seconds (JVM running for 48.923) Apr 18, 2022 1:24:30 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-04-18 01:25:12.982  INFO 1 [nio-8443-exec-7] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-04-18 01:25:13.066 DEBUG 1 [nio-8443-exec-7] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-04-18 01:25:13.180 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-04-18 01:25:13.183 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-04-18 01:25:13.363  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-04-18 01:25:13.367  INFO 1 [nio-8443-exec-7] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-04-18 01:25:13.368  INFO 1 [nio-8443-exec-7] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-04-18 01:25:13.370 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-04-18 01:25:13.370 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-04-18 01:25:13.374 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-04-18 01:25:13.379 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-04-18 01:25:13.465 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-04-18 01:25:13.665 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-04-18 01:25:13.672 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-04-18 01:25:13.672 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-04-18 01:25:13.676 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-04-18 01:25:15.047  INFO 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-04-18 01:25:15.050  INFO 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-04-18 01:25:15.050 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-04-18 01:25:15.051 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-04-18 01:25:15.067  INFO 1 [nio-8443-exec-7] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-04-18 01:25:15.067  INFO 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-04-18 01:25:15.068 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-04-18 01:25:15.069 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-04-18 01:25:15.069 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-04-18 01:25:15.081 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-04-18 01:25:15.081 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-04-18 01:25:15.081 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-04-18 01:25:15.165 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-04-18 01:25:15.166 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-04-18 01:25:15.167 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-04-18 01:25:15.170 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-04-18 01:25:15.280 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: 50303565946360599352341392144365933136153687434 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Mon Apr 18 01:20:47 UTC 2022 Final Date: Sat Apr 17 01:20:46 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [d6:42:e0:87:3b:19:0c:cf:a4:3a:da:f4:d6:bc:1e:1e:c4:ab:61:2e] modulus: d576245f2b0f3066a3e6a07ad549851aed71e274c0f266ac86689d55744dd8a9feffe0593e8861f8c5776f2d7e56c21a0b05fb881cb0d9b36f9d120413599e650ba227d5f2415c7dd7feef32dcb1807a2b9e538ba7bf44477de14b3185b87dd9bec07764069b293dc3d6af7028ac4c6085e9ca51ccdd8eb0a76afa209993f11b657e1fa0f6bc5ee82bd1fd7c9d8ed3b4f3d1203d024899a46d0b792998dcf1d8177cede5636cec211222919851cad147ab3a25a775ffc77bea6d2a0a98ae9eef37ca89828f7993f81ecbf357417abefa6b05eebf6aba8dfdf7ce26448b2210ce1f9a774660355680aeec91110c28f5f826312db398affc396e949e73a8401097b38dcb6b638126287997c6a4e00302aff3ae4f6897785a084558eaf78fef82d95f589a0ac09276aa6f06bfb1c71c9bd1239cc13bc915e13d4b782f1dab3da55eab6ad6d466967d87487bc929cbbca8382543aa49e5bf22acc461d049f83324a1f8afd997d69509a6641e672a6ddfcc9353b798d1a1fe51ddb0b898d8a08fcba1 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 6cc4cca4b6d10f9c12ade4242696d6c89d9ef24b c44213630f5bc41f3dd5c94bda53810ad6dd5641 38b4b649087009402cc7ca88e86f4b5dfe3f8ee7 7b380f1dbe3f55d9003ad9808b77220414989275 df09ea124900b7110a170976307f1630fd7886e1 0a318a3a94a6d8c58e1dab75292e0d25bf182941 14f2c51f6097da9e67257ac78506c60272e45856 a80db7e6148a926eb76d29801b879a70b3954de7 fd227e061a5ffed3c02daacdde5668e185ce8522 704893112b7381a4c3d9347bd93f6ea537cc7e80 3390b94a5cf563d5e98d69bdb92220dfa8a0a3a7 63d83178d7ed3fd147674e7017e02f2276079078 2b0872fcf6920a7d728037973b44ee5d650e2331 841ebdbd35db9b4418fb9d0dce54566532849a8b c6f341a9c5ba6be19ccc7b913ffbbd8d98a85ed9 dd7af868f79129d555b7dc778295c7a0cb8ef2af 6d36c5942f3c8e71e9b4d5d41de4f1c46e005d20 5be55fc19222d04424f227792e68af3363c2399f ddde4c11b6ca74d978cb8844081be846a794aa4b 5751871d 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 [bd:ee:9a:b6:79:cf:27:9a:da:fa:a1:39:06:8e:51:0b:5a:09:06:fb] modulus: d8d7b323996c3b9321d923db800a51b7189d0e3378ac347b138e9e8f6839805ca8a610808e65c55760d502067badf6cc3441b4284a2669e95150cb23cdde17085dc4e17eb9aeb100ddd4362af4def3826ca8bffd0cad6b37e5bfa3d641509b3d767554f0f30ff8e07dcc0b0e5147d9a5c9b8b7d24f4306994cb2cf4ef64c20846185e0007e63cdeb263afa7557e4aafe556f6aca2312feac1ac5ef17353cb41656f1139530dee6527dd2b1693020ee5a13fe3de1ce3f244ceb0225c5c4117b4ea6ccca834e0cfdcae014f56774108b9b77f80b8782d2c156abab7d6fa3bd2762061862624368437d5063647c51dc8d744678f705445c122a551a61a3a18effa9 public exponent: 10001 ]