2022-04-10 03:03:49,595 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-10 03:03:50,539 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-10 03:03:51.217  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Apr 10, 2022 3:03:53 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Apr 10, 2022 3:03:53 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Apr 10, 2022 3:03:53 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Apr 10, 2022 3:03:53 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-04-10 03:03:53.652 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-04-10 03:03:53.970  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-04-10 03:03:54.141  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-10 03:03:54.851 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-04-10 03:03:54.854 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-10 03:03:54.856 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-04-10 03:03:54.862 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-10 03:03:54.908 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-10 03:03:54.913 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-10 03:03:55.049 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-04-10 03:03:55.557 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 10, 2022 3:03:56 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-04-10 03:03:56.503  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 7.667 seconds (JVM running for 9.457) Apr 10, 2022 3:04:23 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-04-10 03:04:46.331  INFO 1 [io-8443-exec-10] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-04-10 03:04:46.338 DEBUG 1 [io-8443-exec-10] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-04-10 03:04:46.375 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] } 2022-04-10 03:04:46.379 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'} 2022-04-10 03:04:46.395  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] } 2022-04-10 03:04:46.397  INFO 1 [io-8443-exec-10] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-04-10 03:04:46.398  INFO 1 [io-8443-exec-10] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-04-10 03:04:46.399 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-04-10 03:04:46.400 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-04-10 03:04:46.404 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-04-10 03:04:46.410 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-04-10 03:04:46.413 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-04-10 03:04:46.456 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-04-10 03:04:46.460 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-04-10 03:04:46.461 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-04-10 03:04:46.464 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-04-10 03:04:47.320  INFO 1 [io-8443-exec-10] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-04-10 03:04:47.322  INFO 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-04-10 03:04:47.323 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-04-10 03:04:47.325 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-04-10 03:04:47.334  INFO 1 [io-8443-exec-10] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-04-10 03:04:47.335  INFO 1 [io-8443-exec-10] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-04-10 03:04:47.335 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. 2022-04-10 03:04:47.336 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-04-10 03:04:47.336 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-04-10 03:04:47.347 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. 2022-04-10 03:04:47.347 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-04-10 03:04:47.347 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-04-10 03:04:47.353 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. 2022-04-10 03:04:47.353 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-04-10 03:04:47.354 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-04-10 03:04:47.355 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 2022-04-10 03:04:47.382 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: 445513826418711762560157680367886515955806925775 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Sun Apr 10 03:00:26 UTC 2022 Final Date: Fri Apr 09 03:00:25 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [97:23:39:1b:65:54:af:20:a3:d9:96:8d:8b:9a:11:ea:5a:60:cf:11] modulus: d69d81ada10f964469ad777ebd6906405b98930ec1e44986180da35af38648a8d5f3d5c6633dc0e450defab28be996e8dfb26ae60d35aa7eaec1f68a489144b749a26455f5f6a86363431b3c75637e46e1fba4d34cb42abe642406af700145fc1ca39ac5afd709561af63b952ade95ee31a5e0f5fff75abdde3b2e09674c7ce4aa7860a8c08efb2d36d62fad6e7c73d853ce3f720946978a671a2eb38ea7914cae15316384dc00d53df204b9d8f83def4cb2bb72526a7549b53e31c4aba27476829a01d2a20a868ed9beefcc09eb813d9ae81ad0b0f46be676600c605fcd0b14e0313811c865f60521650e83ea97d8a13bea269fa1bd1d57c2052c17698be4181e884dfc19b3542704d03dfa4de160899179e473596cabb7d55bdd28f4e96bf6e67e0119f4aa5b74496076e81f58ac8b2a84f838c7a5fd12feb3e900787b4c3bdb21178cd9caccb4a13b26c0927328a90f9a3326777ba5fdcc1f35fac58c9152dfccb6334d2ff230ab46ead38b36f9f1d3ac38304b0420dfd0a89cb87fa50503 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 40d8127be7213a50393779bfbef0d7d1c9fe6863 efbdf0a8fad737434c3c9a745a60ae5ababfe96b 56c78585b1fb3efaf2bff58afcdc69b623521050 a1fbfd2145e8e2f561f827c744e535db97f7f9df bc3a573df3830aeab144263937bc12db08dd426d cb82f3c09d44fa44fc8538919a4e38ea89ce8b3e 95f51acd5f92d202ee80eb3c568f918f3e2714a2 64dd1779bb8a8cd5ccb937a02350e50306cdf706 4eb636d21d07da50dab247ce2d5a9b4fb626d44f 567afaf2605160fb46838ac1c1107f46e36987db 92479b584df7e8ae58c28cd2885b65d9e83ff12c 7176d27a15dac255260716fe5606f5306e529b1b 71187cef17a856947f200addc3f8cfe79ab94a8b 436b930f452ec60a61f14f634e1f317867dfc7bc 4ffa87a1300da289656430392b0dd384e610256e 41a1da65390e54dc14f47a5f0daf3ae6d8a649d2 41fb88a876aef79ca983e148b29287b8ee5d812e 4879621839d962f48c93afdc385709df4a7cba41 0c6d348816ddd21def5f90e0e6c4ac95a1693596 9e835745 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 [f1:ad:5b:01:a8:e4:5b:78:2a:a9:7a:90:f1:c1:9a:26:6d:de:eb:49] modulus: d94d2ee0f9a638d1dfefaeb38e8e7dcfea8f79f3424c850c6d998a15be0936942386b3cfa9c8105e36236df3066bfb7e69e8cacfa643c5ec303f0c54f3c4ae8ab420345da7d7e6baa98626a226bdd61e8a6c4e6cc639ce943a4657a87ad4f008cdc1dba1c63acaf80db07891cc3596b502b5339991bcdae3e0a7f4ad8f2619a20c88a4ecdefd1814d7417de24ddc96ee9b53bf224b9ff56e97e55e4a7c79ad7a6914efddbebb794cd2fe58210510459473c1b856b50a29e91984e5e02ad37d80181ce025463ec551fde109308fd244ef6f615d03629c3d586b1abc694dab14dffe8ae054f2b2886dce0cb19338b6727530e05f8cc13e42e0347bb08a5cf9e56d public exponent: 10001 ]