2022-08-23 10:03:44,961 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-08-23 10:03:46,321 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-08-23 10:03:47.127  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Aug 23, 2022 10:03:49 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Aug 23, 2022 10:03:49 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Aug 23, 2022 10:03:49 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Aug 23, 2022 10:03:49 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-08-23 10:03:49.758 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-08-23 10:03:50.083  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-08-23 10:03:50.288  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-08-23 10:03:51.092 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-08-23 10:03:51.095 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-08-23 10:03:51.096 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-08-23 10:03:51.100 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-08-23 10:03:51.139 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-08-23 10:03:51.142 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-08-23 10:03:51.274 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-08-23 10:03:51.891 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/]]} Aug 23, 2022 10:03:52 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-08-23 10:03:52.979  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 8.838 seconds (JVM running for 10.986) Aug 23, 2022 10:04:15 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-08-23 10:04:32.295  INFO 1 [nio-8443-exec-2] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-08-23 10:04:32.304 DEBUG 1 [nio-8443-exec-2] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-08-23 10:04:32.344 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-08-23 10:04:32.348 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-08-23 10:04:32.369  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-08-23 10:04:32.372  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-08-23 10:04:32.372  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-08-23 10:04:32.374 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-08-23 10:04:32.375 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-08-23 10:04:32.379 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-08-23 10:04:32.386 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-08-23 10:04:32.389 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-08-23 10:04:32.438 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-08-23 10:04:32.444 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-08-23 10:04:32.444 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-08-23 10:04:32.448 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-08-23 10:04:33.049  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-08-23 10:04:33.051  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-08-23 10:04:33.051 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-08-23 10:04:33.053 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-08-23 10:04:33.062  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-08-23 10:04:33.062  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-08-23 10:04:33.063 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-08-23 10:04:33.064 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-08-23 10:04:33.064 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-08-23 10:04:33.085 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-08-23 10:04:33.086 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-08-23 10:04:33.088 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-08-23 10:04:33.098 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-08-23 10:04:33.098 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-08-23 10:04:33.099 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-08-23 10:04:33.100 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-08-23 10:04:33.133 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: 469299394565366028335407060664870220013864682008 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Tue Aug 23 10:01:24 UTC 2022 Final Date: Sun Aug 22 10:01:23 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [29:d2:bd:4b:d4:75:eb:fe:59:b1:e2:96:2a:6b:5d:61:82:44:d8:06] modulus: 8565afd1f23a7613cc5aefd49014e808679df61c9776cda3219db483ca0c7cf8c6f71d8362009376a2b7cc63dcb35b7e9b242dc8f15e2d4d4061ceacb06b00865361c90ee7936419b96464366cb04be60ab285e77ea137444585ba557e63620bee1b067de9f8259d0423c3910c479bd7ca8ec3da4a885859889c011a647980afb729c5185212dc7e2f3fd71b0692ed063fb538622f99bb917529a4a0b1aa16b8b2b9cd821df9ef05e1c93cd19e1d36ed1cbcdf825d97a022a2f7112a81262a46fef410664358770f7b872f42536e60f89e3b96c7cb2717726eb2ce3451ec520d8effba71d27aaeca0d0488a95d750b2eb2300d9da8fbc0c4209767aefadb63d3e0718f4c3e39e971baba6ac4537e440b7b90c74f83c2fe459effcdf2e5bff33ff74a81094f8bc3eb6558c5c560a34c67643668891a3ff2b75b2ea03e489309e28cf8ff648348223437c0cb33ef3e15c94be93fcd08883351985a01aaf915f5ac3d958ba4c44ae5a4789a91fd000a4e4094114097fe50bad328e611b9fbb16c67 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 7dce086e6d67fcf622e01b9d76dcb20114a01baa 04009a5d1fffb4dbdf649e9988bd511db47c0bda 541f90a3662b605250ef90159a1135e301ad61cc 2c6329f00c7753d8eee6121ab7aba408d5e024f1 2668d7dc3baf3ebb5471aec9ce11187a5886f5b7 71fb7bc50eb171e17ac0b3f364d172284a26d967 2210909f2322328c746db30355ff634ab16fbcc5 4514658f2fb1dbd492e1bbe305a76487efac743d ffbc04c14c1381bc97f572c0f7676c31aeae98b3 1508c142fca6de4c9178bd8921a9c220c6553d20 efce7bbfefe4fedcc70f94fa641b18ece6d975a7 91c1fb8e3180abd34141a495c25681aaefd45eda 4436ecc6f7a3b90ba907f96f52a124b14831d68c c6e2f789536a0512c21e52d6d3b1d201a52719a9 924e9212d825fd2120710a02e986c07e7b693cca 7d023022c6efdd87838cf37f87dd32d3d7f6f3f7 5d07dcb3455cb0c1662e91b786e4ae62ca4a3f7b a305c6d1af543392f10ff9bc57375a0c4827a374 a1338670c27d82f4965eaf2bb1c186ff9df1074d 978ac85a 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 [0e:36:b7:0f:5d:5d:bd:42:17:e6:38:17:31:18:3d:d4:81:cb:93:b1] modulus: dde3037cec92cb2b830556737f8fe629333b49379044a5f0afefd508991a59cc4e2fa78513c2b14a9348c02c0ba21ca1cd454e2883a8b7112017165590ddb303cdf3d743f9e24710b2e45891565e6a32a5b83434bb7e2132d7572a8b9f82168e2e4126b1dc12bfbd8cebe723518efe8ee3c6047a8b05b82446aae3a050ff3d1af5f218986ffff4b6fbe491e728f405347b5d48df12727305a9e298c6c294c4af7c1179af7dff7bab5d3296092e2fc5a58845ef68909f023654756448cb3e45e508f8446510ca4785f9da803e2ee3c8c886861b197be7c17a400a9a76c25657c660a2bac4de17a1ba675a9476015c1c53d8f32dcddc962f4f251ad8133cbd2319 public exponent: 10001 ]