2022-04-21 01:33:50,025 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-04-21 01:33:54,528 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-04-21 01:33:57.431  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Apr 21, 2022 1:34:07 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Apr 21, 2022 1:34:07 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Apr 21, 2022 1:34:07 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Apr 21, 2022 1:34:07 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-04-21 01:34:09.711 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-04-21 01:34:11.125  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-04-21 01:34:11.924  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-04-21 01:34:15.317 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-04-21 01:34:15.320 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-04-21 01:34:15.322 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-04-21 01:34:15.325 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-04-21 01:34:15.527 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-04-21 01:34:15.530 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-04-21 01:34:16.123 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-04-21 01:34:21.022 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/]]} Apr 21, 2022 1:34:24 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-04-21 01:34:25.715  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 39.297 seconds (JVM running for 47.651) Apr 21, 2022 1:34:31 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-04-21 01:35:05.628  INFO 1 [nio-8443-exec-5] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-04-21 01:35:05.718 DEBUG 1 [nio-8443-exec-5] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-04-21 01:35:05.831 DEBUG 1 [nio-8443-exec-5] .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-04-21 01:35:05.912 DEBUG 1 [nio-8443-exec-5] .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-04-21 01:35:06.015  INFO 1 [nio-8443-exec-5] .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-04-21 01:35:06.018  INFO 1 [nio-8443-exec-5] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-04-21 01:35:06.019  INFO 1 [nio-8443-exec-5] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-04-21 01:35:06.020 DEBUG 1 [nio-8443-exec-5] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-04-21 01:35:06.020 DEBUG 1 [nio-8443-exec-5] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-04-21 01:35:06.023 DEBUG 1 [nio-8443-exec-5] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-04-21 01:35:06.028 DEBUG 1 [nio-8443-exec-5] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-04-21 01:35:06.111 DEBUG 1 [nio-8443-exec-5] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-04-21 01:35:06.227 DEBUG 1 [nio-8443-exec-5] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-04-21 01:35:06.312 DEBUG 1 [nio-8443-exec-5] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-04-21 01:35:06.313 DEBUG 1 [nio-8443-exec-5] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-04-21 01:35:06.317 DEBUG 1 [nio-8443-exec-5] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-04-21 01:35:07.724  INFO 1 [nio-8443-exec-5] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-04-21 01:35:07.728  INFO 1 [nio-8443-exec-5] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-04-21 01:35:07.729 DEBUG 1 [nio-8443-exec-5] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-04-21 01:35:07.811 DEBUG 1 [nio-8443-exec-5] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-04-21 01:35:07.821  INFO 1 [nio-8443-exec-5] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-04-21 01:35:07.822  INFO 1 [nio-8443-exec-5] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-04-21 01:35:07.822 DEBUG 1 [nio-8443-exec-5] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-04-21 01:35:07.823 DEBUG 1 [nio-8443-exec-5] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-04-21 01:35:07.823 DEBUG 1 [nio-8443-exec-5] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-04-21 01:35:07.921 DEBUG 1 [nio-8443-exec-5] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-04-21 01:35:07.921 DEBUG 1 [nio-8443-exec-5] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-04-21 01:35:07.922 DEBUG 1 [nio-8443-exec-5] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-04-21 01:35:08.011 DEBUG 1 [nio-8443-exec-5] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-04-21 01:35:08.012 DEBUG 1 [nio-8443-exec-5] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-04-21 01:35:08.013 DEBUG 1 [nio-8443-exec-5] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-04-21 01:35:08.015 DEBUG 1 [nio-8443-exec-5] 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-04-21 01:35:08.117 DEBUG 1 [nio-8443-exec-5] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 637140376494424531691020539470813131659884746048 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Thu Apr 21 01:30:59 UTC 2022 Final Date: Tue Apr 20 01:30:58 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [7e:a5:ea:96:01:3f:5e:40:15:46:dc:0d:32:19:8d:df:d1:5f:b7:5f] modulus: de05c7224d276512a68386ddbdbafa9309321fbcff51b192289728ec3c25ce121ed3b90b87d4c9a767f1533a7b4d05bf7d87add69a6c120dbdd538314d007a7f67f04c45d16b0cd9a397d080722e1eedc28d17b02a77545a5963db9ba4ba4be741c97b1ddf218d9703e9db8fc4f33440545514801c260d1747e9c5a358f19a2f240b018927a405f10253b5d1e8b0460d69a3b6d6449d4925f49a0b58a50b8f185511322510b5d0ffaf07e98dafe82bf32a409e808f0a6dd9b6a956a8bd50f0e70c80812e0443d477e3903ab827a78e9f0ec3495bf9c26186ee29db6479aebdab912cf0363d1111ab85f35056281654cfb555c34fbdbcf04529f70ab278d5bd2d512df6a9d56349d053b4870436d1fd00721ad07e76262931e784017c0f36433c664fe9740b48f860e432031f254d6946e7a16ddb95d37831f7fb764a9f9bb94d9ed3c9132b604d59b5f9431d2b5ff400b444edb6b8098d8571e0409566711d20532ff24933167f01a95ce61c493fdd6a2fee24280f5cfd703a776bdb3abc7a07 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 72f1055364f1b8495338767f09bb8438881497be 478078287de551d3bffeede5edbafc376887c6f0 b5d16e28009fdaca5550f9335b00de1335a740fe e50b97fca8dfc02e0a96628e7499075676d2d0db c03d38bba3294f61ca43c9ff1ac8206c9b7bed40 29c0a20c6b9d6bd6023738765d2f3b245dbbb81f 93325a8a73941d61e6a6f24a38b453dbde680faf 46f633811241437f6906fe5e3c5f8ae02b397f70 f42cdf567396dbbff15cb9636a94d3bc7cc3bb17 f2f93ff11b45ceb77ef4d85391a73d9ef1db15a6 4b1e3786122fdba6cabe45bbadd8409a29df8617 e898144503337d7d512a77c3fd9ee611559b601c 5e25778cb1b9338776d85e973d2fe168ad0bae24 4043cc29594f729487160dec0a3db177a4bec40b 9b16b5a3cead3255124754b06103815f7bab7db5 ce2e48aa22dcd625910659e75ef887ab8377cfb7 e889e89c5cc986c1f73f0cec09e8c1264fa72ab9 9a2f16c289508763d4c4cb6514ce5bf0874f94ef ad02aded138dcda763a8a8b14efe04be3826a0a0 e96a454e 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 [7f:e6:d4:ec:4d:de:81:77:57:8c:2a:a6:8b:13:34:5d:ce:1c:db:da] modulus: 9dbeda2e4f98f5415ad5520e180a313982b83af05f9d2c88edf730e7c47fef693cfe91c4a6127fb794f6812c2e3c66371bc06467093e973ee0842f475dbb99f4ebad55524fda96ace8b3a3693e87ceb81358a3ac2f91c37af3f719a8d63a5fcafb55fcaa431ba6f23f89782b3acd349ff3a5c90c9d47ee8e029f369ea277e6ce2a5546c8cf3548f59dec5f209d3c6aec5d9f97cbd1afc9974cabdd560cfc3554f1b398460323cf7c8ab3dd66a8f7b766287e63f0ce2beeb7f704afd64173581541b1d157936150586b90e3aaf2db9f791c5058a4a749f5746157fb0dbb60e6c43228f1bce75ab2102fa02cd70dc7befe684316af3c1e6892fec5a28e1fc14a45 public exponent: 10001 ]