2023-02-01 05:30:34,634 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. 2023-02-01 05:30:36,163 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) 2023-02-01 05:30:37.365  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Feb 01, 2023 5:30:40 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Feb 01, 2023 5:30:40 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Feb 01, 2023 5:30:40 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Feb 01, 2023 5:30:40 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2023-02-01 05:30:41.071 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2023-02-01 05:30:41.515  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2023-02-01 05:30:41.762  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2023-02-01 05:30:42.819 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2023-02-01 05:30:42.823 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.CertificationController: {GET [/v1/certificate-update/{caName}], produces [application/json]}: updateCertificate(String,String,String,String,String) {GET [/v1/certificate/{caName}], produces [application/json]}: signCertificate(String,String,String) 2023-02-01 05:30:42.825 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2023-02-01 05:30:42.831 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) 2023-02-01 05:30:42.879 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) 2023-02-01 05:30:42.884 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) 2023-02-01 05:30:43.034 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2023-02-01 05:30:43.936 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 01, 2023 5:30:44 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2023-02-01 05:30:45.249  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 12.212 seconds (JVM running for 15.068) Feb 01, 2023 5:31:05 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2023-02-01 05:31:29.567  INFO 1 [io-8443-exec-10] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2023-02-01 05:31:29.577 DEBUG 1 [io-8443-exec-10] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2023-02-01 05:31:29.663 DEBUG 1 [io-8443-exec-10] .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] } 2023-02-01 05:31:29.668 DEBUG 1 [io-8443-exec-10] .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'} 2023-02-01 05:31:29.697  INFO 1 [io-8443-exec-10] .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] } 2023-02-01 05:31:29.700  INFO 1 [io-8443-exec-10] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2023-02-01 05:31:29.701  INFO 1 [io-8443-exec-10] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2023-02-01 05:31:29.703 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random integer 2023-02-01 05:31:29.704 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2023-02-01 05:31:29.708 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random integer 2023-02-01 05:31:29.719 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2023-02-01 05:31:29.726 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2023-02-01 05:31:29.795 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2023-02-01 05:31:29.802 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2023-02-01 05:31:29.803 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2023-02-01 05:31:29.807 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2023-02-01 05:31:31.734  INFO 1 [io-8443-exec-10] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2023-02-01 05:31:31.738  INFO 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2023-02-01 05:31:31.739 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2023-02-01 05:31:31.741 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2023-02-01 05:31:31.753  INFO 1 [io-8443-exec-10] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2023-02-01 05:31:31.754  INFO 1 [io-8443-exec-10] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2023-02-01 05:31:31.756 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2023-02-01 05:31:31.756 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2023-02-01 05:31:31.757 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2023-02-01 05:31:31.776 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2023-02-01 05:31:31.777 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2023-02-01 05:31:31.777 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2023-02-01 05:31:31.784 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2023-02-01 05:31:31.785 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2023-02-01 05:31:31.785 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2023-02-01 05:31:31.787 DEBUG 1 [io-8443-exec-10] 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 2023-02-01 05:31:31.828 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 350818260901981987145403816432123511694108518182 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Wed Feb 01 05:17:54 UTC 2023 Final Date: Mon Jan 31 05:17:53 UTC 2033 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [ef:9a:ec:49:88:38:b2:20:93:1e:35:2c:3a:40:4f:3e:33:54:b8:ce],[56:66:d1:a4] modulus: c548e1d956b3100c231196ce98059162cba5b492ec02e56cfda24d51fcfbfbe86c61cb4a800d58d06f90e5cf9bad5c5e672a985442022f8a97d91b77df76d6045904a0dfa5bb35e400c759b989e4c908546e3c54db94b2b9a9a45b3878d74877d62db1b60fafbf4b3066c8979a203081e9f17a276fff4c24ddcc196c613888633f6a86cb9a0b202bf0f761997baf93ab3ca6f32353e31690165abc02781483c6c87eede6fabab6a667095f97654b56b2cb6d8ac531e7753be7d33be6493f03691877a67e6b9c3faa97526da8db53992eabb8ee58c99196f6d460f7e5b4e5e09be2ce598132fc04f0a392365844dc1bd46129e7bc1d58d674d8acbfb5e57f0d2a1250b6682f7fd77b4124b1c2d6ebcc35f97c11f3c68724c5cf2970998b33917598615fdf3e50ddbb07f6c6641df6e46165b9f0232c2bf037a24a94d888645b08f0c772c548c62383faac3d59550ecc299665c62e07addbda55f6e8919a0bd38bc2430f9ed8562ea80d4be8e347085b4f23d86a89aee1f418a7b5ee70c3fbb171 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 370b82280b78bf4ecf1169d446138ba2d467d9ad 1e93b8b7c43e56fbe89066896bb62905d45c347b b96427edaa75598f7f18838fe9dae0b184d5646b aba39f48517d32b99da6a680ea47ee2fd5e3d3d5 f9de2ee01f101efb7e8a5de1e5834567b60c9f6b a845e3b1e9fca147a5f6f334329dc7f3a8c0f3fd 3e915bdba1ef716d3e7a654e773ac267f51b95bd d12bf8b2183af09c95357035b68f2ce8196c2ac6 ba684401555afcb9ea1007f492d02040ec7a8816 e732d3c8a22c7301e8cbaa84fdfa3116c1ee5c9f 4ed08b384aaab0fb2caaf14379ef2d4862458afd 4abf2a3407bc98ad55b073898d277035d49f2f61 a0987565e49db3c1366c12f315fce47fb921c042 b053c8eab52bff556f12a98d1eccf6efba80e1c0 808c900aab2c3393cd9efe875299309dd5cbeb4f 8677234b5754ccd43ec9b3883e4df356bb6f04be 527de10561498321e19134dc53163941b3b72e0a d90c2d4121af8c0d0f54443a153c6808443808d6 56893d83289ebba077bc99bf64c8246edd2943a9 1495aba8 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 [2b:4e:40:4a:0b:da:78:a2:77:ed:cf:69:ea:be:55:3d:e2:45:46:43],[56:66:d1:a4] modulus: dc78d63d7d854921d7d6f396e5428bd5434f3c8e077e991d7245dc2edd9232537ecc0c3d65982e85b64c62cea2f3ede21aca280709fb018519df5041316294ae9dbd7455bac3deb43cddf35f572ce3296ac1ff4b0088cfff534291a8cb6a0b88d3068bd5edaf0b796acac116b0cc87ea44077589a3cea2e975dd2cdd6a4113430e8b66b2d93c70c0c67c2fc3fe82d2266396297d55ac755bbd0e3b7f1a7dd3eb0a041b778c36041c6f7ddf601d3fe313071c1de2af68e6e9f1342d350e86afd545f3eb406ca0334f4f449ed3819c6aa887b86e915fe0ac0d3c0bf7c1dc80ea435f24e2b98cb58de3ac7512515cf9375faf6b162d01c12af9113b05f25b876ccf public exponent: 10001 ]