2022-06-26 03:15:46,661 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-26 03:15:47,548 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-26 03:15:48.272  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Jun 26, 2022 3:15:50 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Jun 26, 2022 3:15:50 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Jun 26, 2022 3:15:50 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Jun 26, 2022 3:15:50 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-06-26 03:15:50.745 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-06-26 03:15:51.169  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-06-26 03:15:51.438  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-26 03:15:52.244 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-06-26 03:15:52.247 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-26 03:15:52.248 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-06-26 03:15:52.252 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-26 03:15:52.299 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-06-26 03:15:52.303 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-26 03:15:52.430 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-06-26 03:15:53.088 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 26, 2022 3:15:53 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-06-26 03:15:54.026  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 8.214 seconds (JVM running for 10.069) Jun 26, 2022 3:16:20 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-06-26 03:16:38.944  INFO 1 [nio-8443-exec-4] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-06-26 03:16:38.953 DEBUG 1 [nio-8443-exec-4] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-06-26 03:16:38.992 DEBUG 1 [nio-8443-exec-4] .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-26 03:16:38.996 DEBUG 1 [nio-8443-exec-4] .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-26 03:16:39.013  INFO 1 [nio-8443-exec-4] .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-26 03:16:39.016  INFO 1 [nio-8443-exec-4] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-06-26 03:16:39.017  INFO 1 [nio-8443-exec-4] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-06-26 03:16:39.018 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-06-26 03:16:39.019 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-26 03:16:39.022 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-06-26 03:16:39.028 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-06-26 03:16:39.032 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-06-26 03:16:39.081 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-06-26 03:16:39.086 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-26 03:16:39.087 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-26 03:16:39.090 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-06-26 03:16:39.694  INFO 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-06-26 03:16:39.697  INFO 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-06-26 03:16:39.698 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-06-26 03:16:39.699 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-06-26 03:16:39.708  INFO 1 [nio-8443-exec-4] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-06-26 03:16:39.709  INFO 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-06-26 03:16:39.710 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-06-26 03:16:39.711 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-26 03:16:39.711 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-26 03:16:39.731 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-06-26 03:16:39.732 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-26 03:16:39.733 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-26 03:16:39.743 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-06-26 03:16:39.744 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-26 03:16:39.745 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-26 03:16:39.747 DEBUG 1 [nio-8443-exec-4] 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-26 03:16:39.779 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 308903450806963228644516255602566852320633396216 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Sun Jun 26 03:13:42 UTC 2022 Final Date: Fri Jun 25 03:13:41 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [13:29:f6:c7:bc:40:d3:fd:df:6f:10:2a:59:18:89:1e:3c:e6:1a:7e] modulus: acc4d1e3e8ace15febca38b393c7d3c8fd33a4e6a05a3587e4ab699ee50f5eb1e8064e6a4feca196f286e9e9434cb470b1570a4a8065981e90d03f1dc79a4e2498a15c539b9d3d75deca013ffe95211bb450a330949c928ae13d548a481662119624cf5ffe7842ee54bbbdbdf7d3d87456105ba32ae245f4c3b4932a5d66a16378beda3d61a504c76c401710e58369e39976912ed6c1b5f03bc0a9241726588db2fd16b30cc6412341ed93f152085b6d345a582642c61ccfecfd4bda2d8f5230b4f64701ac1645fa544e620ce2dc4f7ad0376fa7d7f0246de2e5b40fbd284d970b05ed92f0fd42dc32671ed5928bd6478d18cc4394175a5b996fa961cab2bb72eeaa301da08eaa604b7969fdae1c136095ac711708886c30d7de3c85aa2bcf05947e58099ba45309cde8688f6747629cc9156fc5921b29c0eacf7088998cb3459db83448bad6a8ffb922beb3e6294d1be763c8a7c233090cb05697bd2960f23f472c78b1c173a5137fb9becccb257cc45cf87616818564f8cfbc9505c347e243 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 30f9f7c59da380f83c6222bc65d29489f13b964c b2b652655a665f56d702698d974073bdb23e63c0 cd8179b5e933b2a907d73367bb9e4720f61c84b5 5bc1323e761da563dcbdea6e95d543944dcc053c 03437a57dde80fe3205dc3eb7dc4d609d472742e 8b32c6aa42945a1c1688970e1ed3183eb22ceb8b 3baa62a82c0e3dfc221a821683192978576920b1 4fca96f2f809fb2e2584d56b28f631849df53081 81343f930a48eaac19a229715833fc7df0db36b1 d3f1f60cc930992c979fc2f7f0971cbefbf80ee2 f6415831e23ab897123c2a198c0deac2ed4abc12 7a460ecd5dbde1d88f733dfb06fd998113fc0496 f241b978e15606a93e365c19af178f37d729cb5e 7533cc99348c4964eb5a95cd04ab1dc29061105e 9c8d0f03b617fca3c2528b29394cd21ef459c43c dfc795d4b04cc5fc7b22e6acabbeaffea70d6c95 e8a2c74ec0ae847b17fda668f593be538b5e3570 0e591cab3df15a1a61a3a71e7ab3d0c50fb4a591 641128227290294b799fea5558e82e0c85b4aa02 524c08f4 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 [2e:74:56:a6:a0:1e:7e:94:e7:32:c1:fa:13:e0:62:90:69:9a:c2:6f] modulus: a8639ed748e4c482e58185a755755283015e3256f41c415bc550a90773ce369f657d1e0548e90542ac4c0c0b31eccfadc5e959b4ac80b2887cb63781f1abad3c109a13e17227d23157793875a7cdcfbc7e3f589c040a507462e1b19858730bf7b469e0204a54d0ceb1f68904e7497538b0e252c75a672244d3c66660b134717f6032565ba4d3167d9651a05099e855de932649bfb53d15820fc2b616e780147996e620fc0ac47da168a8fe61a0ab5a9c89d89a7b70b1bccf1c2d8a6b7b3e0cc0895641275f256f035f18b8999b8be0c2f0319447146721c320223e584ff984872e1e6acaef7f1e9c6d50498248225a2534b9a0fd9671e82f4f04e2882f987719 public exponent: 10001 ]