2022-10-25 04:53:04,334 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-25 04:53:05,320 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-25 04:53:05.986  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Oct 25, 2022 4:53:07 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Oct 25, 2022 4:53:07 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Oct 25, 2022 4:53:07 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Oct 25, 2022 4:53:07 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-10-25 04:53:08.436 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-10-25 04:53:08.693  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-10-25 04:53:08.840  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-25 04:53:09.600 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-10-25 04:53:09.603 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-25 04:53:09.605 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-10-25 04:53:09.609 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-25 04:53:09.650 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-10-25 04:53:09.655 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-10-25 04:53:09.754 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-10-25 04:53:10.360 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 25, 2022 4:53:11 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-10-25 04:53:11.357  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 7.892 seconds (JVM running for 9.694) Oct 25, 2022 4:53:38 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-10-25 04:53:55.929  INFO 1 [nio-8443-exec-2] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-10-25 04:53:55.938 DEBUG 1 [nio-8443-exec-2] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-10-25 04:53:55.971 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-10-25 04:53:55.974 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-10-25 04:53:55.988  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-10-25 04:53:55.990  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-10-25 04:53:55.991  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-10-25 04:53:55.992 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-10-25 04:53:55.993 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-10-25 04:53:55.995 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-10-25 04:53:56.002 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-10-25 04:53:56.005 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-10-25 04:53:56.048 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-10-25 04:53:56.054 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-10-25 04:53:56.054 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-10-25 04:53:56.058 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-10-25 04:53:56.577  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-10-25 04:53:56.581  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-10-25 04:53:56.582 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-10-25 04:53:56.585 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-10-25 04:53:56.595  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-10-25 04:53:56.597  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-10-25 04:53:56.598 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-10-25 04:53:56.598 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-10-25 04:53:56.599 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-10-25 04:53:56.614 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-10-25 04:53:56.614 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-10-25 04:53:56.615 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-10-25 04:53:56.620 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-10-25 04:53:56.621 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-10-25 04:53:56.621 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-10-25 04:53:56.622 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-10-25 04:53:56.655 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: 562651429647294948916732802945004324503750221452 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Tue Oct 25 04:50:57 UTC 2022 Final Date: Sun Oct 24 04:50:56 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [a5:59:cc:94:9c:63:90:81:0e:d3:81:aa:81:ef:86:08:f1:27:68:52],[56:66:d1:a4] modulus: 9722c69fcdc633bf3f6c6c9f15be2e17e94f45917fe9d16f701b5efa5ad74b8256aa0dbede5c1e7ef8827a6289b7754de44d9ccf1e1c2abfa287c52bea7e8e2b073d344fe761b8ccbb4b806b7baa6ae782992b7f3fd1cf4448bddbe5c846dbdb6c5add25844f594d6e93b19049d8b1f3be03398068815433e9bb124abb7af5b911e213e30b4143d473146c4fc8efa214c334309283b78d421522aea6f623edfbe4774c72cae0f45cfb5ff49a940550bf7d8eb19fbf81517257b3dcdec57ffdbf7fe728de6c4d14094616b864cc9f7039e22ac06bd1e0713e1eae6a3cb76bb138375cba37f1f4d4ffbcf386315dc0c36d870fd5da2bae739fbcf8061cfcef0393c4b2cbdbde8393d070eca81b2333c0df7993791e93efef225faa8d48bd689a1f8a70c7855e4aeb6538e70c52da41078c3232e3978b8062bb8dde35bf9d0d1278f35a935c45842d85f96846f2a56faee94fa9d91286df14df31ae65d43c0eeb6e6608ef9afa1b89fb956a63cd9afdffa35ccff2f2cf7e41b4ba7dab760f46b997 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 16e7c5d1012dc61a74f97df5980ce0c6e0b0f1a2 6d762624a919232ca7297628a2c4ec928a95b521 fa46640576f5aef6bc2bbb0ccdf5e3025419af1e 1090d83973cc7f8ce8f5f520e6db6e64e46c448c 0d1cf2dd5cef85140074f162952d6001ed875332 cd553c5d8811352671d21ea631b27bed533334f0 c09be0200c0dd31626d0ec4ee620b317ef96d765 76cb403a5bb4dea4fc162b4d6b416b38b4b176ac 09c8aa7a5b4a956a56054192f192b8deba3baa38 1ef2fea3d49d02ff90bdd85357bffa2e242b3d95 3a902e48f7e3d5fb5e00437fa240fd2aa0b0cf96 44eed11ea60026bab5d53c1a088fbd2333fd973c 5c06ef385fdf8fa276f0a7f30250051a974e5443 a6f3ddec6a4c899bc904a42b349b0fa98da46649 15ce8b538263fafefc254f1ff28cee6b1ab146b5 0e8cc09478e1fc12a771fcfb1df0890f3385d4d8 f11adfe1ec64a5caee4663b1df0901434d8a4ff1 a63a5ccb66bcc41fe12bdc3752a6c99eec2fc908 5653b11129f5c13a8a09d509804cfdb2b7f6a1b5 71af8eb3 Extensions: critical(true) BasicConstraints: isCa(true) critical(false) 2.5.29.35 value = Sequence Tagged [CONTEXT 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 [75:aa:5b:a0:3a:24:81:f1:28:c9:5f:77:aa:16:ec:64:eb:ea:9e:dd],[56:66:d1:a4] modulus: acc7b713adfd7d135ead1b08f55426314305c590538e22adcc67b3af0dce7c7e295f4d6943049f2cebf466cdffa9200fa2a4c21c896de5d4cced7f773ac8db0d6a52bcdf95442f219189da0ff8fe2a9841491717fb79cf903621e43e9741c3ec18c1e0e5c82adc36a2b6257eb6617b24c5a83652f136dd478c1b502e18d4645d4f029578bf62fa8e06ae926b952470f111cf4d862abdd991feab4f1a85ddd9be2cbf04448b160220acf949a755a8f57e2684f0750f4149e57c0081982c82d10f37aaff32a3928fff91e9be22a4095b2993a349ff7d73aab13eb388d3585630e469dcdb6174bdb8b8febd2677b980a305e7adb9291a0288eeb370a841c278348d public exponent: 10001 ]