2022-06-18 03:15:05,486 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-18 03:15:06,775 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-18 03:15:07.752  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Jun 18, 2022 3:15:10 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Jun 18, 2022 3:15:10 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Jun 18, 2022 3:15:10 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Jun 18, 2022 3:15:10 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-06-18 03:15:10.886 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-06-18 03:15:11.231  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-06-18 03:15:11.405  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-18 03:15:12.169 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-06-18 03:15:12.172 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-18 03:15:12.174 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-06-18 03:15:12.178 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-18 03:15:12.227 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.s.a.OpenApiResource: {GET [/v3/api-docs.yaml], produces [application/vnd.oai.openapi]}: openapiYaml(HttpServletRequest,String) {GET [/v3/api-docs], produces [application/json]}: openapiJson(HttpServletRequest,String) 2022-06-18 03:15:12.231 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-06-18 03:15:12.375 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-06-18 03:15:13.022 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 18, 2022 3:15:13 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-06-18 03:15:14.153  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 9.799 seconds (JVM running for 11.766) Jun 18, 2022 3:15:40 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-06-18 03:15:59.728  INFO 1 [nio-8443-exec-3] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-06-18 03:15:59.741 DEBUG 1 [nio-8443-exec-3] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-06-18 03:15:59.799 DEBUG 1 [nio-8443-exec-3] .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-18 03:15:59.805 DEBUG 1 [nio-8443-exec-3] .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-18 03:15:59.829  INFO 1 [nio-8443-exec-3] .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-18 03:15:59.832  INFO 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-06-18 03:15:59.833  INFO 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-06-18 03:15:59.835 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-06-18 03:15:59.836 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-18 03:15:59.841 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-06-18 03:15:59.850 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-06-18 03:15:59.855 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-06-18 03:15:59.913 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-06-18 03:15:59.919 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-18 03:15:59.920 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-18 03:15:59.924 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-06-18 03:16:00.572  INFO 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-06-18 03:16:00.576  INFO 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-06-18 03:16:00.577 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-06-18 03:16:00.580 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-06-18 03:16:00.591  INFO 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-06-18 03:16:00.592  INFO 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-06-18 03:16:00.593 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-06-18 03:16:00.593 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-18 03:16:00.594 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-18 03:16:00.609 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-06-18 03:16:00.610 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-18 03:16:00.610 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-18 03:16:00.618 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-06-18 03:16:00.619 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-18 03:16:00.619 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-18 03:16:00.622 DEBUG 1 [nio-8443-exec-3] 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-18 03:16:00.660 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 279518130035605911381386149147675306679904189628 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Sat Jun 18 03:12:48 UTC 2022 Final Date: Thu Jun 17 03:12:47 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [8a:93:39:e7:64:e9:b5:36:19:be:d5:21:a6:c5:d6:69:6f:90:a9:22] modulus: c66d31571392485c07aec118f1f25753bbd7b93d4ce707393769580be2720ff58eb15d378866baf54f46ccf2cf6e5a7855ae4ded41281cb44fc1407daabf1bcdb57a93d19f038cefe1220169bce581bc36677a125302a88b78e594ae3b1094b4288032829dfa395b8c78cc4b8d8f5aed4915129eb4008324ebf8dcd64e833492545fa343ede36545b540b6aee2d2fd4c9cd6d46541fde8c36fc4ab4a8a4bfd2916590d5bd4d389ade42bbb16d87146d9ad9798fbe0b9fed3f7af719807fdeae58217b87402e8e83021bd4f3a13866eca70f83482452569aa13b92d7f1927f5a47f635d0f73d899096ce037bb1a5f3a49736dbc1fc827d79a4dc13427f89f030bc24df792fba3bd46a7d6a81709d7a44207603cd65ddc052d43c34812395e41938707c6a404bc4c5cd6872771727a63bed0936c847d51ca40bbca8c3fe854a13a053e3ca5213e1789c1a752bed9b40c6783987e161ce1da143ea4f70d07395afa1af8465832cd21cd6a2a65b68c0f97cf4c47202d098752e1c9213990b4be596f public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 2000091a6f2d98168045208a7ccf5916acd53a0e 517cc2b52776233a9454bb2d4d0f8fe57c78cd65 104d7a9bbc83559875ec81f5aef9c71029f9d85d 21970267a6a2ec5316892fbb9b24e72238b318b2 a49e14b01a3b2bd2f3ca1a76064ffdbcfc7e20f3 aaedcabeae92bfb41ad617fb7886b234b7de80db d45624afc0dedfaa18ba1c0861ede707c5ffbdf3 59d901304372735d1c0bbf2dd923dd0f376cfacb 1002692ba7891aed3763fc4bf945921f82eed684 9da283ddcda4e84d15af49eaaa99286b35a4b6db 4d1a363cca5fe066ed60faf335410661959b1762 32d4c8cf514b0115a5ce2aef758247be74ac5e13 084deee0df3691ac0c691773b337809822ac23f0 4f7c76af785fb9f2c2ed50bca665eea8f30132ab e0984cd78e50eca3bd48a07c7763fb4b3106b7b1 d391762ca9eae3b3351f1a0d366d12c0a02cc6eb f6196cbd3b75195252b0ead529f863ff16f96024 c28fbdc9f70026d46792197c7b7300771e1fa0ca 7be24027261a81411d954ab74d060a30569160dc f4f169c8 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 [a9:17:e1:8e:bb:af:6a:44:1c:c4:cd:96:27:fa:47:50:17:e7:c2:e1] modulus: bcb2f550f8db0e63414ae12b3077b3ee658a2322c0c911486d4b458c942a6ddc86dca2f6c849facc3e92ea28114d1e27dca3ea30473e454172038c752886618e707e44e3b6d799041adb77cd5eb11ed293ae05f78393046549de7544b51797e81054e37c41fc092df9e2be731d38f09fd4ae927de9bc5912b5676a53f8fe121a92292a8e1c8f2830074d83a8c287065a7836f8d40ac594d697c814ccef4cc67c5076f34d9bf9f44ad0283ad3a5c3a8990dcde743f389d2a2adabaa807ac0c6fcc0e7ed9c868be0e24a31b400c3acc6cb464aeed66bc698c5cd127a7c215701b2113b22f21193ea84e2e8587eaaf8b3b7b317f677340a9b6b232e1cbde58f4f41 public exponent: 10001 ]