2022-06-16 03:11:57,389 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-16 03:11:58,418 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-16 03:11:59.135  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Jun 16, 2022 3:12:00 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Jun 16, 2022 3:12:00 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Jun 16, 2022 3:12:00 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Jun 16, 2022 3:12:01 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-06-16 03:12:01.608 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-06-16 03:12:01.905  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-06-16 03:12:02.089  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-16 03:12:02.826 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-06-16 03:12:02.829 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-16 03:12:02.830 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-06-16 03:12:02.833 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-16 03:12:02.872 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-16 03:12:02.876 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-16 03:12:03.014 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-06-16 03:12:03.693 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 16, 2022 3:12:04 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-06-16 03:12:04.638  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 8.069 seconds (JVM running for 9.885) Jun 16, 2022 3:12:31 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-06-16 03:12:46.878  INFO 1 [nio-8443-exec-2] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-06-16 03:12:46.886 DEBUG 1 [nio-8443-exec-2] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-06-16 03:12:46.927 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-16 03:12:46.931 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-16 03:12:46.949  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-16 03:12:46.951  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-06-16 03:12:46.952  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-06-16 03:12:46.953 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-06-16 03:12:46.954 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-16 03:12:46.958 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-06-16 03:12:46.963 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-06-16 03:12:46.966 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-06-16 03:12:47.004 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-06-16 03:12:47.009 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-16 03:12:47.009 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-16 03:12:47.012 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-06-16 03:12:47.562  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-06-16 03:12:47.565  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-06-16 03:12:47.565 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-06-16 03:12:47.567 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-06-16 03:12:47.575  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-06-16 03:12:47.576  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-06-16 03:12:47.577 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-16 03:12:47.577 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-16 03:12:47.578 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-16 03:12:47.594 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-16 03:12:47.595 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-16 03:12:47.595 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-16 03:12:47.600 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-16 03:12:47.601 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-16 03:12:47.601 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-16 03:12:47.603 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-16 03:12:47.630 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: 224276314066813688738987306153884400504420754389 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Thu Jun 16 03:09:47 UTC 2022 Final Date: Tue Jun 15 03:09:46 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [76:80:00:eb:12:58:44:38:43:05:ba:b9:a0:6a:87:64:f5:e3:5e:1f] modulus: ce83a7ce7b1f6b4908cb95c9c5f89f886f2826484b3492f6683b52793925029bee160cb0bbd520436459916b0ca7df5bcd223395708d9f77e3dd1139c82e53eb3cabf88ebdbd3b53d28c2de58ab383ff4a32295569039cf1fa9a5d04cd79f0b6330927838ec3ff6645309f8e05639961ed40b29c495a53f5fb06d9a2afb5ad171ca1ee6e28cd586ffa476960006edccf463c0ddb7fab7b3135a3c9779266f71cd0f81af4159c94e60b20f4a2bec3cd51d0ff21bc9f84365da2d93887992729173c936b80013e34f7e02dcd77c9ac4343cfaca45585143f20497ad331fb9f537f1aae9230ae46d3317f4b80c85d6d06fc0b36edec1e46d0832f6c535c3b2ad7eee1b38cce2faf570337fd6b1fb49e91e43dc5eea23b43672b712c800c92daa957a22f5e3ec439e276afa280f1a054d9071e13652ecc35b1d2072a765c8db5927e7c0675ca4c29dd3787e21679b5a00d0535a5279b6eef1ac101b597da09b30f247528035fbfca1125d3e70d2770be2daeca8998bfa2c96808f9e413df5f55e997 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 08891bf4ee61fc7ba2d7939e35f7d390d0b71a65 b24114857d0bffa3c49979c06d212f601dda1e13 f00cf6b43cc93bf56f604b9887a68844cf07ce0a ed2df47cc156bf9c3f0a0c7b9167c6af340eac34 2b6d7bae6aa0c0a600518af9c4a2eb8df33537e3 9be0c01b1e017636674475c6be54f629143ecaa1 9ec95ff12fbe6cac50eed16211ddcb79b392096e 11c7bd98d904f7f3d7508424d7dfd646959e57f8 b3a80d42208db9d82900653fe43a360fb32a04ed 7af36362ca0e95c82d358a5072e3bfc5982de336 af2417ff2eccd55a427ff3b57422ad296ba4b07f b89825f9104e8fff8d537ea7178bb6713a79c9f6 d2dc228d66ce2d3b9cfcefe90728499c8eadbf25 fced3799ecf105a8f644daf2ca13140e597bb06f 9515a57737e1ef91f52569065da1803a441734fe 2a2313a7af23797f824b25d27ce808cf3181c114 107ea7d96729e7acb389a729d5d7ac13cb65585d a50af8ef69465b3b1a4bfd7aa3e73c3700c951bd d4fce5d948924836cf9143deb6c21a6959960405 e0baa435 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 [62:bc:4c:ae:87:c2:41:81:e3:9f:ee:d6:e4:05:22:43:b6:5c:34:c4] modulus: ec32c8eb6d742eed269620ccff0716a84ffbd2e0dcb673cbdcc802a70d09417d43b3dfb25a4fc2a342c52d102d95ac308140dff319a973c83506505817012afdc1b61dc3a237a34b49cf576589509718b80c415ae35d7fb9cb3b2d9a9158569a223e41b4d9e65b0128fe9b0a442313e946b332b89f2219d32c68ffeae79f1cdcaa69d67f83472b23472b665c98408151f640f83b095a39c18d5ba122003fda4881858ceb30f50348d2f8e43a9b1d75329ab449472a4a311f3b080cd09d3c8662abf595bfd0d020b3e4c9011cbbc8da8a79e33ea527e148f2bfae292b50acc68e9e0149cc95c53308cc417784337a6717bbac629ec5ded56db2064fd6b6d142e3 public exponent: 10001 ]