2022-03-31 11:43:13,289 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-03-31 11:43:18,069 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-03-31 11:43:20.788  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Mar 31, 2022 11:43:30 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Mar 31, 2022 11:43:30 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Mar 31, 2022 11:43:30 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Mar 31, 2022 11:43:30 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-03-31 11:43:32.695 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-03-31 11:43:34.081  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-03-31 11:43:34.791  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-03-31 11:43:38.284 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-03-31 11:43:38.287 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-03-31 11:43:38.288 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-03-31 11:43:38.290 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-03-31 11:43:38.480 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-03-31 11:43:38.483 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-03-31 11:43:39.080 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-03-31 11:43:43.787 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/]]} Mar 31, 2022 11:43:47 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-03-31 11:43:48.585  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 38.903 seconds (JVM running for 46.895) Mar 31, 2022 11:43:57 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-03-31 11:44:28.075  INFO 1 [nio-8443-exec-1] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-03-31 11:44:28.086 DEBUG 1 [nio-8443-exec-1] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-03-31 11:44:28.281 DEBUG 1 [nio-8443-exec-1] .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-03-31 11:44:28.285 DEBUG 1 [nio-8443-exec-1] .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-03-31 11:44:28.382  INFO 1 [nio-8443-exec-1] .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-03-31 11:44:28.385  INFO 1 [nio-8443-exec-1] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-03-31 11:44:28.469  INFO 1 [nio-8443-exec-1] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-03-31 11:44:28.471 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-03-31 11:44:28.472 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-31 11:44:28.477 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-03-31 11:44:28.482 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-03-31 11:44:28.485 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-03-31 11:44:28.690 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-03-31 11:44:28.770 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-31 11:44:28.770 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-31 11:44:28.776 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-03-31 11:44:30.085  INFO 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-03-31 11:44:30.087  INFO 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-03-31 11:44:30.088 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-03-31 11:44:30.089 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-03-31 11:44:30.175  INFO 1 [nio-8443-exec-1] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-03-31 11:44:30.176  INFO 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-03-31 11:44:30.177 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-03-31 11:44:30.177 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-31 11:44:30.178 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-31 11:44:30.188 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-03-31 11:44:30.188 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-31 11:44:30.189 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-31 11:44:30.277 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-03-31 11:44:30.278 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-31 11:44:30.278 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-31 11:44:30.281 DEBUG 1 [nio-8443-exec-1] 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-03-31 11:44:30.374 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 442886594035489212706171020318032990510099395640 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Thu Mar 31 11:40:04 UTC 2022 Final Date: Tue Mar 30 11:40:03 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [9b:6b:25:90:07:c5:3c:80:a2:b2:c8:48:a5:d8:4b:ab:47:b3:5b:c1] modulus: c684a99dd19f96064ad37167712f31a6bcf25de13660e75b770c3bfe14d76161479b1dac6faf59e33a0504768883f5da1439b33f2d175603a3f5b242bf65115d426e701cb93cefa05b7be250c46cc304c661dbe94ed6c3071d18387bb336ab85c7d2af5a670a199e6a6138dff2da7d078ccaf246c88b5da0dfa2d8cb9744f38b9bfabe46518e9db374c63bad906fcd8ab7e9c0b54e03e1a184a7963470affae7882231e999a668a3a44987a5662638be062dcf91bc3d96a54493e7cabdda908622bbe76ddb6aa84690e9387923f6ec3924ddb3dca941fecbc1eca16d36b1541f5ccf7bd6f0b6ed116ecf065d255e78324fe07d34f2770178ddb7f2694ae3d9a391cf310ef1b2f8ec6e090449a96ca1c6dbd8f0adb929aa3749ea79d2289c3a3c6131360579487537b2b79f1614fb75e7fd5063300a2d32ddb299a567003f9332e2295d511ac658d36a160728f8014ce00f4ace1610d2fca3cdeaf450272c2188b54941e72a5af4f8ab25c6f988425b87692b2b1ee0bc1b4b8aae91c007d17611 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: b2befb3296058ea926d70294b0e836e820343b55 938e08d0907ad90148c8e2e1e53be99a1b2fca63 95f2d7e95c9df742d36fc3e3a148f3ad5214a222 322a7b26d4d2a39a62f3ef10d15dd7e39d9c668b 3d5e083d3b1895c3e1b94a72b2cee532a35958b2 fd0c881a17c364a42f85f423df1643f278edbf8e 77f5a8d90aa38d318a4a55dcdd73ff6e42af7af4 e9bb79df39da2a3530a5916dd31bd7b28aaaf650 ef1cd5f781c4852b548e192918b53f2ec3c942a4 5248a8be890f1c6a4cc697ebbe6ef4f5168fcd10 001049daca6fbb06c02fdc8f614a5bcd149fc064 78e3d283b0dbe92ac7e9f5dc77e193c642f782bb 367d12023d7cd7447ec0dba15fb2cde32cd56138 eced43e7e0b942efad700004d7cad64fd1794fcb 27970c4411ef8749123d2df39bc021adf042cc07 2f9aa4b520507d5593f17ee4ae90584ced07d76e a9ed4b6b60c197257e3c70bdb3349b445d407cd3 797a2128834e925d1a431fafb3863b96c267046a a2b55faf81fee9f195ebe62b0b063aa408cdef65 59132b55 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 [e9:2b:6c:9b:09:39:0b:46:79:d2:31:85:1d:aa:ba:64:27:8e:15:06] modulus: bf54b04f679c23b4e4d5ac823cd410d9ac44a46bd760688dd58977dedc4827da20b926b7ea7b0d9c5172adf50399e3695dca34fa9e9be4d8d980a744018835c8b3fa1ffe27216fc20d39604cfbf938def90d896ed498991e8d627b9c0da984f1fda8b5610b0e9b175dfa69a98059bf88f4f955c54d424dd81fd0ad183caf054243003d47cce4d529895813946f66e6074bc8b88400497e16143eedc39097d9129bd25e1b32b17b7cfb34e2889b03df5c3a981f7c37a5a398668a109fb059ae0b3e16da715de552be3bc723786793ee7a3765357ecc171bfeb7a6bbac0d0095344031dac42714de73dbf7dae99f3e791b72ebc7e64d10ec42278cef8c47726103 public exponent: 10001 ]