2022-06-13 11:52:17,387 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-13 11:52:18,377 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-13 11:52:19.095  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Jun 13, 2022 11:52:20 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Jun 13, 2022 11:52:20 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Jun 13, 2022 11:52:20 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Jun 13, 2022 11:52:20 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-06-13 11:52:21.406 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-06-13 11:52:21.670  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-06-13 11:52:21.824  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-13 11:52:22.538 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-06-13 11:52:22.541 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-06-13 11:52:22.542 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-06-13 11:52:22.546 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-13 11:52:22.585 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-13 11:52:22.588 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-13 11:52:22.700 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-06-13 11:52:23.296 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 13, 2022 11:52:24 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-06-13 11:52:24.292  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 7.669 seconds (JVM running for 9.327) Jun 13, 2022 11:52:54 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-06-13 11:53:27.695  INFO 1 [nio-8443-exec-2] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-06-13 11:53:27.703 DEBUG 1 [nio-8443-exec-2] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-06-13 11:53:27.739 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-06-13 11:53:27.743 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-06-13 11:53:27.765  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-06-13 11:53:27.768  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-06-13 11:53:27.769  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-06-13 11:53:27.770 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-06-13 11:53:27.771 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-13 11:53:27.775 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-06-13 11:53:27.780 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-06-13 11:53:27.784 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-06-13 11:53:27.823 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-06-13 11:53:27.828 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-13 11:53:27.828 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-13 11:53:27.831 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-06-13 11:53:29.700  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-06-13 11:53:29.703  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-06-13 11:53:29.703 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-06-13 11:53:29.705 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-06-13 11:53:29.716  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-06-13 11:53:29.717  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-06-13 11:53:29.718 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-06-13 11:53:29.719 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-13 11:53:29.719 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-13 11:53:29.730 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-06-13 11:53:29.731 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-13 11:53:29.731 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-13 11:53:29.737 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-06-13 11:53:29.738 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-13 11:53:29.738 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-13 11:53:29.740 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-06-13 11:53:29.768 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: 186786263748182100301188942711828821047014833484 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Mon Jun 13 11:47:18 UTC 2022 Final Date: Sat Jun 12 11:47:17 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [ce:8f:2e:c2:d0:e5:00:00:6f:dc:16:92:21:85:3d:18:a5:f5:0f:59] modulus: c9beaeca4b647a142d8f6dea46bd25996054a0c6ea9132aa342a07df9d73cbf613a8cc35100ff73bbe518afdc2725de6d7bd55d02e4e0f1025fb0a15da6029f70d2d9fe3d1f3e3528b48bc36a4c830bfe9fceda9845497c9eed25e9e56d2bda359ebbb3cddd1b2b40651670963d63a69497a473cbd485ce9df91b6e0541f68904b897be0d7ff0047da75ab22096aa935f156e3a35d57e32f8a83d3144cfe8a6da3771a26e4fa061dcff1dd44d626b03c81aebe50a430aa8cc600e9c5ac74a2c5317fc8b500103f2b50fcd1d0b4a41f4a38615ca82bb099c489ec6e430c4e4097a3ae0b6b601c497613e5ac60142302e6d92dedea629545a99fc7c8a08323c5acebd5922abd3a2993137d8a6c08645d07d78ade4d1779f9193dfbf374b49ed7779552a4f4c4554230608f3b10c9320085bcd3b6b00cef8030ca7e280d74245055aca99b4adbb0c15b2a55c87e5b68e0ade787cd8be4edf85797b7812965566759945a896b99fd3463b15fd50b6a5f426417a74976e331acc407e76a8d69b89b7d public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: c69f4e71a9480c6e4af258bf31f2ac7b8d209b9d 51ec8743b73c320a16a0c79e2e00d541e5424e51 8ed2c29f0fcb241ac1b409a53f540593f6945e0c f4f324702df770e850a33bb17f4e06c221a1250d 7c60e2644d351bee92d659b7c3321ac86f623a16 8d62886e6e4dff5c4baba9c08d75b2473267fe28 147612a20a3b013c4403bce283dca7bbbf58bcb5 d827b975f8fb7f960c462d8660879bf3c553c4ae 5ea2690da8761db33ca100b11e9835cc60f81f4b 1b653769e513e7ea781ff389d19110db347ba145 b07d9f18cc40408815945bb86dae8327906dfb06 acf6fab6b60d9d8b58b86de6e91ce69a46658a2e 5ea8ba9a0e4551ea2b853bd3c2e1cc28e38b875b 8d0f3345cbf55f423e7d2bcffa7c5f7f9d5332cb 497d37460ca5660bf6eac9cd42e967cf11899409 68e02f06f274791c2c837366824a0665a7d1c0cc e51c761716a485918fb2d5869c9b1379fd4364ed 8d6cc0d49fa154663914ad5474e5efda29c7c0ee 390f241300aff58e62073bc470ae57f4d6d5e874 2c11088b 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 [94:7c:f5:22:94:50:04:1b:11:9c:1a:45:6d:37:d9:dd:5e:7a:d6:eb] modulus: ba5def74a0907c0033e15e3f66c96021dd944ff8c8adcca24cf16b5273790875d8357f39edbd4b2ba09801c651139d8cc3b0e1523e3c8626ae47bb9eb2fbcb94f5c8d78c85f03e67367e0072e071f739ef810728e799c638b51eb13a011e3e29288f1d6f97a1d1d8dc95a56e2e9c7a877018ffd98d5729f16737b50ca125a15f13a8a6532221978cac906a670296b819d964eb48638d15ab75cf74bcdf8b3ab5f36fb2414dba038563dd3985a5d3fd5b1b09973aedb59bf22ef69a9e029e884373e1f86d7c7b600fe1eb2d72b90ce09e2dc367d14c2ef955b1d7ff0627849e9c1bbfb7fb467bc8658a197c216fac3a47806adbd344de567e47b0446eca69188d public exponent: 10001 ]