2022-03-29 09:27:52,672 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-03-29 09:27:53,637 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-03-29 09:27:54.407  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Mar 29, 2022 9:27:56 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Mar 29, 2022 9:27:56 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Mar 29, 2022 9:27:56 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Mar 29, 2022 9:27:56 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-03-29 09:27:56.926 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-03-29 09:27:57.241  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-03-29 09:27:57.398  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-03-29 09:27:58.048 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-03-29 09:27:58.050 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-03-29 09:27:58.052 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-03-29 09:27:58.055 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-03-29 09:27:58.092 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-03-29 09:27:58.095 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-03-29 09:27:58.210 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-03-29 09:27:58.663 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/]]} Mar 29, 2022 9:27:59 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-03-29 09:27:59.528  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 7.638 seconds (JVM running for 9.309) Mar 29, 2022 9:28:21 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-03-29 09:28:38.365  INFO 1 [nio-8443-exec-2] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-03-29 09:28:38.373 DEBUG 1 [nio-8443-exec-2] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-03-29 09:28:38.411 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-03-29 09:28:38.416 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-03-29 09:28:38.436  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-03-29 09:28:38.439  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-03-29 09:28:38.440  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-03-29 09:28:38.441 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-03-29 09:28:38.442 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-29 09:28:38.446 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-03-29 09:28:38.452 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-03-29 09:28:38.455 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-03-29 09:28:38.496 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-03-29 09:28:38.501 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-29 09:28:38.502 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-29 09:28:38.505 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-03-29 09:28:39.255  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-03-29 09:28:39.257  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-03-29 09:28:39.258 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-03-29 09:28:39.259 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-03-29 09:28:39.270  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-03-29 09:28:39.271  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-03-29 09:28:39.271 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-03-29 09:28:39.272 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-29 09:28:39.272 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-29 09:28:39.284 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-03-29 09:28:39.285 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-29 09:28:39.286 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-29 09:28:39.295 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-03-29 09:28:39.297 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-29 09:28:39.298 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-29 09:28:39.300 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-03-29 09:28:39.333 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: 645398843135762116173089517280373340034327227025 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Tue Mar 29 09:24:27 UTC 2022 Final Date: Sun Mar 28 09:24:26 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [75:7b:b3:8a:f1:11:bc:37:95:7d:ae:fc:64:ee:3d:42:a8:f5:5e:d5] modulus: b123887704fda31144d4fb471ad0057009a53917c3cac949878851504afcbe973f4b1feb05d74db9add6498d7b8eeff79946cdfbb48d7cba81f90be4c3e4d4981939eda8e6d2e775f639feabf4ae7de99b363e7fa287eedee87658760ba7d8f4091f22c3a15af1d0de348ae59345ed5559c1025a9778d212dc1eb9d0c02640693fc7117bcb32d609adf92a258ab6ecfcc1ed57b34002ae3332ab446b264386a447f8b66767bbb1eb653b62e35386a19168a56abb85709b69b097ba809aafe235a8a038069d1bf8fbb047a8477d6e291c4b13496e79f07237bd32f3a38176e5c03e9744416a43259ce234db857ba3a2491b4b836db25d8ecc3d90ad249d128d8ded1629ad3f31fc2b0df5dc636bd64fa12db5eb03bf5e1f3ebf4cd8c29c65a685a105ddb4d45918d73fec85ac91af4904ef509d09aad0e7eade539956123bf99c0fe7a05ec22082b1f3c641780e7c8214ab0a88f92cca4c3d04fdef659a6f288eb913f82003e9764a40905ce27cc4addade3e7bd42e3a03365a6e18d8be1e6f3f public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 1dfc1e51139dea2d9481c719d0270d3e672b75e9 a673778179c060b68e67c554df8f367b809fecd7 fc6bcec05119ba8c05fc800d0e18c77d6cd4b94a c8c667e34f98c4a0939678e5688a35e862064d7e d460424858444cb48c267cd8f61479a910803595 3fed5cb370f70a849624b446391054d7afdd8596 5a7222f858caeb595e3c7433c911834c3cfbee51 7236eeebfb488a470b7605060d210bfa743c0cc2 542354ccbeb76f3f6b5b9ecfc240981954cd6726 b24e760d1d5ff56cb977878f63c6722292286ab4 2311bca7ee38ca01c983bf7bf73cbedbc620785b a60e6223a5c4dc54ba61508c63cd2b4709438571 348c55057779bef01e7b72368015fda1ecccd557 c553064cd0b7455527f074f2e1dc92b5e63269b5 ee5f028a695c641d918686db64fc86bfd43fa467 3a0bb9a299ab35f7960f0bf7f7cf243d1d9772c0 d6c88d91ab950751f7cb1a21619a732f71e97704 59a9efdd52c8732cd4a68f35daafb12191339879 43327bc29d742c72e9e9ff20a077506013335ffa 6158626b 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 [3d:f1:c1:18:c6:67:35:7f:88:a3:b4:d4:05:35:60:5b:3f:d3:8f:c9] modulus: 9e23fba604086d44d8add1f49671463083cf8ca5e504d85d5db3b518e45e0aa981561c7c9ac68a1c79518d7a7e70d52c3655781069c936007782a611a3e09c92605339a4e0ca34482d8a3cbcbfe62112b1fda9396e565aba1404bc473e4d998e7fe2987f345a8f165fe0ff5f6d8b8a9330605e6c6271d9861d41da30eedd28ca456b5fc8058a003ace08843105fcf9102fd7e6c98c691ec7b45a12a90d8b82f37b971dc1792d970075b75566a9d210677a771e13614cde8e7d8a55400b53242f83951436fa412c512f85a1aeb3157ba5432f47ec1ad6f75465f6b5f43b37f16ab816fa92a54cc787b5fa435af22127e1c9d386b2aa8e2cb35774e6839c201705 public exponent: 10001 ]