2022-02-09 12:07:46,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. 2022-02-09 12:07:47,692 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-09 12:07:48.312  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Feb 09, 2022 12:07:50 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Feb 09, 2022 12:07:50 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Feb 09, 2022 12:07:50 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Feb 09, 2022 12:07:50 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-02-09 12:07:50.524 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-02-09 12:07:50.810  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-02-09 12:07:50.993  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-09 12:07:51.645 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-02-09 12:07:51.647 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-02-09 12:07:51.648 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-02-09 12:07:51.652 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-09 12:07:51.687 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-02-09 12:07:51.690 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.s.u.SwaggerWelcome: {GET [/docs]}: redirectToUi(HttpServletRequest) {GET [/v3/api-docs/swagger-config], produces [application/json]}: openapiYaml(HttpServletRequest) 2022-02-09 12:07:51.794 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-02-09 12:07:52.407 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 09, 2022 12:07:53 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-02-09 12:07:53.283  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 7.012 seconds (JVM running for 8.33) Feb 09, 2022 12:08:17 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-02-09 12:08:24.170  INFO 1 [nio-8443-exec-8] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-02-09 12:08:24.177 DEBUG 1 [nio-8443-exec-8] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-02-09 12:08:24.208 DEBUG 1 [nio-8443-exec-8] .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-09 12:08:24.212 DEBUG 1 [nio-8443-exec-8] .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-09 12:08:24.226  INFO 1 [nio-8443-exec-8] .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-09 12:08:24.228  INFO 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-02-09 12:08:24.228  INFO 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-02-09 12:08:24.230 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-02-09 12:08:24.230 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-09 12:08:24.233 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-02-09 12:08:24.238 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-02-09 12:08:24.241 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-02-09 12:08:24.283 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-02-09 12:08:24.288 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-09 12:08:24.290 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-09 12:08:24.294 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-02-09 12:08:24.771  INFO 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-02-09 12:08:24.777  INFO 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-02-09 12:08:24.778 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-02-09 12:08:24.782 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-02-09 12:08:24.798  INFO 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-02-09 12:08:24.800  INFO 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-02-09 12:08:24.801 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-02-09 12:08:24.802 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-09 12:08:24.802 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-09 12:08:24.819 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-02-09 12:08:24.820 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-09 12:08:24.820 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-09 12:08:24.831 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-02-09 12:08:24.834 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-09 12:08:24.834 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-09 12:08:24.838 DEBUG 1 [nio-8443-exec-8] 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-09 12:08:24.898 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 398356074894088841739241905859868107327501285065 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Wed Feb 09 12:05:27 UTC 2022 Final Date: Mon Feb 09 12:05:26 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [b9:e6:e1:f7:27:c8:9e:ad:04:cd:fa:65:71:fa:fc:8a:85:94:63:f6] modulus: b10c14eacb21c7b8ad55269d7febe2214ac0c195aa4af8544633147e13dd722ae80664975d9bfc79b6a042285106c50943e11a3cb39f111a0755b47c08674bec2fcae172cb543e950f94309640ed847e83e0b1acdb482636b2247237d32910c9931695db2994a55f7de43d938333c7163139932ef1bd46750ffbf44a1700bd37ae6ae64c03d3933de65bf0fa0497509cb7d86c90798c48eb71451180d4f73e87c268608772921673bff2c9c69012762505112e09739354da89ac7762369853a80f1643e8986247dfb7b72a9732131361e751c5b7010565ca74ea44a6832358f205487d4f1c2b145d6266de39475fee693e89974fe4e8d3cd4e30483a96aebe854aa22395d1f727b767d7b1f2848f55db064017df2d46cc4f6ea3644dab28534d6b1d1ff36fa9c1fe113be4c74a8b8f202860792ac8ba525e42b59cd4072e5f77ac3479980124779f83c377ec64e49c103644acc38f58ed3d8a8f93377241b2dd568a81a4fc92f1068355b273d24aaead00cd74cd0522c51dfa8590feba093db9 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 783854fa054d4fb0a3ae8af0f5a432eb200b4173 d44eed609a9c54341e54c3a92353ccd87d59a6a4 bf9b2e43df10d59d74831ae1cf887eef25028fca 6a948a98fa3408540308008e70848f024668eed7 841851d43891aa27b5199f4406fa61cf774f30fd 5b573c152ba540b53e4218d5fb459316f2a5a98f a6ed55a5f599eff5a8e038d068f2cf6ba48a1ca3 b5084957dabbf1082592733dc4de813984fce160 7cbe078de3b7499137eb4963532f5db66ab5451a f83731404557ce27ad07d3d3a4e639a404b9afd6 2e345250d5fd19227fbd8aa2027f47a9cbfac23a 1fcb0aeb0b68f7cec2e8a6c72938d0864769db2d a934f14837668e9aa3b96b41f35eecb1a39e758e 6b7df1e0529f496267242035fbcfc1751a42946d d668dfc4f1be75f48ed2aa6e60e79624ad1d759f 1e97ed5a00f6dd391bc53f92785e5b5b1e78a7b4 444a0dfd53c65cd7c1341b8fe369cac06df97e21 dd5e30afca832dd8938ee4f6d5c662137f2a6776 9b6893f28ff969e1e8c396511b036c614a33df67 2492be9c 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 [a6:32:0e:67:a1:ae:37:6a:56:95:79:ab:8d:f6:76:f4:13:b8:49:76] modulus: aa9d597d14c95973b9d96f7b556141e482b9a057a5efc3546fd7510e54bfd2dde71a91575caa090eae667b8291ac5910e2a45d809848e1d96f4dcf519ff1bc6e0eb7588b4f110feaffe9c3a2bc4a721a683e18bd9007d2567d209edbc1a7da5a449e8bc45702e3e1413766df9da212f264ffa7a5403197b379310f6207cf7a883017f09d572902c4f975eb4d632342d15eae1af299378896f485f72c344fa316ae6020cbe26268ff20636c0ede4c3b83347015093097aac72a09eaedd1dee4400c72421b2f28f972c5992eca9874de453a687eb30813950ec7ca9bb275d3983df8ee25103fcb35233188bd66d45d0064888b2624268f85acbb53e577ac9d9535 public exponent: 10001 ]