2022-02-26 09:57:01,081 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-02-26 09:57:02,010 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-02-26 09:57:02.817  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Feb 26, 2022 9:57:04 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Feb 26, 2022 9:57:04 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Feb 26, 2022 9:57:04 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Feb 26, 2022 9:57:04 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-02-26 09:57:05.234 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-02-26 09:57:05.541  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-02-26 09:57:05.702  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-02-26 09:57:06.458 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-02-26 09:57:06.461 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-02-26 09:57:06.462 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-02-26 09:57:06.466 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-02-26 09:57:06.506 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-02-26 09:57:06.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-02-26 09:57:06.633 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-02-26 09:57:07.178 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/]]} Feb 26, 2022 9:57:07 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-02-26 09:57:08.040  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 7.691 seconds (JVM running for 9.454) Feb 26, 2022 9:57:37 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-02-26 09:58:39.116  INFO 1 [nio-8443-exec-7] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-02-26 09:58:39.138 DEBUG 1 [nio-8443-exec-7] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-02-26 09:58:39.208 DEBUG 1 [nio-8443-exec-7] .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-02-26 09:58:39.223 DEBUG 1 [nio-8443-exec-7] .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-02-26 09:58:39.271  INFO 1 [nio-8443-exec-7] .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-02-26 09:58:39.275  INFO 1 [nio-8443-exec-7] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-02-26 09:58:39.277  INFO 1 [nio-8443-exec-7] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-02-26 09:58:39.280 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-02-26 09:58:39.280 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-26 09:58:39.298 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-02-26 09:58:39.305 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-02-26 09:58:39.309 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-02-26 09:58:39.350 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-02-26 09:58:39.360 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-26 09:58:39.360 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-26 09:58:39.364 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-02-26 09:58:39.986  INFO 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-02-26 09:58:39.989  INFO 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-02-26 09:58:39.990 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-02-26 09:58:39.991 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-02-26 09:58:40.001  INFO 1 [nio-8443-exec-7] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-02-26 09:58:40.002  INFO 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-02-26 09:58:40.003 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-02-26 09:58:40.004 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-26 09:58:40.004 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-26 09:58:40.016 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-02-26 09:58:40.016 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-26 09:58:40.017 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-26 09:58:40.023 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-02-26 09:58:40.023 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-26 09:58:40.023 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-26 09:58:40.026 DEBUG 1 [nio-8443-exec-7] 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-02-26 09:58:40.057 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 692513256166449256168411193704497553258870778813 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Sat Feb 26 09:54:33 UTC 2022 Final Date: Thu Feb 26 09:54:32 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [3d:9e:3e:35:3f:28:71:ab:2e:aa:34:41:d9:40:6b:51:67:ab:90:3f] modulus: b5aacf3ff19ad2e383a60d1adc6c5569e45bde9aafe9d5cca242d029d4f4144d9c633b76d147a3c3fdb9ac3186744e5fc0cc4aab5cf1b051b8058d535eb0670822ed2fee2bfa01310f9d17863b3086cfb344003544a532c6a9fb5baee2123b18bba70798ef4388266d1bd942c6b4c6528a25508f95d63d72d45ca994a42b9a3a49ca6149f8d40c51044f535603a10f9aba4ea308aebdcfaf929bbd7941ce28a4a8d13a043fec88e5e9f587688ce6f525d5931f4b73cff2567b0a35c18b32b36f00ae764c76c36e23e09e78d3a8a798b8babbacc34c246ca03e897e5a57f5e929627c00a348d6177080d121d473412319f97fdaee8eb828a3a6ef1549daa63b2293043f9963b1df9093ab4143a6b333b941edc418d407877f5d20a63176dfff41c9c0fce8b7308e9bcf23bce3cc2840c8113f1cf88c0a07bf81da7638896ad37fa4c3ea706cde7ed3ff914435c7fd91999c30a84aa88ae966858c73f89ea2179170d7252b852014f9bc2223c461438f3afd4b526938ab4a19fe8058b13eb1346d public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 9a9de067085c8f6c5ec226df77a61df6df516aa2 b2d114dc548caeccd45afe8824c59100d61d7114 697396e82b6f424dea00d5a66bdbc37663c48431 38d61a95c50dc27692f7a2072f5e24f66bc7ca3d 18ec8c52ad9bf49da5536ee8cdf2362b80beee42 ee74e670fed7d5f41d285cb1d8fbab4c53a52ca7 3128fd30729ec75a568593abd58a0955a3927a13 69942b02222c60d8bdb539946739cbb6350b264f 7fd45e3ef19a89d041152706eb37890ce12f0aec ba8d0da63c87a6b23f85e02d2455025f7778df0a b248bffbccc5ed7c3112335e0d0060d56290d1fa 36e68da768229612fa38f249dcd70bd527bd86a4 eae0542d6a7c7fb0b556425bc196543a629423bf f4c39fd6f45835ff09a59eee8b89a9e0eb2041db a14779704516a731052723c30092fb415636cf1b fc2ff26b1b5bbe0d84ab330a99149c066aacc551 94a50d024ac1a790ad1351ff6060c8420d7c1be5 e4b3d72795bd101fb9f9947bab8fd53e1f6992cb 2d09a179fe17393c80a54aed2dcaa5b858789db9 e3269f58 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 [43:c8:e0:c5:ed:90:f7:61:cd:eb:a5:3b:a3:f3:63:bb:ee:94:d4:c7] modulus: a77d8bf46f03b84a57f872d16eb81952b40d1b108bd85da86296da1f572091a487e5bc082613fcd147a2858812e984243b1279bedcc739d3c07923ca15d8ee9019fe5e9a8bdd0d7a4936de3ee34aa180e00ea4b591f96cd27941432c85a52d9dae73f67faac58fc1d46ceb80d8d8d39d472ec07e42714726a33d6b1f23e8e5fb84f2e7b6e14749d7a0de0933ae1dd679e89817be217b5c2be08fdcb30db55969ccbbda759077941622ff0090cf58f95381a9818c8ac205005b996e74cca1fe9470e8d9129252b246ecd484fbd25bf2ad126ada8816ce777e1664b76a709a016cce5272266493005e472740b20f5a747b071f850e363756a82c2767fc92fa0969 public exponent: 10001 ]