2022-03-23 12:15:59,040 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-23 12:16:00,039 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-23 12:16:00.804  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Mar 23, 2022 12:16:02 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Mar 23, 2022 12:16:02 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Mar 23, 2022 12:16:02 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Mar 23, 2022 12:16:03 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-03-23 12:16:03.538 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-03-23 12:16:03.791  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-03-23 12:16:03.980  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-23 12:16:04.819 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-03-23 12:16:04.821 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-23 12:16:04.823 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-03-23 12:16:04.827 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-23 12:16:04.861 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-23 12:16:04.865 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-03-23 12:16:05.003 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-03-23 12:16:05.696 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 23, 2022 12:16:06 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-03-23 12:16:06.617  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 8.372 seconds (JVM running for 10.54) Mar 23, 2022 12:16:29 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-03-23 12:17:30.124  INFO 1 [nio-8443-exec-8] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-03-23 12:17:30.135 DEBUG 1 [nio-8443-exec-8] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-03-23 12:17:30.176 DEBUG 1 [nio-8443-exec-8] .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-23 12:17:30.181 DEBUG 1 [nio-8443-exec-8] .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-23 12:17:30.210  INFO 1 [nio-8443-exec-8] .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-23 12:17:30.213  INFO 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-03-23 12:17:30.214  INFO 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-03-23 12:17:30.216 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-03-23 12:17:30.216 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-23 12:17:30.220 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-03-23 12:17:30.228 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-03-23 12:17:30.232 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-03-23 12:17:30.281 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-03-23 12:17:30.290 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-23 12:17:30.291 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-23 12:17:30.294 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-03-23 12:17:31.038  INFO 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-03-23 12:17:31.041  INFO 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-03-23 12:17:31.041 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-03-23 12:17:31.043 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-03-23 12:17:31.051  INFO 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-03-23 12:17:31.051  INFO 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-03-23 12:17:31.052 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-03-23 12:17:31.052 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-23 12:17:31.053 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-23 12:17:31.064 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-03-23 12:17:31.064 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-23 12:17:31.065 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-23 12:17:31.070 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-03-23 12:17:31.071 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-23 12:17:31.071 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-23 12:17:31.073 DEBUG 1 [nio-8443-exec-8] 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-23 12:17:31.099 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 652059472533519853315771734381483540759678689126 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Wed Mar 23 12:08:41 UTC 2022 Final Date: Mon Mar 22 12:08:40 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [7e:d7:f5:d0:bc:cb:75:d3:eb:67:2d:52:45:ea:a0:46:e1:d0:8e:b6] modulus: b2571eb0d9d60a710ddf6ea0f65f83d5e989dcae950731a4a81ff36cc9532725c50b5a1e751892a0cace2eef130441ad8d3006f4961cd20903af7ecfb3d52b1ea58c32d6def485aae8618922ac88cd72ad7e2859ee927609302ace9bedda70fade33cd64c1c0cc6778a2b9585a61fd0520b43940e25a871d5825441277f3066c7a6b16e2d926b6983671d87dc85c5e324c8dae78bf434d57ad257e81d82c4e46f978c170bef0982699f9529feeb526c48baa15efd765bcf165297c933a800066559e6649f5a2911662b58fe15e18191a461bd2b3f289f8e9445064bbeedcd0c751d0719f546e4ed726cff143e4d1094147a25fdf30f10da62ef611b3ab065885fb6024470bd18ebedd0bcfb29522e974580808e1222a2f7eedfa65c50263cee2a9788f4b4c3523929b54fe0c13fe07b6e47e9816ba89f729e83120ed9a018a69864427cac18ea603cef0773b9beba8a1e837573e8f526150864ee807b0051cfcb0377ca89baa3802a6310f8bc6f6a59af2e59bc63bf96af588058178c62da2ab public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 2916be794232c3659c7756cb4965d1567fa186ec 33dd886f3125981c65c434d373be677aef6c7079 47506f35973d2705f8057ee371f3ac82c5b3517d 79dd04dc0ad1498324c0df42ceb04d0805514cd2 3a608176c36f236fbff6bea1c8c3d66591980f4f 2c54301766f88f96b6456c67456e2a27dd0990be 2382aff21da866e2dfe92821302aba1f6694ef89 a765e0139ea00c759026b3576942128924f3b418 e8c34728c1e6bd7531cea90c5c30fba7fbbfd368 3831c07255b23da193b46a61603118f09e82d6b5 193d356d2f95f1a6c870159e2204a9b86e336355 8df20fdaa0b039cd6d1556a6fe28405f9d1f3be9 5ed2eeda76d0f9ddc073371cf3cae092246df70f 2e3eac3bb7a258cbb722250e37e745a9611f18de e039187a344f05e374b953a15b266868f2f635df 286a3df81ae03a2d6ce3c3ca7bdb34e4ca8f6064 1e7eb8220b7bc0d7ad251ff9dd4e9525e6a12ff1 0ac4c8c378d87eb89bc471d8ef3be1c63f3ab55c 3fe49e757ac308611c4f06f88081dc5846b6511b e6cd8be2 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 [2a:39:c5:c6:78:fc:9c:9a:d8:34:08:75:3c:9a:3f:23:01:51:4f:06] modulus: a2d1515504826fc1ada01894faf0686eac9d773734d686ab5dbb8932bde26109e23e1a113caf89c2aa94cc228a6f0bf9a6173c758804f90e07f6aa39c160193c95972f717d562d5008356f129f789b81441d463d79e8c134d167abb06b0a44d359dc52675fa0b251eca4c99c05e86ab7d9fdec5d7b5350d09e68a33e324fddd87a82fc3bd699958fc9bd29f55128f5bb9055de85a11fd5dddd096d0dc585a070127c2dd8bd0fc22ce5bb67c8eebbe5a44c88cd1bfdc529b5699e20af6484d582d1915dd905be89968b258dcbd47bbef65fc12b494ab477142bff90ee4a135a1aaa97198a730e7c2114e8b54e42244ae0af82e4804533eced036174debcc67651 public exponent: 10001 ]