2022-09-05 05:06:54,703 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-09-05 05:06:57,854 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-09-05 05:07:00.428  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Sep 05, 2022 5:07:07 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Sep 05, 2022 5:07:07 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Sep 05, 2022 5:07:07 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Sep 05, 2022 5:07:08 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-09-05 05:07:09.396 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-09-05 05:07:09.982  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-09-05 05:07:10.249  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-09-05 05:07:11.820 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-09-05 05:07:11.825 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-09-05 05:07:11.842 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-09-05 05:07:11.862 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-09-05 05:07:11.963 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-09-05 05:07:11.969 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-09-05 05:07:12.237 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-09-05 05:07:13.884 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/]]} Sep 05, 2022 5:07:15 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-09-05 05:07:15.840  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 23.634 seconds (JVM running for 28.36) Sep 05, 2022 5:07:24 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-09-05 05:08:59.370  INFO 1 [nio-8443-exec-1] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-09-05 05:08:59.386 DEBUG 1 [nio-8443-exec-1] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-09-05 05:08:59.451 DEBUG 1 [nio-8443-exec-1] .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-09-05 05:08:59.460 DEBUG 1 [nio-8443-exec-1] .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-09-05 05:08:59.482  INFO 1 [nio-8443-exec-1] .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-09-05 05:08:59.486  INFO 1 [nio-8443-exec-1] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-09-05 05:08:59.489  INFO 1 [nio-8443-exec-1] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-09-05 05:08:59.492 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-09-05 05:08:59.493 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-09-05 05:08:59.509 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-09-05 05:08:59.522 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-09-05 05:08:59.526 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-09-05 05:08:59.582 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-09-05 05:08:59.587 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-09-05 05:08:59.588 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-09-05 05:08:59.592 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-09-05 05:09:00.744  INFO 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-09-05 05:09:00.747  INFO 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-09-05 05:09:00.748 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-09-05 05:09:00.749 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-09-05 05:09:00.766  INFO 1 [nio-8443-exec-1] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-09-05 05:09:00.767  INFO 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-09-05 05:09:00.769 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-09-05 05:09:00.770 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-09-05 05:09:00.770 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-09-05 05:09:00.786 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-09-05 05:09:00.787 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-09-05 05:09:00.790 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-09-05 05:09:00.800 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-09-05 05:09:00.801 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-09-05 05:09:00.801 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-09-05 05:09:00.803 DEBUG 1 [nio-8443-exec-1] 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-09-05 05:09:00.848 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 392591128107666671375480646564792554120979652184 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Mon Sep 05 05:02:50 UTC 2022 Final Date: Sat Sep 04 05:02:49 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [f1:2b:56:24:0b:38:03:de:3a:d4:bb:22:0e:fb:06:3d:67:4f:1e:8d] modulus: b7dbb7c0d9308936fae34401f4de898ce10bb48ce37b8c009da902685c8aec5378ec71802d80049969cb66c845fc12b01c9ccf18ef688ea1e60da920b624e312f26e5fd24e7945d0d68f24301f1665e03ef062f2236737cbd5fad9b9505fdd2445d0378bf459e3f7d18df3e18ae2dcdde07def41c1bdbbad659807acd4e2428924a64a0aecf4b29301d79b2b2732f35997f43c60cfd7f3c45031db33871ead1a0e7a1cf45f0a4ed75b03dfac751939eac12e2def965f7aeb1dbaacf9875f1d7252653195ad2307e16655d0471bf1cc873017a642e60ebfeed82a39196d04786b4121b4477b1fb2a612e643106ddd87195ad199a54980233cffc34d56fd9fb9419d9989c73146c92ee29ba97d96c750660255df5f137071d9f47fceb8d02cb64cf42b2c48f04474c311d15eca98e8a74b87dfb707e506ea4f624c64a47374926fc241a699a11070b2df1d1d116e6cf04bcf640211a55240a1f80051e3469dd2b65a6d4d5b0147be32856709076b74c0d206edc02147ba65af665d843adfece4cb public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: b65d2f7caf1b8c5a5ac3424eba48b5f607695b8f 721910b4911caf1facf1071c4ac051350d1bd0d1 1c4e176be5789bd08f64cdd2735cb1b2350641c1 42322607d284667f953d66364a18d1ba8b1dd56a ff14081e98ab586ef6c3ff7220d49d3ce5e9ed3c 0ca2b29ea7c4f9e911958a8751be348426a85e70 e93ff969bbcc51fa9d68879b37af23c4756dd2ef d79ad336789aef99f8b09440c3f0780ffcb1c30d 9e4cedfe4cf4ee9b5e1c9810e4dab6ed8db96c4e 3508f44f3bfe89ad00a84da3afda724174efb2bc bddba1736a43100d17735b02d3adbc2ca0aa10ee 1a239f0e960aa0c3d4151cb3cbe68d63f18694de ca8a6d454f7b368fabc1558660225779527854da 83e0bdc22d845ea7d7ead2dd434e134910e5e042 587ef0e403c71ffae2ad85cba06425a312713133 05e2222ab0eb2097e8d700efb347f476dd23439c 26022841540f23dce610267aee77bc3e15f0b6d1 079266d71f2af2a815c6ae760c681665d88101d0 cd807c87ed33f9a5a6879d63caaf60b5d7a4f247 65a39071 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 [41:0a:f4:f8:6d:ab:0c:38:49:f7:2a:fb:95:44:5a:77:37:be:3b:f7] modulus: a8cab1a83e2f81171b8856b8999a409e14526dec986316459c26535d37d2f2b3f01ae5f7dec2d7504703b040a3458c3e4b7ead83ec62ccfc4037b33b001ed805564f81df4c8a50856fcaed3fba9066eb1b7b297651ef535c0152fe2050ff0bcb61e51f855c0a9ab1547c0a0a502caad0d0d25c13b6c41a03f4dc0d8e6e1825aa370901b0ae648485a638233ebcfe275586edec8cdb67cfa79b56ab753171847ad585b23c180371f8d9d50eb3eee39cecfc55d16798efe3be17c4bf1cc2c34086720d379b68fa34e5b2305dc325a58543144e05644b87bd8da1c8dfc6231de8cf0042b47c19f28a95b57502256c8ca05face7004594a6b1916ebc71a31c8f80c5 public exponent: 10001 ]