2022-06-22 03:10:04,105 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-22 03:10:05,423 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-22 03:10:06.709  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Jun 22, 2022 3:10:10 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Jun 22, 2022 3:10:10 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Jun 22, 2022 3:10:10 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Jun 22, 2022 3:10:10 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-06-22 03:10:11.321 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-06-22 03:10:11.954  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-06-22 03:10:12.378  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-22 03:10:14.068 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-06-22 03:10:14.077 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-06-22 03:10:14.081 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-06-22 03:10:14.093 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-22 03:10:14.196 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-22 03:10:14.205 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-22 03:10:14.409 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-06-22 03:10:15.541 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 22, 2022 3:10:16 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-06-22 03:10:17.109  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 14.503 seconds (JVM running for 17.423) Jun 22, 2022 3:10:35 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-06-22 03:10:45.399  INFO 1 [nio-8443-exec-6] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-06-22 03:10:45.426 DEBUG 1 [nio-8443-exec-6] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-06-22 03:10:45.554 DEBUG 1 [nio-8443-exec-6] .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-22 03:10:45.564 DEBUG 1 [nio-8443-exec-6] .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-22 03:10:45.603  INFO 1 [nio-8443-exec-6] .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-22 03:10:45.606  INFO 1 [nio-8443-exec-6] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-06-22 03:10:45.608  INFO 1 [nio-8443-exec-6] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-06-22 03:10:45.611 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-06-22 03:10:45.611 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-22 03:10:45.617 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-06-22 03:10:45.629 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-06-22 03:10:45.636 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-06-22 03:10:45.717 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-06-22 03:10:45.729 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-22 03:10:45.731 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-22 03:10:45.740 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-06-22 03:10:46.640  INFO 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-06-22 03:10:46.645  INFO 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-06-22 03:10:46.647 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-06-22 03:10:46.650 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-06-22 03:10:46.667  INFO 1 [nio-8443-exec-6] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-06-22 03:10:46.671  INFO 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-06-22 03:10:46.673 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-06-22 03:10:46.674 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-22 03:10:46.675 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-22 03:10:46.700 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-06-22 03:10:46.701 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-22 03:10:46.702 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-22 03:10:46.714 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-06-22 03:10:46.715 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-22 03:10:46.716 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-22 03:10:46.720 DEBUG 1 [nio-8443-exec-6] 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-22 03:10:46.784 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 219413301015512759849236217552561261522561074676 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Wed Jun 22 03:07:58 UTC 2022 Final Date: Mon Jun 21 03:07:57 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [a3:bc:09:e5:2d:8a:cf:1f:f2:ba:2e:93:11:b7:27:48:19:e2:fa:92] modulus: b33ae7de415636259516b4a1d121a8624a053122d25c2e89d53d5b79b4657261b22b865e6744492eba4a5454b186643a5a66ef7bf12f64ed4066c9660b92b1cad52cc33c46a00bfdcd838a29c8cebf677539e4a873260629324e05fd8a055da78c1600b59006234e209ab0e0210ed9a701e8423369fc0b0e6c136d9e0625257ddd26679fc7e145fbc68407eb90311ed00ae100541692587589a40567be3fd5091b50f5b497ced0dd858aecc8a5f0e941c6d39fe2482696928d9e95294d905a220b05607b9b447963ccf2620ca8a75b413a4dfef2e016cd63e11b5195b06f3835e06f37db38b88afb6f67f7f5f15b195df35eed05b5d58e7f322b31683e02146bfab31246422582b662a30655a0ac61e9d280c5dc6d19def3954640a50dd63c93faaae959752f8c3f30cb18b56982cddc54c9a2e67f4bad959cf11ade15461e04d30867171bf65cf26b2cd7d7777eb4f1ec7fee1d63d4b63a439cc099147f613d89cda62d329e10c0a42e9b1532370b7c0f59291fcd2c918461b7f299e7f68f47 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 7b333d3e88035126b23e4338258c26cd61f215ac b5499c73e9f86e1614b13eac5ca0703d8bb786ad 3f3feed855deab497b65d0eeb422be30cd963d71 94d79ad1c9f2e7347d50dc2bd240d0519686fcef f74a76fa367ab1102a8c19fc3d09b8872309d615 b9c65403a1d205dd63f7e3dba15e7664b8d09d00 c88f9d9483b6d178b81c0d8b5994ec52938db808 f6412d47cc83a5c8549625335601e8a348cc2227 6e36501295034dc0114fa9fd3b069379dad1b134 cfd38b03ee4c8839e66a549e1ae90e0619fc32a8 7718c3506bb888bf743507defc313a45cea1d264 b28ecf0741a812aa0713a990261408e6a49e24a6 129f1c9e936c65e659e48f0641b47e632426214f 57e1cd5374183175f5b411d9135cd96fd4e28acc 347bfaad9b25c464bd78041697f775e4094b3a36 3ff5558242fd9cd934b7d3651ab7648523bf56f1 18d64920c2a973bc1e87023853b88fb4cc669cc9 3fee40e30cbc8da3331e3e11136fb735e65a3561 0be775950f0a2d9a326caac29baac927da021117 bb338666 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 [8e:84:f1:61:ab:bb:6d:55:53:8e:0b:9c:16:e2:47:48:ae:e4:2c:21] modulus: dd480de62886a27ab91d1befd28526a2a51802514ff60051ef48450c61b060e514e0175b724e9b8b7828d559b68cec5782bd9482af2e965db2fe5af93c4f5ad1ba1b0a25251d10068c135c6c0961488a3787f259d582ef6f44e3f0321db908dc9937face2ffa1509712036d09bff3e29144d4ddcc96ef4192ef4f1de95f22b3db0cc40d4b2d8fc349928e7c9fe4c2a74239b36e5152081b6febc9e337b9b2d9ef19dd4529e39ea137a8f747de5e70b4601b7fc6eb617d48d9d7059e62c5f9ea0788b84e183cc831100abd911d0b8de513772970cccfefd28bbf469383ba32cd0dc2c1d75424b992d4895ef2cca5db1c3eb018b898362bf3e7337e7adfa14b555 public exponent: 10001 ]