2022-06-03 08:52:57,330 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-06-03 08:52:58,433 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-06-03 08:52:59.436  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Jun 03, 2022 8:53:01 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Jun 03, 2022 8:53:01 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Jun 03, 2022 8:53:01 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Jun 03, 2022 8:53:01 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-06-03 08:53:02.659 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-06-03 08:53:03.028  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-06-03 08:53:03.219  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-06-03 08:53:04.076 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-06-03 08:53:04.079 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-06-03 08:53:04.082 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-06-03 08:53:04.086 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-06-03 08:53:04.129 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-06-03 08:53:04.133 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-06-03 08:53:04.283 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-06-03 08:53:05.183 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/]]} Jun 03, 2022 8:53:06 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-06-03 08:53:06.593  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 10.191 seconds (JVM running for 12.536) Jun 03, 2022 8:53:32 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-06-03 08:53:48.349  INFO 1 [nio-8443-exec-2] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-06-03 08:53:48.360 DEBUG 1 [nio-8443-exec-2] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-06-03 08:53:48.419 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-06-03 08:53:48.424 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-06-03 08:53:48.446  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-06-03 08:53:48.449  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-06-03 08:53:48.451  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-06-03 08:53:48.453 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-06-03 08:53:48.454 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-03 08:53:48.459 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-06-03 08:53:48.468 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-06-03 08:53:48.473 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-06-03 08:53:48.522 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-06-03 08:53:48.527 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-03 08:53:48.528 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-03 08:53:48.531 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-06-03 08:53:49.165  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-06-03 08:53:49.171  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-06-03 08:53:49.171 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-06-03 08:53:49.172 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-06-03 08:53:49.184  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-06-03 08:53:49.185  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-06-03 08:53:49.186 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-06-03 08:53:49.187 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-03 08:53:49.187 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-03 08:53:49.203 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-06-03 08:53:49.204 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-03 08:53:49.204 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-03 08:53:49.211 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-06-03 08:53:49.211 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-03 08:53:49.211 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-03 08:53:49.213 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-06-03 08:53:49.242 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: 336341777404756961702610476308377201630810598369 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Fri Jun 03 08:50:41 UTC 2022 Final Date: Wed Jun 02 08:50:40 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [47:47:df:96:bf:a5:e0:0f:5a:0d:86:5f:6c:d1:f2:4a:3f:8a:30:c4] modulus: d5887493b0075362a9195f326b43ced50f5e16ca48fa69be5b59290d5413cf4d1335916a0246c1a845ddf7dbd7029e309d60bd37b43dd5e54b3b61418d15550eb23bd9eef49e3a36210b68adb2493c820c5117e052ba12c9f1c0d3d89fdf0376b1b8d9b878384bbb1d5ebe998f423992fb5669174b3f650a4d7223350d70542071f993b78a653361c90fc4d3d6b4a7fd4a9850250a6f8a0e4091b393c647374954b7254333cdc7bab947c521ca2ae0b5051236eb343355ebcd148a064fa4582548d5a6cfffe9756b07af0150060274ca503c8728e972a352270d9ac3c942c10728d2dff906f54e7e590514bcc16ab4428ff1cd6f3ff36c32b76501556fd1eefe83f3219290e2545c6884f95097828117f7e53d43c94a2f33e70d28f9d9bee63cf1adf3562f406def2cc98f3cd773d9a88ccce6b915900dc2a723e02a8828baa421f6b202d365e2fea67e967ff3d0a6557c5b021cd776e55ff9de1d96a633ddf5f5071a28f11416d03311d4dce96340c222508aa417cb5da75b1fbced3b83d903 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 638e3ad801ffc9124859421ce105c3f60984989a 4d4f64eaf1662f92e22ae5857b17dd44b8a87a49 ff9e09d4f168fef383062d5075d7a6a1b11eb410 cd446fcaaa303aaf57bc7e6f87ce68e4a834c656 3ebea60c99d666f0c36bd268a67362a421a005e0 16b961eb8d99e7f7b62f107da1d6547c38ba47be 03ce5b87ed0a4d1ca4aeb54558b76c9a05fe50a2 cd5079f38749ea6214e471bf037051d633eb5447 9e23726f9af2d4952af58d4ef8a9900023df9787 78fc1536979c8c3f4848610e8eb2da4c4531cadb 3fb7dad8a608ccebc17dfbd4cf14c74cc1c16deb 122f9eaa4e9242445b28c6f6c15e0b53f0e9981a 5585ae7a1e0ceb735393537584fd224033263844 0197d8640fb70c128e65cb04f7b37e6ae96e8f07 6efbcee1b52db1fbf07c609beba183e4a17a44b4 442caff3c1ae5009e0560d5b50d265b2969936f7 b4f9a5b4d5da66f767e2646ed7975e900f79a932 e804f338728eb07119ae2a984364567762b14643 d03f84301c5e4944c54972a4d4c0e3a79a7cf139 75055247 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 [ce:94:36:10:c3:b3:92:15:19:e2:65:5f:b8:0d:55:51:c4:bf:b8:b6] modulus: c4780bff81db8077ecb0af3b739de9228eb1191334f7a50e2d80c19c42b03cb8ae91f30735215647f5b0ed2a76496e53b0e15c9883cc9ba88a981bd107efe4bb42e7c5387bf43112e350aff8f147d5584187df3f5fa380da0be22bc3ae74321e0057668eb85355331e7d69a53a1fe8a96e12360e17434f01702f56be20f9a2e52eb6e11e54634c26aeecf19536b2df98ee0f0e4024e777a140a7c31c1c29f487caf97a4f3c6710f6de2b83a39f9e9bc9e8a0551a1fe5261bda14b496a3be5cee35d56f416138e0e14dab3081c07c0eace7b59c4b2e98258a222b1c620e0e620a0fc1791becb691a023038a1099fabdf4763d02ea493025cce2b2631e33a9c89f public exponent: 10001 ]