2022-11-22 04:55:19,832 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-22 04:55:21,321 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-22 04:55:22.084  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Nov 22, 2022 4:55:24 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Nov 22, 2022 4:55:24 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Nov 22, 2022 4:55:24 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Nov 22, 2022 4:55:24 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-11-22 04:55:24.774 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-11-22 04:55:25.060  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-11-22 04:55:25.239  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-22 04:55:26.110 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-11-22 04:55:26.113 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) 2022-11-22 04:55:26.114 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-11-22 04:55:26.118 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-22 04:55:26.161 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-22 04:55:26.164 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-22 04:55:26.286 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-11-22 04:55:27.031 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 22, 2022 4:55:27 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-11-22 04:55:28.143  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 9.27 seconds (JVM running for 11.222) Nov 22, 2022 4:55:49 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-11-22 04:56:05.423  INFO 1 [nio-8443-exec-3] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-11-22 04:56:05.438 DEBUG 1 [nio-8443-exec-3] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-11-22 04:56:05.487 DEBUG 1 [nio-8443-exec-3] .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-22 04:56:05.492 DEBUG 1 [nio-8443-exec-3] .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-22 04:56:05.519  INFO 1 [nio-8443-exec-3] .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-22 04:56:05.521  INFO 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-11-22 04:56:05.522  INFO 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-11-22 04:56:05.523 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-11-22 04:56:05.524 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-11-22 04:56:05.528 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-11-22 04:56:05.539 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-11-22 04:56:05.542 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-11-22 04:56:05.599 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-11-22 04:56:05.607 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-11-22 04:56:05.608 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-11-22 04:56:05.611 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-11-22 04:56:06.374  INFO 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-11-22 04:56:06.377  INFO 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-11-22 04:56:06.378 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-11-22 04:56:06.380 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-11-22 04:56:06.397  INFO 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-11-22 04:56:06.399  INFO 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-11-22 04:56:06.400 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-11-22 04:56:06.401 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-11-22 04:56:06.402 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-11-22 04:56:06.431 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-11-22 04:56:06.431 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-11-22 04:56:06.432 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-11-22 04:56:06.438 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-11-22 04:56:06.439 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-11-22 04:56:06.439 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-11-22 04:56:06.441 DEBUG 1 [nio-8443-exec-3] 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-22 04:56:06.477 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 162136760455011105700588164684054374259098149903 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Tue Nov 22 04:53:04 UTC 2022 Final Date: Sun Nov 21 04:53:03 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [8c:63:f0:bf:ba:5b:68:85:56:d7:64:e7:52:1e:50:02:11:17:4b:7f],[56:66:d1:a4] modulus: cfae8403055a7c216cae10df7213c092cc68b44afab0398a0a673947715db8382f27aa086b2a1b87f96c38bb023d288de53953d71e80aa20803a3ebbf42d2d0d7708a1442ec7b7138d82c45643905df211dbdc3f364a6bb0ee6278849771efd6ddaf01e6b80229ddadbfcc46e2018111fd88fa1d4a98d8310b63d58bd98f50fc8b73420e8b62fce5ee267bd6193f0471133b54292b0b867d5b29a74eee59174f2ed3720423fe91e0d398285998949d5c0468f8ffc673182aacb1203d67e2de767c560597b85ca88f9b982507843db888f2c5f4c390036d264d3d060b1066141777890f98f94002abd48a12c6e79221911062c49675a5d5081bc15fc41fabdc685041ad885205632a870312607901be83627dc443571a1aab626d6ddcde86ff009bdf4c6e3de3ac1ed4db51d66407712dddc6949b27b5bbe1b017c2f84e82f6ad720d2d25862e311f0bf9588e377af46ac3623ef10c01f4394980a3225cac2f18947bb8ba676d006a2f33646cade50e16bb2bf74652f5b3c432dd9aa900fdb4a1 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: a6f7cc0b4c5e9ccd87e9905a7dc8b52a62117fcb d1698c95cbf5cc73b47f887c31d29ed7e30d94db 4c75668d33647314b4f5a5c2b9eb277507838164 ab96730345300adac1a5722372735bde20239558 8639e4a788b605284ffdfd690348aa4b923b5d1f c337c1b1c23786bd7725cdc83151850d172f36d9 7d0c309b8722bdafafdcd8a9bede0dd84e8b57cc ae20b73b68545859e6c7139fda4768b7b639c571 ad964baba88f8f84359a94cae4aafc5ca95c447d 8345136251f8ac81ea0f863c017c6f4af18c8b47 087257c1c40a010315f0ff3fa8e86252dd23e58f 556bfa3bb6b8441824a5cb58d6b663a1b950104b 301de672913eea94e2ac75f50dce83612ce1f0b4 5403a762b51a20fb1da438d4cd1a33651cde9629 993c77cf8c1334e4b95941a2e15c5aa851992a7f fdf62e1fe89f47c5de8e1c062256ac94c8e72ea3 ec56465b89396d3a281079360df1693db281585d 014c487593382658be1b96a2c6f5886e47e0c21e 1411fdcf057b6110b3e00f11b813bcf8bbd9fe56 efdb4e09 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 [20:11:65:d2:e6:03:0e:f1:ef:19:57:ec:c9:49:00:8a:19:ac:2d:ff],[56:66:d1:a4] modulus: f21e3d001f2a00cd2adad458420bf2a69f96458ff0495a63c43191fb8b03bc2b8a7c7c8c4714526e40a4a1423bd91cbb5a26b67f0e8fe7537b603f97f432e5b686898c56efb42d3c5f3277bdb121d60862d3c9a1a25a53f008658845d7be6814ca0bcb6f3c5ee9f251184b83a7acefc2030958ff7dc38622598af5bf84ead985074f32c5e2236a5847c4ef9b32760a61afd637c4b9b2f3259752f97c76ef7a6d47b8f4c70ed538b8a634f35b33c88ad065d6f6a3d70726e2f4633befca48c1060f64a8df918f35cae05f5c18b87d461d5451fdb677660a0feebfca7e369da7fd2a49bfa5d0d7498dba75637b4d5a483b17680d309464daca7a76f83b6f8be867 public exponent: 10001 ]