2022-02-05 10:10:54,416 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-02-05 10:10:55,557 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-02-05 10:10:56.366  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Feb 05, 2022 10:10:58 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Feb 05, 2022 10:10:58 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Feb 05, 2022 10:10:58 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Feb 05, 2022 10:10:58 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-02-05 10:10:58.966 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-02-05 10:10:59.272  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-02-05 10:10:59.452  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-02-05 10:11:00.279 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-02-05 10:11:00.282 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-02-05 10:11:00.283 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-02-05 10:11:00.287 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-02-05 10:11:00.328 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-02-05 10:11:00.333 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-02-05 10:11:00.472 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-02-05 10:11:01.195 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/]]} Feb 05, 2022 10:11:02 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-02-05 10:11:02.391  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 8.772 seconds (JVM running for 10.829) Feb 05, 2022 10:11:23 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-02-05 10:18:31.434  INFO 1 [nio-8443-exec-6] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-02-05 10:18:31.445 DEBUG 1 [nio-8443-exec-6] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-02-05 10:18:31.491 DEBUG 1 [nio-8443-exec-6] .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-02-05 10:18:31.503 DEBUG 1 [nio-8443-exec-6] .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-02-05 10:18:31.523  INFO 1 [nio-8443-exec-6] .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-02-05 10:18:31.525  INFO 1 [nio-8443-exec-6] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-02-05 10:18:31.526  INFO 1 [nio-8443-exec-6] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-02-05 10:18:31.528 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-02-05 10:18:31.528 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-05 10:18:31.534 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-02-05 10:18:31.541 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-02-05 10:18:31.544 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-02-05 10:18:31.596 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-02-05 10:18:31.608 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-05 10:18:31.609 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-05 10:18:31.617 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-02-05 10:18:32.303  INFO 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-02-05 10:18:32.306  INFO 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-02-05 10:18:32.307 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-02-05 10:18:32.308 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-02-05 10:18:32.318  INFO 1 [nio-8443-exec-6] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-02-05 10:18:32.319  INFO 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-02-05 10:18:32.325 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-02-05 10:18:32.329 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-05 10:18:32.330 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-05 10:18:32.356 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-02-05 10:18:32.357 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-05 10:18:32.358 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-05 10:18:32.366 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-02-05 10:18:32.367 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-05 10:18:32.367 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-05 10:18:32.370 DEBUG 1 [nio-8443-exec-6] 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-02-05 10:18:32.409 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 487785121837800606274477892022801799526751077706 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Sat Feb 05 10:08:05 UTC 2022 Final Date: Thu Feb 05 10:08:04 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [3c:3c:ec:38:d0:7f:43:ec:b9:be:04:49:50:b6:09:4c:68:2d:6f:b8] modulus: f59a1092121092b28deaf03b35de778d5557b045f205b9a5368d2052e236bcf7bf0caad943d72f87d46ec032a7ab202e720dd288a1f21df0975faa520d4792a7772535db81676b71c29cd8ee12ce21726f14950653ee8e30abc7321ec3f0f85efe3251e95337d5bd0fb0ad30f760291b29fe1ea8fc03331357496e8a1bb9874f14f34509b06d8c16736358e5400bcc326227a5a5ed4ade13a965bcbe98c39a8c8d189dc1f69546f3568715e7f744253eee2211034f9c21be3ef6e2755f8b88d826c1f077f4408375516e1b87fa3cc51e868551eded0c230896da431a908eeb9a29fc637ac099f165961a543697a9c9beb9d3fdb893d5e5760f4fc6b8a1ed47489a0547b7bed1448c4f45943ec3c0d704953ad67329d7182aedd1b58740b3b9c2931f05924663aa497b2c47683a527a7c19c156eb95a2fb50d14008626af3a293874599bfe60ce1ac2b0e0cadbff59ea3dc9789bb05e8dd2896baf105389c5b78bb382f18402ca7cdf826243815ea13abebfbfac125e930696aca11434676228b public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 4a253de8da401a05bd64bde694b331b10c8bab13 796762ccfcd7874a1c65d3ac1147c9ecac665240 8b4a8c66b33ea7907a0cf53d707d76c9738559b7 943e99aa7c2489e56799a7552d76ebd22a2c0a78 24fe6bd280567811a3b9049c9c2f240adeea3189 a72b0c25a65c02dd65a55fcb4aac096642d9c711 30d9b3991f15d9aff0b8cd91520f016333e7a9b3 9754024cb98c2c6815738fa134e2b8f6c1f5111d a985142ae2c9ea3d9e895966a59ae138825c9ae8 8da50f525d4ff3bfb3ebb0c44e7ad42a8d85aeaa e28c5b464133abbe7b4c089bdf76848816610ab2 52f7b274b7bf019a569c6ef8ed3df205d0320954 305303846fef1d02c571dcda7d5222da447c2b2c e0b401171d5c0a407d6464bf225ebedaae585269 fadaa6ba61837a8c74d524a354e8beecf54b1a55 0d6fafcd3fdde5b0cb0303214451954e1f3a8312 cd4b979b67fb31381b80e22236e2a4dfc0917719 4cee70e32977c1af551adad240ba7664e379d3d8 ff5c75084f713fccbf975e4e99dc7ce75b7bb795 d1f47dd1 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 [e0:19:47:d3:2f:2e:06:4b:ab:8d:10:98:a6:0d:0c:74:b1:55:9c:ef] modulus: b680423ff9f6ecbc81cec3a9041d471c1ac240d1250e2dc8ea284645e38cc908395eb2ff898552c84eb3bb415cb7847bdf430d8ac15403e2ae0d761af8718e72d79fa5e1104be32c0476767f4afb2b0445eea5d123408f19cf85f52b5c6fbece60cfd3e96e0d039e548b57aa925051d897d70dee4b03cb38db2a98f4b998b3bce5ca5d8ea6661c835dc024b3c65dc34a613aa171dc337fd8aba1c11d28e94a3092ffa759bf077d1178e5ba9b9d7ef5457a6dbb424241035a197e2aac3d94084fa252ffe5a0164cfd4671fd2327adb05048f32d51e0880bd574cf323e9f756e2b59d6cd81485c243bd8215e18778d06672b578b173b913b3b1f23af90165d819b public exponent: 10001 ]