2022-04-15 01:35:09,557 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-15 01:35:14,752 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-15 01:35:18.156  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Apr 15, 2022 1:35:29 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Apr 15, 2022 1:35:29 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Apr 15, 2022 1:35:29 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Apr 15, 2022 1:35:29 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-04-15 01:35:31.663 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-04-15 01:35:33.157  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-04-15 01:35:34.058  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-15 01:35:37.456 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-04-15 01:35:37.458 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-15 01:35:37.543 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-04-15 01:35:37.548 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-15 01:35:37.746 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-04-15 01:35:37.750 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-15 01:35:38.561 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-04-15 01:35:45.142 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 15, 2022 1:35:49 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-04-15 01:35:50.544  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 44.808 seconds (JVM running for 53.668) Apr 15, 2022 1:36:00 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-04-15 01:36:34.848  INFO 1 [nio-8443-exec-7] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-04-15 01:36:34.860 DEBUG 1 [nio-8443-exec-7] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-04-15 01:36:35.065 DEBUG 1 [nio-8443-exec-7] .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-15 01:36:35.145 DEBUG 1 [nio-8443-exec-7] .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-15 01:36:35.246  INFO 1 [nio-8443-exec-7] .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-15 01:36:35.251  INFO 1 [nio-8443-exec-7] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-04-15 01:36:35.252  INFO 1 [nio-8443-exec-7] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-04-15 01:36:35.254 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-04-15 01:36:35.255 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-04-15 01:36:35.257 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-04-15 01:36:35.342 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-04-15 01:36:35.351 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-04-15 01:36:35.559 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-04-15 01:36:35.562 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-04-15 01:36:35.641 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-04-15 01:36:35.647 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-04-15 01:36:38.011  INFO 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-04-15 01:36:38.013  INFO 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-04-15 01:36:38.013 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-04-15 01:36:38.014 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-04-15 01:36:38.020  INFO 1 [nio-8443-exec-7] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-04-15 01:36:38.021  INFO 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-04-15 01:36:38.021 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-04-15 01:36:38.021 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-04-15 01:36:38.022 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-04-15 01:36:38.054 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-04-15 01:36:38.055 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-04-15 01:36:38.055 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-04-15 01:36:38.059 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-04-15 01:36:38.060 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-04-15 01:36:38.060 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-04-15 01:36:38.061 DEBUG 1 [nio-8443-exec-7] 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-15 01:36:38.444 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 695934830234573379061667218421850356185513466356 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Fri Apr 15 01:32:22 UTC 2022 Final Date: Wed Apr 14 01:32:21 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [9f:c2:fc:ea:e3:7f:82:18:b7:91:23:fe:e6:b7:c5:ce:15:fb:55:db] modulus: baabd0c25e76da76f2d18d8d2cdfa30038058bbcee0c93e7241dfcfd68e4493556267513d2ac4f60c5d9cfacdf0f8489042919901c53b807fadaabbca52a2b9331d2a90d6875b17edbdd11bb76ce8a30d6c30d0b79d8817cc785a6d39e54d25c90aebd2fc12da47ebc776e7d108fe47dcba1ba549ace4ddfa9d4d86439bda0f1b86a445767967ef6b61d8df2e8f8126522a1b3063e16ac3755d6ff6670f51dcd98963ff5333f168fe58adefe509232492deaba0c65bac42404f2e4de2ac401ecb033f22a788284b5f36a07caebfbbb0785d2fbd78133a38a627dbf9e2f12be69ff1798554c98814c660549315109a86ff22219ca49f001dc9d01bd75e03f46a7b1618787a8be321c0c906677154f1e206d2ec8d82cd7d6463016ca002f73374ca09f8feb36e274f4c485755021fe8f5d8de3e64b91f584b92bc1d5f0324817f23b1e0122102f2212efaa03fa577abddeb5143bd591ec95c2e385f713bb8696c744e1098797a83cbed04c0a0151ec16dac104fbcae1e6189d7fae165c5cbcb60d public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 1c759427c3b35d29f611a017410e92a3418a92b2 77e5295b72388bbca6ceec4e2e146faf5de682d0 4ebe7057b7222c6e02f1faae0ed46295f2050641 d16f3e8b62f63fb2fd3363dbfb9f99f640214949 61d17de4b54b2fb208d2871e4fa9136d79372400 e5b316f64e38a694ea88cc43b1c5492ed302ab4c adff53e091e6f4a4b0c4979db2972c9773404364 d25645db7d2ae63cb47a840174e0484c77387fa4 e0c573c04441bfe5c62ac412bc62549cd43f9c61 98f0813f1e7e89585613c3a5dcc51d471d83c5a2 bd7393769d9a3e9673ae8b786ac1b9ac383a6857 be1efe3c2a820989affc85fd9836afeda43d6ffc 451c8179d0f6f8d941a807f4786202e85cd40ed3 dac11272adac3a9692c52754d0518f8dc7bb97de 8910945535a60d05f6d24ef1aa682038c6f78538 c7f71d2144acc259f50e584ce6885bfabce0a870 971016304c2ae530bbb6a2c4411d43248bccc002 9c24dd0a5649ab38830cfcab6934b8a78fe23105 3e424f00f25e029ff9e1138568da0e4713da8d30 d0e782da 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 [99:3b:65:d2:f7:3d:4f:29:6f:b0:d9:57:97:90:95:98:2c:7b:5f:a7] modulus: c0c2eadb0c9b511a8ef4b5ee48cb4036f8ca5be589d1a3e38dcd0e7e33612db7c019925e82fe3d05e4b21d441c19dcbb6c32484964deff3d1f6c2156baffa3c65d24db1fcaf707f0826707424302d6a43bbd0543f01690c4c9536dd0dba5dad86991c88c5a2595b6751da68e9adcc5cca170ff7be2abf068c3d4a7fecef9ac0cf43616768f6c97cf45c9bd7919f496931fe236057bcbc6744b58c440eb347f21680f04196acb5e53f5ae0056daeacbb00a72d27e1b1119c8ecbc3a9e9efbdd8973b304bf8d639e0591d25b11442703f5b26f63e226ee379f8ca34d60e7d0d2105d1f3d4f7e530fd85102eda2676846ad807b9d227fd9382a8e5f76612cc68e91 public exponent: 10001 ]