2022-10-13 05:08:04,848 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-13 05:08:06,271 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-13 05:08:07.027  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Oct 13, 2022 5:08:09 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Oct 13, 2022 5:08:09 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Oct 13, 2022 5:08:09 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Oct 13, 2022 5:08:09 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-10-13 05:08:09.693 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-10-13 05:08:10.017  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-10-13 05:08:10.198  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-13 05:08:10.971 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-10-13 05:08:10.973 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-10-13 05:08:10.975 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-10-13 05:08:10.978 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-13 05:08:11.016 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-13 05:08:11.019 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-10-13 05:08:11.141 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-10-13 05:08:11.736 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 13, 2022 5:08:12 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-10-13 05:08:12.637  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 8.616 seconds (JVM running for 10.335) Oct 13, 2022 5:08:35 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-10-13 05:09:22.197  INFO 1 [nio-8443-exec-3] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-10-13 05:09:22.203 DEBUG 1 [nio-8443-exec-3] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-10-13 05:09:22.240 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-13 05:09:22.243 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-13 05:09:22.259  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-13 05:09:22.261  INFO 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-10-13 05:09:22.262  INFO 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-10-13 05:09:22.263 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-10-13 05:09:22.264 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-10-13 05:09:22.267 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-10-13 05:09:22.276 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-10-13 05:09:22.280 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-10-13 05:09:22.325 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-10-13 05:09:22.331 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-10-13 05:09:22.331 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-10-13 05:09:22.334 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-10-13 05:09:22.905  INFO 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-10-13 05:09:22.907  INFO 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-10-13 05:09:22.908 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-10-13 05:09:22.909 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-10-13 05:09:22.919  INFO 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-10-13 05:09:22.920  INFO 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-10-13 05:09:22.920 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-13 05:09:22.921 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-10-13 05:09:22.921 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-10-13 05:09:22.936 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-13 05:09:22.936 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-10-13 05:09:22.937 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-10-13 05:09:22.942 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-13 05:09:22.943 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-10-13 05:09:22.943 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-10-13 05:09:22.945 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-13 05:09:22.974 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: 408375587405843148947650411232957181711597975897 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Thu Oct 13 05:05:21 UTC 2022 Final Date: Tue Oct 12 05:05:20 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [f5:a5:bd:ba:f7:d5:6f:7c:1a:1b:68:43:61:a4:0c:7e:a1:42:be:a6],[56:66:d1:a4] modulus: 98d44bf5daa084b1d24657e4837dc64fe8f4fbdebe811fe9919cfc2c63a4907aef8cea7f64d4357564671da4ccb1eeab13e8b0bade6f407e9e348713b0ea5ecab7d13bac10d3e980d475bf18f8703bdfeda4bcae55f5282af5339720011eef4a8737fd13bff47629461eaddb719ea4dd1c496c17f72bff3f1ea035cb85ed6b828ffd5ae181cf5b1d53bbab6813a14a76bc588c05eb0e8e883031cb8fee3c556c69e38e672174e116af9311e1bf29b4da77a05e1cd26d0866592f35ac83d3f3951807bc13ca4dab3b2528206e0989e369900477d756310eb8f7df0500ad6cd7180a091d500ed13251148e0dd26a83c0410726507ba0570b8dacce1f5328aa2befd553506b6017e3555f128486fbcf6c9eabc28ac76bc20fbe8604ec80eabd9b89e9cd211150ffbe0698d54fddc9dc8737877c83a3c97e88c362759f7acfecc406b4af49b43d4ee48b64911b2bbd9e69eb6ddeeb02de28bcf9f630966a4f378533dd7a32a9f503229a5f4098891ab069bd7065629bf67b3fab96ef8dcdef995651 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 18a9ea28d5687df95ee527b49525941071dcdeaf fc8410d3f4ac3df5cd6b92c743a9d1914efbb9e9 69870805149aadb44e0ad3bcdb75443aad67e415 24181ab9ac339b5d60a2964bd0c3c6b1212a58dd 2b75aa31656d164c2ee78edb23ab3c3e6ba5194d 3342620b4526e1ed6f4077cfbafabda99c521137 1a684d4c1cd873e872b6d4a24b0e4f5f69f6514e d25ef6d64058f1d4a9a75fbc7cb601fb01dc53d8 c0bf3dc35d8a6f019a8ea6c863c9216702a2e5f7 d10564faadf94bbb74bc8c7e29521a2441d8c4be a78b3561131fffc23c03f561b026c189e069fe8a 3dd1de0d771317f3f0db842cb1b26f61ee875366 2de12db4ed2e4ff084c424c61205c28d505f1d76 ff5bc034a666dd20077141486d195b29c4ba78ef 59dc832cca8d4c1df2ce8ffb1450016ced89fab8 2d45754df7580051a061a7b2f8bc9985e1f9aef7 896fdd7fbba1573327cbc2492da4d5d84008dac0 de90afee224c4428b18b25c06ba17902ff7f7baf 852a91586c15b8e35a236f64870a849acba8d060 ba77b45f Extensions: critical(true) BasicConstraints: isCa(true) critical(false) 2.5.29.35 value = Sequence Tagged [CONTEXT 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 [ca:9f:53:2a:4c:2f:39:9a:f6:c9:5d:56:0d:43:b8:ed:a8:ed:d1:ab],[56:66:d1:a4] modulus: cb687d68a227437056731f23dce0794482c8ad91243129639d9a72bbf36c0cf3b51a0342848c451228a73cb3bd0db1f34b6f3f138d8fcfd4696fd42b15ca122c814fe6fa013c226bac94cb8f89e361bcb448a9926bbff7f2631f2cfd00a29b61226e633175d49da26ca0c7fb24cf893d89f125ea5196ce26892d6406eead5eb5f5b421c21d09ab866ec02a315aed72db7a631d63708f58d223d13a70a213f7910ade63e1575282ba6bfe6115df725211db6e15d247878d00d571695a374aca7f5252eadf76f2cf2adddb2ff2a393593c60af13da8082865c96a9e7faf5338dbd0edbf426c9022582d85c26b0df193ac45314b534f2dee155340236bb0147e3ed public exponent: 10001 ]