2022-11-12 05:03:12,065 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-11-12 05:03:13,027 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-11-12 05:03:13.827  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Nov 12, 2022 5:03:15 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Nov 12, 2022 5:03:15 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Nov 12, 2022 5:03:15 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Nov 12, 2022 5:03:15 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-11-12 05:03:16.444 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-11-12 05:03:16.726  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-11-12 05:03:16.898  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-11-12 05:03:17.696 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-11-12 05:03:17.699 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-11-12 05:03:17.700 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-11-12 05:03:17.704 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-11-12 05:03:17.745 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-11-12 05:03:17.749 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-11-12 05:03:17.877 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-11-12 05:03:18.650 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/]]} Nov 12, 2022 5:03:19 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-11-12 05:03:19.737  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 8.476 seconds (JVM running for 10.365) Nov 12, 2022 5:03:44 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-11-12 05:04:00.453  INFO 1 [nio-8443-exec-4] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-11-12 05:04:00.461 DEBUG 1 [nio-8443-exec-4] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-11-12 05:04:00.510 DEBUG 1 [nio-8443-exec-4] .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-11-12 05:04:00.515 DEBUG 1 [nio-8443-exec-4] .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-11-12 05:04:00.530  INFO 1 [nio-8443-exec-4] .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-11-12 05:04:00.532  INFO 1 [nio-8443-exec-4] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-11-12 05:04:00.533  INFO 1 [nio-8443-exec-4] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-11-12 05:04:00.534 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-11-12 05:04:00.535 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-11-12 05:04:00.541 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-11-12 05:04:00.555 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-11-12 05:04:00.558 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-11-12 05:04:00.618 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-11-12 05:04:00.625 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-11-12 05:04:00.627 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-11-12 05:04:00.637 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-11-12 05:04:01.465  INFO 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-11-12 05:04:01.467  INFO 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-11-12 05:04:01.467 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-11-12 05:04:01.469 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-11-12 05:04:01.478  INFO 1 [nio-8443-exec-4] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-11-12 05:04:01.479  INFO 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-11-12 05:04:01.480 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-11-12 05:04:01.480 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-11-12 05:04:01.480 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-11-12 05:04:01.495 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-11-12 05:04:01.496 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-11-12 05:04:01.496 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-11-12 05:04:01.501 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-11-12 05:04:01.502 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-11-12 05:04:01.502 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-11-12 05:04:01.503 DEBUG 1 [nio-8443-exec-4] 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-11-12 05:04:01.543 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 665432390982186298299782860940689282063413649811 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Sat Nov 12 04:59:46 UTC 2022 Final Date: Thu Nov 11 04:59:45 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [d3:41:a6:f4:e7:98:94:25:a0:4c:44:8e:88:96:9f:7a:41:03:63:70],[56:66:d1:a4] modulus: e3d925df21100bbca82ad8faebd38196225f98ac8f2ae7947a22dc29f7abd96de6963ae23c0fa1641e47c6aa8a41099189e870196110d277062d1c15b391f4dbb689682f12e6f624c9bb66628649323fe5096c9c68d7ed6938c271872d6ba4aee9ae1d53a6f85a55ca9dd647b1b13a8716acdc7e0df4ab9368768f8c2b4d832099191fe9cf60a623f89735e2e931f5d014b1d711ef8af45b03a78b92c6e08f425878ab06bbdbf70fefc46429b33f2561dbc53cd13e3ad126dfa12af80dd29a034280be9bc311e449b398ec649a431f4920d31b181116a96979f2172052fee2137ef2a70f29abf168924dcca93a81d1e312f61af56525a093b3179e50b3b72dee3086bdae1d69140ca06acb5a47f6c43d2c980a42290d012b23d5c7681b1b46c5f10f4c5a15d57cf65ee830dcfc1b23d8d03398e3cab4053d0cece0720ce708453542782872754534390307199411ec38c9e8e2f83c886b618cdc5008e2695e3c06ff28d78b498e28d539f277cfa49ee636449ac05bd24b9ab4eca6ef83e43d41 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 45baac0d3e97e11d45b1292e0a1312cda23e381f 86fbcba0d303480c34ece797cb1c4137d2f52817 02f99871823111a148ed78e3e2a2e17698964c3d eed7d5759e0068eef1420268b58cf523e66cbe45 00f918b66d8278436aba0564d9310557469d13b5 967a73ada171a2a3ea01ee3249114e68f6b17936 baec494bf61a4f1cca7e6c431f50f2176041c7aa 4d9807f829990e76eb5bb921c20832557f1789bd 789294702782f4f9ac6ee685f3cb2a781b62e73f 1e6371b7a2b40600ede739de923a633a110c0bc0 c68e87f198ec80bf25169fb08480869e7796a471 09ce3829116b8301117868f780d1cda5302f699f 14ac820a80bb8f1266b06ab43d1880e35a1e4072 1d72c854e66cd6e1760a1dd6d3ba9dcb27bd8d0f edc9238c0a2e9ad2ecd17ffa381f4b7034d2eda7 9430fb09d42f250e2c504ac0e8b24f41023e60bd 197c85adcc3ddc2feaa94d0abecf95b216a8288c 41831a67cba188e78b9d76bbe9d496ab92342e9f d732f6c929bec6ee8906e305dcca7c9af013b001 f03e29b3 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 [69:c4:98:23:03:bc:27:b2:1e:77:92:3f:83:db:6d:99:54:96:e9:99],[56:66:d1:a4] modulus: bec44f6839796ebd8d0fa0d844adce0490a515451ae66c59b2f046e7b4b7be1a917af4a223dc5957506c82bab0a8a1a7f27a88778e479aa639c6eeb3f90da69240429639bd5aa0355cb2d4fbcba67bb36ed8cad61815f293599f04459db5cf28cd99132fc0f335604f779fe31ab0279a76c8061b7e380ec70deb393162120291e4f180d69c27eab2fae73df3b17ab347e87074438f15b5ff5f6c18994f1085e9a5ab6421024666dce3ebe4066f5a99ca44571f9ceadf84962b6c12847e5bed32b0ace29039305e42a749d4811ac1336108d0005212e3dc32e3dc450d4aadb5d5e244161031c86e4a7b74305c180b628255a816d1efdc50ece6c8e4a824f89af1 public exponent: 10001 ]