2022-05-01 05:07:52,513 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-05-01 05:07:53,649 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-05-01 05:07:54.632  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default May 01, 2022 5:07:56 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] May 01, 2022 5:07:56 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] May 01, 2022 5:07:56 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] May 01, 2022 5:07:56 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-05-01 05:07:57.279 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-05-01 05:07:57.567  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-05-01 05:07:57.739  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-05-01 05:07:58.478 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-05-01 05:07:58.482 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-05-01 05:07:58.483 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-05-01 05:07:58.487 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-05-01 05:07:58.539 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-05-01 05:07:58.545 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-05-01 05:07:58.691 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-05-01 05:07:59.358 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/]]} May 01, 2022 5:08:00 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-05-01 05:08:00.430  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 8.886 seconds (JVM running for 10.968) May 01, 2022 5:08:27 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-05-01 05:08:49.146  INFO 1 [nio-8443-exec-9] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-05-01 05:08:49.158 DEBUG 1 [nio-8443-exec-9] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-05-01 05:08:49.205 DEBUG 1 [nio-8443-exec-9] .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-05-01 05:08:49.211 DEBUG 1 [nio-8443-exec-9] .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-05-01 05:08:49.235  INFO 1 [nio-8443-exec-9] .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-05-01 05:08:49.239  INFO 1 [nio-8443-exec-9] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-05-01 05:08:49.241  INFO 1 [nio-8443-exec-9] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-05-01 05:08:49.242 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-05-01 05:08:49.243 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-05-01 05:08:49.248 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-05-01 05:08:49.255 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-05-01 05:08:49.259 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-05-01 05:08:49.295 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-05-01 05:08:49.300 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-05-01 05:08:49.301 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-05-01 05:08:49.304 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-05-01 05:08:49.884  INFO 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-05-01 05:08:49.887  INFO 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-05-01 05:08:49.888 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-05-01 05:08:49.889 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-05-01 05:08:49.901  INFO 1 [nio-8443-exec-9] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-05-01 05:08:49.902  INFO 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-05-01 05:08:49.903 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-05-01 05:08:49.903 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-05-01 05:08:49.904 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-05-01 05:08:49.917 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-05-01 05:08:49.918 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-05-01 05:08:49.918 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-05-01 05:08:49.925 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-05-01 05:08:49.925 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-05-01 05:08:49.926 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-05-01 05:08:49.928 DEBUG 1 [nio-8443-exec-9] 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-05-01 05:08:49.964 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 443733209754343975388650041048398382699624146246 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Sun May 01 05:04:51 UTC 2022 Final Date: Fri Apr 30 05:04:50 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [e2:a8:82:5a:91:99:b0:4d:c9:9b:80:ff:25:89:73:41:55:0b:aa:ba] modulus: aee468c447c8f8546764033396dd93af15bed8343e7a9778bfd2a3e63b8435a262fcaef09474b9552473b6ab522e3fb3d090eb04100b42c9c24e9b18543e62f422689d73db148f2ae5a2ce1654afad5b4b81037b2f177b5a90c4e4b24360ca7c44ef2bae733deb9de878c8720bfdaee76da0760df9262b743bdb2d0d86a083cab88d46dc17d20131fa816f887250bb671f41c4f9877fec63f8b2d22d6a353be0aac41d4f507c84be528a1aea166422a90a9aaf9262e0021cf2bb974da865f332d4edc6b1e19fbe7c5f2b451cf4c7f355b94785ae546d7191d9750a0b8b0c57dd4d545443fc179d13763ce87ff92e6b889201ebb6b8f2659170ad31ad5e8c8be04e6bd035574735af775d5bb6e56e3a9b6dc2717a16f12444faa57a88f4c14170c3fbdcd03172de4aa2a0eddb5e7fa687a2ac1de35423492741b94472af62bda72bcfc045f8e95c3ac3e9b978710f2322012e41ff7b02c2c5083ba6761953f34ffa2688c5c1bd2e7ef629091d7cbacbc642d15f84d6353ab18f6263e856cb3559 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 0e7bc18af37fca23fc9c2c47c1e745f2807859a6 4cc2f5b489feede619137c31e0eef0e6e4cab43f 28095095a6e7fda30bb3502fada41e89495692f7 75d0cb90f41b493165392e67b5f99bebf882b9e8 a7175a2ffd3db418025980124f977c92bde5c6ee da058514d88441cddc762b3baf023e97de061ced 5d8c5fd71c89e0bae9e4a5d82431ef7ab80c4b0a 5461afe48c650df937d6b953c40b230a0e7f0c28 6bcbf2280983ca24e8cb7b9a8335725d4740c0d1 45d59a2db058508bf4a2da48f24b847931eab4fe 74e5d936fb5360ea5f6fb5a8dea0aef2976ed57e fcb9f69e5b3098f79f75e529e1bc8caca00d4fbb dff6fa17003ac96b82b3d3ffd454661cedc10d30 8ade342b8cb76b5a5e3de40dc370adaaef4f9ff0 f44bdb577144e879f874296df72d3edc33dabd06 0be9036928d8b904948bf4a45c085081c3355933 2a4d2436770fd8b8dc0441e3208024f4c0e8b734 b8f12a0a8c8c60f44ca9a37c8bbda8aa18523929 628ff4012d6737037cccd4f6a2641b711376264f 7df40ac6 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 [fd:38:1e:0e:56:be:a9:8a:6e:00:58:aa:07:81:16:6e:b1:80:3a:e6] modulus: c0d90ea05d87a12b355f3181cc896dca3bf5baecc7f732f5b088109700b12736274bc4ad40a264be9d6d26b02b04140caf7365ea8499228d007a9fe42ba8e3f5736a31ed67d9427264e7ad778253019d6aa8e09fa7ee598ea6110e3ba4cc492b7bd55d8d2ac2b2330a1a6d217bd62ebd81566d81852e470c7eaa2136e7ef4f8b465b7f39b7c239f8fa796bf9ec3c5da2b5cf921bf68d6eeb9ba923b56826fb07a4e2c4796d38d81e0ba5dd783add05005958ca0fdd24cc6c4afc1c08670a79d11ba972319f9e4d4f55e336aa8913cec1ed57f10faa5237730c75a0217e30d53cafbf40838e6e71eecb4a7aac5ddbb3032f837c486bf68dcc38e00b15ca7e09fb public exponent: 10001 ]