2022-03-30 10:03:58,627 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-03-30 10:03:59,994 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-03-30 10:04:01.242  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Mar 30, 2022 10:04:04 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Mar 30, 2022 10:04:04 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Mar 30, 2022 10:04:04 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Mar 30, 2022 10:04:04 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-03-30 10:04:06.019 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-03-30 10:04:06.430  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-03-30 10:04:06.674  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-03-30 10:04:07.783 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-03-30 10:04:07.788 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-03-30 10:04:07.790 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-03-30 10:04:07.795 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-03-30 10:04:07.845 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-03-30 10:04:07.852 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.s.u.SwaggerWelcome: {GET [/docs]}: redirectToUi(HttpServletRequest) {GET [/v3/api-docs/swagger-config], produces [application/json]}: openapiYaml(HttpServletRequest) 2022-03-30 10:04:08.044 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-03-30 10:04:08.859 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/]]} Mar 30, 2022 10:04:09 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-03-30 10:04:10.271  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 13.019 seconds (JVM running for 16.097) Mar 30, 2022 10:04:24 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-03-30 10:05:02.780  INFO 1 [nio-8443-exec-2] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-03-30 10:05:02.818 DEBUG 1 [nio-8443-exec-2] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-03-30 10:05:02.905 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-03-30 10:05:02.914 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-03-30 10:05:02.964  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-03-30 10:05:02.991  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-03-30 10:05:03.027  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-03-30 10:05:03.030 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-03-30 10:05:03.030 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-30 10:05:03.048 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-03-30 10:05:03.070 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-03-30 10:05:03.096 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-03-30 10:05:03.151 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-03-30 10:05:03.162 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-30 10:05:03.164 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-30 10:05:03.170 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-03-30 10:05:04.119  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-03-30 10:05:04.124  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-03-30 10:05:04.125 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-03-30 10:05:04.128 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-03-30 10:05:04.147  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-03-30 10:05:04.149  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-03-30 10:05:04.163 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-03-30 10:05:04.164 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-30 10:05:04.164 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-30 10:05:04.195 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-03-30 10:05:04.196 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-30 10:05:04.196 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-30 10:05:04.209 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-03-30 10:05:04.210 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-30 10:05:04.213 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-30 10:05:04.216 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-03-30 10:05:04.328 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: 591297620651168292114890379308663047848580666691 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Wed Mar 30 10:01:02 UTC 2022 Final Date: Mon Mar 29 10:01:01 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [4b:db:e3:8c:4e:5f:f0:0a:ac:2a:cc:68:46:43:ea:22:61:7f:1f:05] modulus: d01f7039c608a6a52262eaff06f6a44c0b06539bcb8cd1887f40adc72480932f9d7567ed886e798c3a0903f5360f9d8aab1bfbb1a53f9584de9b149ef8cc3dcb43a12a849497e4abb2a8c17f29cdc498c08fac8394bf8c0586ac25aa52734a5241522c25b9cb522292397eb845957b7fc9995f86f79404a9a61cca55182f67ecd9348e6a72a204f5fafa920d86dd5e63e230797d3b984e04a85749345508f189f9059fad371fa0fc77992ea0cbc980cc8a15dec33d13edf0f73ac6e3424e8354640d9156a120e1beeed54601966a902113c510892152131324d18ff08bfeb2afa976787c89010d375a4985870e7158935b76fa729cf8fdb80f643c39944e694acebc499c85badfdd97ad6274d6d056841547d9955069f476b4a8052ba792c65b27f2ecf3584eb70761e148fad889b95f1883b9f5a0fff1721af73a954724a8b3fa54c144b43d95249137f3c000aaf6d9ba7d45c4bcc96ad1c2a335a7602a7f98cb385a049787b4d17dc09cbe09d8eeb3c49e08d9ec27fb11d8e0db72f7b2182d public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: b83eeee60f54860e530b171afa982ccb49b775fc 723ba9fe2d5d184b7dd34e4884b221c27bab3cc7 8972d2119702fe6133ef3ab9d8df482ce288d325 8ab98dc91789ff76a77db8b498b1d96babbd1598 42a514eb9543f253468ba0ad2ff48d15bd265e41 3ff01f240ed02b621317675a89b8cc9b37aff608 88dfe38587b78109afca28da7c83ffebf3fd048e 50c307d89d714b7ccb7d841b2502d9bd9b9eaefc 45275b806de07744e266206d2ffd176d4edb3b28 28f91a093ad6f6137a88759e15d1fd96f31e22c6 97ffc4e921f35e38fbd964a2d4cffd2fadd7b8d8 ada38c4823a9dacdfe062fb0df12e21a8f4a4b15 0ebd18ca7a0a4556ed11f7adb192b83223fed6ef b6ce6ac8eaed6e0838fe0017baf2415251c2279a 380f31c29babccea13398977ca99291639002a96 e32771d833e067e567d364e36bb4be71ec1c6633 865442f10ee7219d1eaa35299f31957f9985ee3c 65897e0515a2530ac379fa506f9102762452c4a8 4d93f89f53c17ceba86c3afd2fc44730a15c3249 c9089901 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 [e8:08:34:0a:7b:16:49:18:41:c0:75:a0:01:24:31:1c:13:06:41:ec] modulus: e83eddccee827ea83e0c5525a72579997729ed634f5c73571903e3063b02ea098815305e3bb86cc4cf718663dca39352e7719d9054e80e50f684622513281761e54075d3850da3131598462457cd955e8eb0359410c21e040a2a9c8c71e96e2d32d4c9393c62ba50b12eb005930677038737a1f812ee3cb84ed6b54f23ad7be61ad6f5301fd74945ad28419853f7cb6a42eaca4ce489cac082cc26a16c4bd88698f4f66579240e3778f6817a118b1b6c0b55cc04a34516f3d963aa9e67c5793e1acd0e20976ea94a4e0c90704ce7f7b78cd9f8384150c6040649b827a8f3efafc324d7cce3389ab7be59e11c7667d5d8334eb452fbd4544725640356e5022067 public exponent: 10001 ]