2022-04-23 01:40:32,882 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-04-23 01:40:39,182 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-04-23 01:40:42.378  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Apr 23, 2022 1:40:52 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Apr 23, 2022 1:40:52 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Apr 23, 2022 1:40:52 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Apr 23, 2022 1:40:52 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-04-23 01:40:54.488 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-04-23 01:40:55.776  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-04-23 01:40:56.476  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-04-23 01:40:59.670 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-04-23 01:40:59.673 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-04-23 01:40:59.674 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-04-23 01:40:59.678 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-04-23 01:40:59.876 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-04-23 01:40:59.878 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-04-23 01:41:00.392 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-04-23 01:41:05.384 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/]]} Apr 23, 2022 1:41:08 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-04-23 01:41:10.073  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 40.892 seconds (JVM running for 48.815) Apr 23, 2022 1:41:18 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-04-23 01:41:59.071  INFO 1 [nio-8443-exec-3] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-04-23 01:41:59.078 DEBUG 1 [nio-8443-exec-3] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-04-23 01:41:59.277 DEBUG 1 [nio-8443-exec-3] .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-04-23 01:41:59.280 DEBUG 1 [nio-8443-exec-3] .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-04-23 01:41:59.375  INFO 1 [nio-8443-exec-3] .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-04-23 01:41:59.377  INFO 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-04-23 01:41:59.378  INFO 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-04-23 01:41:59.380 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-04-23 01:41:59.380 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-04-23 01:41:59.384 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-04-23 01:41:59.472 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-04-23 01:41:59.475 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-04-23 01:41:59.584 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-04-23 01:41:59.668 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-04-23 01:41:59.669 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-04-23 01:41:59.672 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-04-23 01:42:00.999  INFO 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-04-23 01:42:01.001  INFO 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-04-23 01:42:01.002 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-04-23 01:42:01.003 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-04-23 01:42:01.010  INFO 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-04-23 01:42:01.011  INFO 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-04-23 01:42:01.012 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-04-23 01:42:01.012 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-04-23 01:42:01.012 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-04-23 01:42:01.081 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-04-23 01:42:01.082 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-04-23 01:42:01.083 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-04-23 01:42:01.088 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-04-23 01:42:01.088 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-04-23 01:42:01.089 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-04-23 01:42:01.170 DEBUG 1 [nio-8443-exec-3] 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-04-23 01:42:01.292 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 181103951142635210839674269255472695189134926517 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Sat Apr 23 01:36:44 UTC 2022 Final Date: Thu Apr 22 01:36:43 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [9f:53:eb:29:ec:e7:2f:16:3b:dc:59:57:70:ca:c5:8a:49:a7:9f:d6] modulus: ef0979da210d23f13d9a214c68ca3db8f81950dcf82ee23485198ec1d5574b0e76de6ffe735617df2d8c3af60967669cbcec35fe1002b9a34943d539787defe1a6356ab91f35b48d8de65d808eb511918f7f438d51bbb69fcf5406809bfd37d9c27310f2e7516bc91543edacdafec8fca2c1c1f3093115446a1bef751e5a71a12ea010999c1f397b440d638b607812f949307ebd6e8bcacf9fdf577362bfe0095409821757ffdb83739664d6b27f299a136e1aa959029d91471fa430e0c0d2f40292d19889eb3288deccb9302de19bcf9969113f24e0d02bc8c545abc46ef28534d5b35f5c1ff30033861df1a1ca3aaa7949425ea697eb19db6d7e3505414b4a159003304d5d0946d2f294802d11b5b79a931cb300a03ead863fe0104bb48235d38955a7d3cd728206be3f7c084c482d78a3d44b1d4196dc4d320b0279fea0a97f1e7d5f0a415eb62f6520c0585f474c278c22c3d631e0efcd2beaf8377a01f5c6f5ff53aeff3bf9310049ff70bdc20f58f4c5c2ac728959f8e82e672ff17d8f public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 860859efc76e858a2ff02e0818b117255325becb 593731ac1107222504d161751b727072dc60d798 4b4cf1c1b776fcec16be079951c2e01ec4087081 8d232125f69485aaec39c5aa5d621a6c768fc574 7f15602133d88cf100e88c1fcdd37ade0b7f4dfe 55bcb5ce1e0b39366ef7c7b522093fae7be57220 3419fc59fa2683fa4ab5fd461e8bc65547695547 467b239fe8c54e7fa28e6d5014e72fe1019ac4c4 2695ef817ba4da967a42783d1ac7d947a734e786 d519dd2256c562e25227c83f6e743b22a2b21462 d3950e643c7782ca8f349b3f36e4bcfab20a79b2 f325f85029717bb11066d6976a65b8c374fb1e07 858583353dbd07aaee3bb993ac3a4d75e5398825 b078bcac6466be4778910b5c40453ddf246c3533 d18b4ee9acb0576d9b65f88234fa42a201eb7354 7a657117642608c1175dc993f14001df046d7ee8 c1cd3818bb4666704b58fcc964c3c0bf0dc49a44 862996af1906aad1e0c7db6fdb9c18204c31b1ce 17b1387f2afee87e7474a7326003f66dd0bfb117 cb878cc5 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 [ce:56:3f:7b:12:b4:f2:39:c1:3a:82:8b:4e:e4:9d:8b:08:f8:c2:5e] modulus: 9ee83b1ae1f2b3dbd0272f5213036c1eb5fb8abd62acba9d4c734d7f9dfe63df3da9e0a4c5d241cf2b229d1274a54dbaa39413ca5b1e4b196c1bc5abdead3b29f24ef7c871e15cd269d3330ba001af0d5a29875ff9e902fda56390a5d5b09881ceb05b53faa26842ef0394a3d4523e3b0b9145f0b623cb46dcbece97e763d6e804d0255588611f4bf90314cfda949ede450db1780d180bcf75c92d8db5238dc39494470b03a9cc5f2fecb007dd10045700a52c07a1fe5160d8c8ef7855910155b550b5aae61fa101950e71cafb947730c485f4f7843a778ca5a4642051694190a6c5afa7fcac4b38779322bbeee4610bf9fe92331e71f7b356e41b4f2b41b0ef public exponent: 10001 ]