2022-10-14 02:57:59,208 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-10-14 02:58:00,411 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-10-14 02:58:01.241  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Oct 14, 2022 2:58:03 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Oct 14, 2022 2:58:03 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Oct 14, 2022 2:58:03 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Oct 14, 2022 2:58:03 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-10-14 02:58:03.855 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-10-14 02:58:04.138  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-10-14 02:58:04.308  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-10-14 02:58:04.950 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-10-14 02:58:04.953 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-10-14 02:58:04.954 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-10-14 02:58:04.958 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-10-14 02:58:05.000 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-10-14 02:58:05.003 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-10-14 02:58:05.121 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-10-14 02:58:05.663 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/]]} Oct 14, 2022 2:58:06 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-10-14 02:58:06.521  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 8.168 seconds (JVM running for 10.036) Oct 14, 2022 2:58:33 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-10-14 02:58:55.443  INFO 1 [nio-8443-exec-8] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-10-14 02:58:55.451 DEBUG 1 [nio-8443-exec-8] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-10-14 02:58:55.486 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-10-14 02:58:55.490 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-10-14 02:58:55.506  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-10-14 02:58:55.508  INFO 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-10-14 02:58:55.509  INFO 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-10-14 02:58:55.510 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-10-14 02:58:55.510 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-10-14 02:58:55.514 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-10-14 02:58:55.519 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-10-14 02:58:55.522 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-10-14 02:58:55.563 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-10-14 02:58:55.567 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-10-14 02:58:55.568 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-10-14 02:58:55.572 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-10-14 02:58:56.071  INFO 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-10-14 02:58:56.074  INFO 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-10-14 02:58:56.074 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-10-14 02:58:56.079 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-10-14 02:58:56.092  INFO 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-10-14 02:58:56.094  INFO 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-10-14 02:58:56.095 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-10-14 02:58:56.095 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-10-14 02:58:56.096 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-10-14 02:58:56.107 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-10-14 02:58:56.107 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-10-14 02:58:56.108 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-10-14 02:58:56.113 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-10-14 02:58:56.114 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-10-14 02:58:56.115 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-10-14 02:58:56.117 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-10-14 02:58:56.156 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: 238667945337648032964723089226380885728687391690 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Fri Oct 14 02:56:00 UTC 2022 Final Date: Wed Oct 13 02:55:59 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [22:06:91:8e:a2:7f:2e:56:50:6b:25:d3:d8:2b:e9:e0:1e:8f:21:16] modulus: e43b1a1ddcdcc3a15a3d51f2c266abb9adb20ea5fff189aaf51cfb348a69b3a2b0029c6ab5ffc0a1aaec3b095427244dc85f3112e190b08cb162828472bd26006559788ae0908490db50e6126af511e0322a961abb5b312ee24db7223b006aae3d3755e974f0d7eeaa09d37fb8ee761b091d2da909ff32f6f13aa17b7ee6bb5c2dc7a4713087ba44d914940280bb2ae6e6016cf28eed529535ffddd975d646158de3857158f010a937cfb90a862639961e2eb087cd7b26faf9b4414e028c513e0f0bdbce1ace7594616eff06d383b51935398dc7c25704e7083014b5cb6349f5e81d2c511faca2f43ca44f73d801bdfabd194afa5b894435bcaa9197f89da926951b645e572d477dcd7f066df24c1dcc36d8c1ef3c390117fdea896e06bcd26200488a35df5be26221280b7d16745755e151082dc6dc10ae53c8be3dfe525eec6d81b8b03b1c6f61612cbe1316c2392b4412d8f3e2312a467fd0c8725679ad742ff4f30147087f0712eecd16b66448640dfa11ff9bf7eb9d3bc9c71594061d5b public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 49d7c1532d8935b0387da716b5c15c956d1069e9 b023ab5a65d1ad466ec19ac52ac49a5b414df059 cae919c6c24d6177788e32333bdc5e157f51882d 8fafc00788aa23828f4a8c0caa576776eed3d473 fa71a6437b3e52fb07e76950841c464e18f5fb61 aa0f84ff5976bf3189fe25aaa403065a48fef552 cbdb85b15c93e460772d422de14c3684bda8a0ee 8cff27706651d83823410b7fe8bfb2136c001071 9bfd2221adb95b9d2487b4dddbb7145e0d36deb9 af6851ba233f7112352de6bb044a6073c0421db7 1ea009162eaf6ceac541cfa5b903466e54312939 98a84d0dd406b291373beb20b7c9d642ea8db8bd 8bf64d1964ffbc614973ad27cda29facb590fff3 c0a5c594e2e46e81fcb6f61df0a87d7f037da64d 5c5ad37f0c73b5c56a4062a9a4f35b645267d407 741e7163a21c295ccf06ef57e3b57ed25d31b65c 7d3c1b1fc62cc21324cfa303ddf0e4375051a00d e0c2cdcfe0e611262c94a85e40731057cb0751de 6fb8fd90acc573b2ee69982133a331473743ab09 ac51175f 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 [5a:6c:25:18:62:ac:ec:e7:9e:70:d0:79:10:03:07:02:81:38:f2:d4] modulus: bcd21c30ab553fbbf0d50a5e8beadd00db417ca487a6365bbd9a0569f3f6d14eeb12fe6d73a511679bf2346ef3e467b817bbd22b61152105f4fb85d2cd9a8fe53f223f63e13bf81e8f80cc2fb09db6289de5b7a5d1df814422372d774b0943139ce9ee3cde1549335ca2ba124bee9bb5f07cb208589ebb974ae0c44772cdaae043ed8229a5fa18694c70f6d71d7a57d797f3e2e4ffce67a81ae5299f2bea793b518a02c27d2508c8b36d424fd1b2241960999233f4f7700bd7c9cdf26b1314262a8d3d4b656af3c919f314442598fda4435733440312819675622212c36b6450e74d405f3924a8bd749e07a303f9bceb890ce54018a5d0eb8d3e2fe792373813 public exponent: 10001 ]