2022-05-24 10:59:03,356 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-05-24 10:59:04,890 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-05-24 10:59:05.705  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default May 24, 2022 10:59:08 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] May 24, 2022 10:59:08 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] May 24, 2022 10:59:08 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] May 24, 2022 10:59:08 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-05-24 10:59:09.306 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-05-24 10:59:09.706  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-05-24 10:59:09.917  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-05-24 10:59:10.831 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-05-24 10:59:10.834 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-05-24 10:59:10.835 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-05-24 10:59:10.839 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-05-24 10:59:10.904 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-05-24 10:59:10.911 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-05-24 10:59:11.087 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-05-24 10:59:11.926 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/]]} May 24, 2022 10:59:12 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-05-24 10:59:13.178  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 10.664 seconds (JVM running for 12.618) May 24, 2022 10:59:39 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-05-24 11:00:16.422  INFO 1 [nio-8443-exec-2] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-05-24 11:00:16.430 DEBUG 1 [nio-8443-exec-2] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-05-24 11:00:16.484 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-05-24 11:00:16.489 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-05-24 11:00:16.517  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-05-24 11:00:16.520  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-05-24 11:00:16.521  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-05-24 11:00:16.523 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-05-24 11:00:16.523 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-05-24 11:00:16.532 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-05-24 11:00:16.540 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-05-24 11:00:16.544 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-05-24 11:00:16.598 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-05-24 11:00:16.604 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-05-24 11:00:16.604 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-05-24 11:00:16.609 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-05-24 11:00:17.309  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-05-24 11:00:17.312  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-05-24 11:00:17.313 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-05-24 11:00:17.314 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-05-24 11:00:17.323  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-05-24 11:00:17.324  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-05-24 11:00:17.325 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-05-24 11:00:17.326 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-05-24 11:00:17.326 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-05-24 11:00:17.337 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-05-24 11:00:17.338 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-05-24 11:00:17.338 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-05-24 11:00:17.344 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-05-24 11:00:17.344 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-05-24 11:00:17.344 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-05-24 11:00:17.346 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-05-24 11:00:17.394 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: 69439209368930756307476909643009018678627485205 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Tue May 24 10:56:43 UTC 2022 Final Date: Sun May 23 10:56:42 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [09:23:d8:04:f4:cd:d9:84:19:da:07:8d:c2:aa:27:cb:5e:e1:5d:6f] modulus: c70aa852da0a168c413337606a2ac803bbbae22fc3f1362a9b96807b62b024d63e4d2e6ec3e6d16b6e07a1bd27277523adc002a2010d0257b45dde34542e5afbaac72b78a4346bbd3030fce8da55f8eb2142781add18f8086e91be2df393cff47006803f988a50a5b194b5353ded2ba12b8c1157d8ad17cc7bae3d9163efb74c471680b83fb71818037eae2a142972a6073de53521259803b026ea5ce60836c42c670ac3df3dafacc433b968cfd5f1d7dfb2cb5f5c69856b1fcb6c31b9ab307e8822a698fcba4758925726696885fb6e9171af0f675ee70abfcb0ff55e8d023b44cf65bd2a09ad771843189d82bb6d7a17aec3f6f08942363bae7739712b5572bf47456e3452229ffc59c72b179173746139cbf65da75acbdd5a9edd6c5f1165f776be170361de570c2f901be303bcf0db95cc2551be0fb85be76a7f81b7f12b7ae55a142a7704a5d4448cc5fc2c0beab0f2932079b5fbf9316d3fbb9e90802af8a88e7af8f79c5e2a7ea0f9c217996b7e09bbf3248c48d67ab5499ed7e23365 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: b926f4ae7a24083de5bb332cee3f2d583c60ec44 ff759c872598bf67111421c614e812f8ab8a74a3 cec1fd780601fa7f1fa911a90de79151cb9d8583 eea4d9d15d7d0bb2ad6eef4d9b7f7faf3dbfbb8b 2524533cc546b1f631d7445f8a498d87d50185f7 3ab2a6fc1ff32cfa4897190f2a3b28a17dd5a1ee 5b78ffa8bc4353c586d0465070d5250014d9e379 c9aa35b0386dbf8832ea1279f3037a179ba5b94e ddf233e6316fc5a411c100aee19e19644197641c eda166c1d27e2a2acc7e38b66ce4ea0fecaafd15 cf836b50b1ccc794a415b269b692dcdd837ad1ee 5d7497763c2f0f62b8b9b8071aa9f85b456a827d 3871604dc152119a917f44ab900d21dda9c9e7b2 8f3889d02a07de7954a56835d08b78af87453ef5 0093c618b7194c38e779d4072279ecf64debeb9c 25e4d4331eb0beb7e7b173a0564b8a8f05fa255a af88e5124a93c5c2d9ffb8585f805f27ba027b6c 0e4f4c962fe574810973946ad839bfa8f6f67080 7b776580680e2e45e11dc8708aa4b46d7e3ef033 8485c9cb 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 [c3:25:b9:a0:f3:e9:cc:48:5a:3c:04:dc:d8:79:09:56:ef:bd:d7:9e] modulus: b9a96d0aabde764cfe400378ff2f2c0da2a65db53ef9af206bf9cab64b2064e7852933044a9bc16fdd3a87ab3158cfd739d85d883c377077f98fe7c2edb59e55065c87029f87e767933bbe91a125b787d0283180c43a9df9a64e7437565b9b3f1f0f51da8bdf311efd110dfa37cbd5e3722af7ecbb17e247305ada4d22067cd24c697473b7ac5fc00395fb59aa470eb006b62d97a83dfbad3499f1a82fab84d0e9b09ad7a95547f69ec2ce931f45928d1839f0d445c58af34cc2a741f9ee277b60f58232b569f63dbfea904e81a94cdcf6522bc9964a88b984a4039317d53fa6f40e91fe1937feb36071ba9b4f6657d78008835dce7fbbc99001cf647fb3bd41 public exponent: 10001 ]