2022-12-29 03:20:15,115 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-12-29 03:20:16,674 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-12-29 03:20:17.360  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Dec 29, 2022 3:20:19 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Dec 29, 2022 3:20:19 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Dec 29, 2022 3:20:19 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Dec 29, 2022 3:20:19 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-12-29 03:20:19.829 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-12-29 03:20:20.119  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-12-29 03:20:20.328  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-12-29 03:20:21.128 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-12-29 03:20:21.131 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-12-29 03:20:21.132 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-12-29 03:20:21.136 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-12-29 03:20:21.186 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-12-29 03:20:21.189 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) 2022-12-29 03:20:21.315 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-12-29 03:20:22.003 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/]]} Dec 29, 2022 3:20:22 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-12-29 03:20:23.024  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 9.03 seconds (JVM running for 10.933) Dec 29, 2022 3:20:44 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-12-29 03:21:42.351  INFO 1 [nio-8443-exec-6] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-12-29 03:21:42.369 DEBUG 1 [nio-8443-exec-6] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-12-29 03:21:42.452 DEBUG 1 [nio-8443-exec-6] .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-12-29 03:21:42.456 DEBUG 1 [nio-8443-exec-6] .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-12-29 03:21:42.477  INFO 1 [nio-8443-exec-6] .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-12-29 03:21:42.479  INFO 1 [nio-8443-exec-6] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-12-29 03:21:42.481  INFO 1 [nio-8443-exec-6] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-12-29 03:21:42.482 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-12-29 03:21:42.482 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-12-29 03:21:42.487 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-12-29 03:21:42.497 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-12-29 03:21:42.501 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-12-29 03:21:42.575 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-12-29 03:21:42.586 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-12-29 03:21:42.587 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-12-29 03:21:42.593 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-12-29 03:21:45.414  INFO 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-12-29 03:21:45.417  INFO 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-12-29 03:21:45.418 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-12-29 03:21:45.420 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-12-29 03:21:45.435  INFO 1 [nio-8443-exec-6] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-12-29 03:21:45.437  INFO 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-12-29 03:21:45.437 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-12-29 03:21:45.438 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-12-29 03:21:45.438 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-12-29 03:21:45.455 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-12-29 03:21:45.456 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-12-29 03:21:45.456 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-12-29 03:21:45.463 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-12-29 03:21:45.463 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-12-29 03:21:45.464 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-12-29 03:21:45.465 DEBUG 1 [nio-8443-exec-6] 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-12-29 03:21:45.502 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 617457434319370152944918253335611381195539679963 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Thu Dec 29 03:16:22 UTC 2022 Final Date: Tue Dec 28 03:16:21 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [9f:cb:1c:af:15:2c:f8:55:72:22:7c:02:85:24:77:7a:64:c4:75:4b],[56:66:d1:a4] modulus: eff3b5edc922758c4c70a02ca84befc65b897c64cf2e13ac67f351499e3aa0b74272e8dbf3cbb5fe6c7fe96702b3576befe98e5c43922815792a1cf6f8a93a3332919ddae9ab4a0bfc7fd282f83c21f51d5048a2d2e3d3fb303d965c93f9ad8caf0d50ded30cbcc744c0d74daa4385e988216416ab39b09e9629b37d8a88cfe7d149277634bf9b4454b24bf59d80fa2b6a3460177a6805bd6a89f2eadc6a9b40bb25f1474897d8530c5fa4820798cc6f4bc1820afeea7c4b167c6c21d3542d611a6c3eb957d15572b6254e04d4ea1fc03ac452db28569ed3f578f66b33f4eb427e1c7edef15f856f58440d8805a428bb02116007de3e2ebc1dd36e3fbcf7b7ba2c0ae8614cef67930408a5cde1263630b66bdf197eeaa7eda32186c1788c69a605cfa77793eda044085a2abfdc37650255d8f256a0ee1cee11cf63f8a92dab9dda640835c0b475a8f21d2c30f1deee6c437cb85e7941b59d4ce5c66b1138d306321c459c5acac7c8627a06aa722de13ea208824922ff82d7d1d051518e4f1823 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: e2070244f317b58a5f06fc46ed159e1f5dd432b3 10ef347a5a787903ce64ca52c84f2a5973a5ce96 645e69d44956d218c4a6e115923abd83259c3e51 2323c97caf334e9ced8d4c7de10d13965669c99f 0ce1798f6789c49b53252859da6b6a2930452bb4 902ebf8f05778a42c1ce5f1e6f9f8eea77c287c7 3930b8f3880cb82babcaf087540aa9712909150f dea0c003308f49403aaec12e91f24d1d5d53caa8 6bf1e37e7c332d3ca96b9a857d8442ecdb60ca09 a35f800c63ba859b5a76b4230470e1f3e6e9d0f9 53acbc30ba38dbab2ae411ee91d508de64830398 b7306c7e20827d1987751674864d22a5dfc3cbe1 7d2e88ecf5298e1c0eafce4c7fd385322f72cf1a 2d279af291f2dea32fb50777eb64c822511b018a 9eba77a74625ed847714245dd04d4a8a3cb4f89c edfaf922da2088ca3d23de8826dec4b2ab869750 827c739d08484f12a6e7289148f3ac0dcf2926a6 57c2b968a46a45e14e7db67cfd9f1e53a6e299d9 7bb6700bc721985a0fdf3709953a225eacb5c659 8449eb49 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 [a9:db:f6:54:6f:06:34:fc:8c:74:c8:a1:9c:83:16:53:6d:f8:80:6b],[56:66:d1:a4] modulus: c84342dfbaaf54d8354923f11194bfe595669f662b3d31d555da3a356a556c4f8c573c60adaa57c59d2b72e7a943a6a00681680f14985ee3605edad6adee22c68f4fec45d517ce69b3c212345db7405801338c95d05484914d0513971e70b969fd8eb4c709a5de7bf898106818ad8dae1ad01b8bc9cf0abea26c7d27d4f94d902b844e9915f355bea0560ee780a6f6637d5e3f1475679c5dafd03460e9788d4191758c103266a0be984d88905812680c1c2cd10ff66271374540e51ff7f81a2b9f85effa02d3da0dc7ae88e91c5d847679911489a379f47a79e469fcd4489bca278796702955cf0f548804fc76d1ec8d66c3a094f878f485b78bbf3b32dd7fa7 public exponent: 10001 ]