2022-11-13 05:02:59,896 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-11-13 05:03:00,980 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-11-13 05:03:01.639  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Nov 13, 2022 5:03:03 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Nov 13, 2022 5:03:03 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Nov 13, 2022 5:03:03 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Nov 13, 2022 5:03:03 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-11-13 05:03:04.263 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-11-13 05:03:04.503  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-11-13 05:03:04.662  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-11-13 05:03:05.445 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-11-13 05:03:05.449 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-11-13 05:03:05.451 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-11-13 05:03:05.454 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-11-13 05:03:05.503 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-11-13 05:03:05.509 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-11-13 05:03:05.605 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-11-13 05:03:06.370 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/]]} Nov 13, 2022 5:03:07 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-11-13 05:03:07.365  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 8.329 seconds (JVM running for 10.127) Nov 13, 2022 5:03:30 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-11-13 05:04:03.422  INFO 1 [nio-8443-exec-2] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-11-13 05:04:03.428 DEBUG 1 [nio-8443-exec-2] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-11-13 05:04:03.456 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-11-13 05:04:03.460 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-11-13 05:04:03.476  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-11-13 05:04:03.480  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-11-13 05:04:03.482  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-11-13 05:04:03.484 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-11-13 05:04:03.484 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-11-13 05:04:03.488 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-11-13 05:04:03.496 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-11-13 05:04:03.500 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-11-13 05:04:03.546 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-11-13 05:04:03.553 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-11-13 05:04:03.554 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-11-13 05:04:03.558 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-11-13 05:04:04.178  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-11-13 05:04:04.181  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-11-13 05:04:04.182 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-11-13 05:04:04.183 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-11-13 05:04:04.194  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-11-13 05:04:04.196  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-11-13 05:04:04.197 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-11-13 05:04:04.197 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-11-13 05:04:04.197 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-11-13 05:04:04.210 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-11-13 05:04:04.211 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-11-13 05:04:04.212 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-11-13 05:04:04.216 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-11-13 05:04:04.217 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-11-13 05:04:04.217 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-11-13 05:04:04.219 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-11-13 05:04:04.250 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: 538556996655796121079551713408308382294188709306 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Sun Nov 13 04:59:47 UTC 2022 Final Date: Fri Nov 12 04:59:46 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [68:64:01:db:25:7b:5a:b0:f5:03:13:b2:27:df:74:da:93:22:ab:a0],[56:66:d1:a4] modulus: b059681abb9960e87b7ac0d0ea7320e1466a2422b5df045d829351136f888caa3aa8e9f587cc1bdf8eaace3ee4628f3c881c0a368e46ded52d842a1036b96de82aec602975672456378312a7b205da1bea46b9080b9958ffdac8c4cc408cc45fba1c36fbe0f4d2e9bfa026e33f6adaac9a121b4f67b404cb295eaf47b0491fead7217e549b64b0c433f64d89bddc0f67b0e4e4119fc1156f1e55ffa61dafdb6f9a6333c15398c9fcae7b3eb3360712a7fca2967b26cb7848e625c487fffdf40636b0e622d3db54ae5d27ff85910ee6f151d6880c0ab6fe3d9ba44be46fb2558c043f9cbb1762305084112be816e158a194ff2e263e0c483ecee33ce995c45816f8bd7ddb4fe4b28aa1060dd5044fbd0a4ed20cfeda894f65454f6969262e25a10f5d7d6a09230ef6cb97968d7bfc6377f74dfb883e8c75a389e816ae6a2af0704fc4490b38fad3569982fcc3631c3bc72dae11f03529e7d0c7bb5d44f359e414f59a6308719acb482c7597d35a812eceb476912846d8f51788fcba0cbbcf78b9 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 586f38bc8c13d8055ffc328e76f6e2b81923b4ba 54472996883570a7ccf70d01b01e432408ee6e79 2ba16417ccc21ec2f8c1c01bef8f1ec130333604 e32c6bde13a4755bfc2084689a64e26b57c2d44a 9e5af927637c4f60c7a827916acccbffb36df212 72ca61b7658ad8c141fa03986cd043d1938109c3 3e3871f2ecc7ac1c0f47304291a0f235d3b6b674 98fc7f791bf26c7ab5677b16fdf145a1eaeec2f9 19ece431baf9a8420a5aa8b59057cb994072c54c dfd1ffee770f4685dcbf6a824a0060adb77ddfa1 205a596cdc2523fe01e537e265345339fe68b427 f18d59916395511e960d37d11c373402e4f4c2e9 836f2354aeb918a8806e973aca841f7170947fc6 7452e4d59a4de98b15e170b0132cd294966b1fd5 4fffc272cf6d5e768d6bd521f8e4ba17e6071c2c fb4c1d05f1c845f0e9dd9795480f85317f5cc28e c08b86ea95243198d484ceda85d3dfbf60e1755c af2b74df09e9be36b481097f8ad7f0e3d9402345 53eb3f71762a0e4607ceec42265c34e8cc686f93 4fd4dbf9 Extensions: critical(true) BasicConstraints: isCa(true) critical(false) 2.5.29.35 value = Sequence Tagged [CONTEXT 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 [c3:96:b0:30:89:e9:68:03:d2:3e:26:b7:72:84:f9:66:29:26:d6:74],[56:66:d1:a4] modulus: bfceea54dac32c08081fcf7dc293fb50b0d76b1f6b40d62ed557cdb5c6c95834e338572c0014cf92e3bc3010b7b6b37b8827fba767551bf3038678c9a0cf6534ec738d647be0579f346365d7471a2ecb34407ccac55d1288c5c944bb9086ed676c9a1f3da0859086aa90e9291b7e23cea2b2fdfc6975dbd66111522968368f9c9128bb17402bb1d151c21421a6f13fddefed20d4706ed6c04a1633ea4d2abe6c6c30dcef790596a0f826ffac65b48238ac263f1cace6381f69e3c508f9911f57de20b6c99baed9852c3f8796de401718755ba29b0d63eb468bf614e3d925157ac79b2c7cac18d7921cb84ea8b2926fb3e9099e12fd76f34c45a45bd3f2eb10d7 public exponent: 10001 ]