2022-06-09 03:32:48,397 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-06-09 03:32:49,214 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-06-09 03:32:49.998  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Jun 09, 2022 3:32:51 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Jun 09, 2022 3:32:51 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Jun 09, 2022 3:32:51 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Jun 09, 2022 3:32:52 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-06-09 03:32:52.690 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-06-09 03:32:53.018  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-06-09 03:32:53.231  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-06-09 03:32:54.006 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-06-09 03:32:54.009 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-06-09 03:32:54.010 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-06-09 03:32:54.014 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-06-09 03:32:54.054 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.s.a.OpenApiResource: {GET [/v3/api-docs.yaml], produces [application/vnd.oai.openapi]}: openapiYaml(HttpServletRequest,String) {GET [/v3/api-docs], produces [application/json]}: openapiJson(HttpServletRequest,String) 2022-06-09 03:32:54.057 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-06-09 03:32:54.180 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-06-09 03:32:54.862 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/]]} Jun 09, 2022 3:32:55 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-06-09 03:32:55.931  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 8.316 seconds (JVM running for 10.054) Jun 09, 2022 3:33:16 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-06-09 03:33:33.351  INFO 1 [nio-8443-exec-3] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-06-09 03:33:33.360 DEBUG 1 [nio-8443-exec-3] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-06-09 03:33:33.403 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-06-09 03:33:33.406 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-06-09 03:33:33.427  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-06-09 03:33:33.429  INFO 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-06-09 03:33:33.430  INFO 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-06-09 03:33:33.431 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-06-09 03:33:33.432 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-09 03:33:33.440 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-06-09 03:33:33.446 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-06-09 03:33:33.450 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-06-09 03:33:33.491 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-06-09 03:33:33.502 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-09 03:33:33.502 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-09 03:33:33.506 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-06-09 03:33:34.137  INFO 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-06-09 03:33:34.140  INFO 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-06-09 03:33:34.140 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-06-09 03:33:34.142 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-06-09 03:33:34.151  INFO 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-06-09 03:33:34.152  INFO 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-06-09 03:33:34.153 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-06-09 03:33:34.153 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-09 03:33:34.154 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-09 03:33:34.165 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-06-09 03:33:34.165 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-09 03:33:34.166 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-09 03:33:34.173 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-06-09 03:33:34.173 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-09 03:33:34.174 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-09 03:33:34.176 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-06-09 03:33:34.203 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: 189962552563351266954136230234243097735434059249 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Thu Jun 09 03:30:22 UTC 2022 Final Date: Tue Jun 08 03:30:21 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [8a:19:2d:a3:cf:17:e7:6d:0a:f7:e8:7d:29:21:ba:f5:7f:07:42:b9] modulus: ba2654f9e486ba827d97916e829af0fe21b6d2750ae53d71b7bdd30fcd5771993a74f57fa8c1c33e1dfef5f2db7a7d807c0a9671f9c7aff265f4806b5c7bb54da02c0111a43333bb33ce074e7e41963cf6123f75cffdb8d219e46a3df784eafc117780dae02499201e3d5182761468032f8b009c1c667bea6df1b0a173daa1f5855f41916d5bb1ce7e467338b8c26ba2c57f7c00fdde8da3d5d6ada6e9ada417cb0a0b8de52dc038e1959904b6f7e330772383161f27bcc89b3cf1ac2defeb905137e7b5ab9bd5a811da21e7dd2014ef55b81e5e8ffaaae4f1141f2c5bedb270a9e475990d04c79bbb5a600b8c13547f9e83556d57f645439ef5a1e610ce7cb21401f3d82dbb06ced9bb55e9ff539f8d7327eec1bb0a76d7204adf42fcbbc58f35e2bc90316b444025b60c3f508bf59bc2487633d9671d5ae78fdf1040b58591c59e271f653ad5ce0bea4eb6c7dc69454be691c2e2fabd9c16bec1490f865fe7a71ea3376e5ee1110cfeb03d4b312742ffc83c6523414ff56160e8fe9a8e0425 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 9cb7a84cddd0aa1612e86c4cf79ea322333da392 9bc4a0c4b0f15d6f1612f9ec5fca50d2b2bf904f 7eb1e7b19c18a2b3be34e357a68fbd246968a7d0 75178892ab8604dc50cd1da571fac72759215ed3 48fb9461a88f15767b111121ea0f0465801fd5f3 82b3e03b003424af4661e3734220121403907eee 4c3b466cf160932c6a1a03e8ea3765266350603f 7098a4a5bfda1308fe3ed9cf442165dfb6c7e459 c9b5a615b9f0c9db77f1784d84292584928ed045 457ca881ae3d1337aa2e2a541c78932536b68f01 df9723fd574872e2212e77062f4742118b39848a a4ce2a00b2b8aa7e314bd5b87794a439477bef92 5ed9d24f3950ac48a57fd465ca7cd43107405ddd 01d56bf30ecfff45b15ccfe7a581c6a46000afe9 5dea882447690d8d28dcee7c4871aab4c37930ca 6d2c6ba6b1e43e68cd677abf89e0deeb53511bd9 3790459081ba43d86648b6f022af9d95cd842edc 4ce4d4cbd050da3f2cda7efea2708e90fd19f89f 5c6bddcf6adcccd6b9d347e8ddec026da57bf5e2 dff69055 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 [ba:f4:71:58:d3:10:c8:52:91:17:19:13:12:87:24:3b:1f:e0:a7:e9] modulus: b347e72e1dcb57909623229e7bacf16029f4011caa17fc6d1e58c3634fc38a1bb3a93ba5e908dcb36cc06e7728701d7687798630a4496032e4b71da4812474f6518c3e8f2d4f3f75f76dbd5b61b9c10ed8fb220e2ffaaa0f417f9c5ba2fcc229e4ac3406f37efd9acbd3f8d36b1c4b31e5f7a63f760316def747e63fe2b9f4c768045ef6c7387a71e5089542527f7dfb76df69fca3521bbe773823b9f9a907c15ef75d73d08bb444cda5e1061675bfae7a82793baa2e03ca63b8ce8dc7320e4f3edac2eb47aa0b8f6816398afcaf6a4b92197862d9f6254e88bda8d0f8be02f2affc1ac57b6db5d4c64bd4fb74aebfdb2f01ac61c2eb1b6181c0a7d24e119b3d public exponent: 10001 ]