2022-07-16 05:35:12,668 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-07-16 05:35:13,786 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-07-16 05:35:14.676  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Jul 16, 2022 5:35:16 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Jul 16, 2022 5:35:16 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Jul 16, 2022 5:35:16 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Jul 16, 2022 5:35:16 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-07-16 05:35:17.536 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-07-16 05:35:17.826  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-07-16 05:35:17.994  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-07-16 05:35:18.762 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-07-16 05:35:18.765 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-07-16 05:35:18.767 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-07-16 05:35:18.770 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-07-16 05:35:18.827 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-07-16 05:35:18.832 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-07-16 05:35:18.974 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-07-16 05:35:19.655 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/]]} Jul 16, 2022 5:35:20 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-07-16 05:35:20.601  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 8.881 seconds (JVM running for 10.681) Jul 16, 2022 5:35:42 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-07-16 05:36:08.700  INFO 1 [nio-8443-exec-9] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-07-16 05:36:08.710 DEBUG 1 [nio-8443-exec-9] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-07-16 05:36:08.754 DEBUG 1 [nio-8443-exec-9] .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-07-16 05:36:08.759 DEBUG 1 [nio-8443-exec-9] .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-07-16 05:36:08.782  INFO 1 [nio-8443-exec-9] .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-07-16 05:36:08.785  INFO 1 [nio-8443-exec-9] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-07-16 05:36:08.787  INFO 1 [nio-8443-exec-9] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-07-16 05:36:08.790 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-07-16 05:36:08.791 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-07-16 05:36:08.796 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-07-16 05:36:08.806 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-07-16 05:36:08.811 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-07-16 05:36:08.853 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-07-16 05:36:08.861 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-07-16 05:36:08.862 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-07-16 05:36:08.866 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-07-16 05:36:10.279  INFO 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-07-16 05:36:10.282  INFO 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-07-16 05:36:10.283 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-07-16 05:36:10.285 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-07-16 05:36:10.296  INFO 1 [nio-8443-exec-9] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-07-16 05:36:10.298  INFO 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-07-16 05:36:10.299 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-07-16 05:36:10.299 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-07-16 05:36:10.299 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-07-16 05:36:10.313 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-07-16 05:36:10.314 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-07-16 05:36:10.314 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-07-16 05:36:10.322 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-07-16 05:36:10.323 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-07-16 05:36:10.323 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-07-16 05:36:10.325 DEBUG 1 [nio-8443-exec-9] 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-07-16 05:36:10.362 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 22705056286989294454033493128471736582455450060 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Sat Jul 16 05:28:21 UTC 2022 Final Date: Thu Jul 15 05:28:20 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [ec:ea:44:5d:3f:66:73:33:9f:31:4a:f7:6c:51:de:39:79:b3:f9:d1] modulus: ab01c7b8a39cb67848e29365e5e7e82b0b8a270b2e990e0e8aef68ce00560e9ee37c7c6aed8d931a54bebaf9abf84e6990a304079c7579f4b32f533af0b3258ceb1c89c121992b00d37bce93efd0176662aaa02001d994f697e1f8c73240a71fded88233d52f3a8cbadbac5d0698703e19a575edb090dffeb23fab0c4998f2ec7a0b014630244c43491b21d7c194048c86af0fba39ba91700c43ccef425f66b661fe432231272878602f33d94f37fa5641d3a2e9567837322b31aeb546af50e074bd7532284e47733f96f1514fa8a2a7e1f8ae41059cb31a6952de40fb10665307d1f7937a9c8487d0d481dd990f73dfd0116f82b8f1a5595bcf443c48f49b41908704116d496dbb56472266f2474128e7730fc8cd71d29db0a82deb9413a35593c61f7e013712ed1f6575e8fb89aaefce753c98e96cd10ca066c2b82df9eafc137ba9a130046b1e18c0102ce0670e5a2941cb4bc118885aff296625a5a26294a8e7bdee7e9f6bd027bfbd05924a444eaeb979811298c905f530465775d7198d public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 32c8e702fa2ced936d9e3d0883870e4fe7a0f6ab 1504e01241c0d2f91286fd5947ea25c347adb374 2613f2593d557f255d2f3fba5f10aa072fc63ba8 1d7884e99e9116a48a619972068efe1c31c14907 5a46b03491af20039a76717f65a01bdc874d651f f1a6dc95468552731bc47c29089ec3c927f488d3 4ff91f3c0492f58ec729afca878b01d9135d2de2 e88a0f25d24895f74f1767b30ccae446bc09075e fef83fb92c2626c34a7314af3703e3cdea4a868f a8ffe29d480995ca92e30d76d7a0283749c8a4bc 7636c3cbedb1c2b7aefa6c9d884a5aff3f982ac8 f845d8ca42d9acf10373416b2a2f5064b5a03a85 257cf2169ed5e0ab51fcbfba20694faeeea34149 192ad4181fdab087714a2af797b80040635854eb 735b604cceb5df06228a39bc57b09bbfd6221299 8888bcf1edb24f6ef711c49598df014d7ab9ce93 18f5034171271f4011abb3614baffcd74251a59b ef14519c482b26dae34a4aade2b81a2e003ec16a b6128ba8dbb774be29c74945d1719e2c56ad9398 042528dd 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 [ff:3e:48:9d:89:25:10:ee:50:1f:b1:98:b8:78:51:8a:0f:3c:56:7f] modulus: cf51d49b1ebf8e6dd169ae6dff6dcea839ba43d64e56091a750fab0e9f5b72bf80ce19122e4252efc9f21870411d47e03efe7ca22448bd67b1cc45c13da95eca9c22c3c9484520ecfc9a28bf3b1e0a359a17e1cb2554bd84689253df850a97abdbf1d51d391a6c414af2b472cfd4b3cb4886a7966741f50431571a94b083891f9f04ed2438d7e118cfb79a2e2f79fcf19dd48381e8838bf851283664d4f3aba90f1a74d5447aab13e6a3cdabb305d1a73ebb12811c3e0790300314daac0fc32a68991d62bf12d7524bda76ba5a00f14c728cc809c54531bd6fd1dfc71ba2fe90a4b8f82a78423830b0a62b316f89af3dc2ef0cb02d75cc6003382f610f18e957 public exponent: 10001 ]