2022-03-14 09:46:40,962 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-14 09:46:41,914 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-14 09:46:42.783  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Mar 14, 2022 9:46:44 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Mar 14, 2022 9:46:44 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Mar 14, 2022 9:46:44 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Mar 14, 2022 9:46:45 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-03-14 09:46:45.728 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-03-14 09:46:46.081  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-03-14 09:46:46.278  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-14 09:46:46.967 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-03-14 09:46:46.969 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-14 09:46:46.971 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-03-14 09:46:46.974 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-14 09:46:47.015 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-14 09:46:47.018 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-14 09:46:47.161 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-03-14 09:46:47.885 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 14, 2022 9:46:48 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-03-14 09:46:49.024  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 8.884 seconds (JVM running for 10.963) Mar 14, 2022 9:47:15 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-03-14 09:47:35.621  INFO 1 [nio-8443-exec-6] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-03-14 09:47:35.633 DEBUG 1 [nio-8443-exec-6] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-03-14 09:47:35.686 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-03-14 09:47:35.692 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-03-14 09:47:35.714  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-03-14 09:47:35.717  INFO 1 [nio-8443-exec-6] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-03-14 09:47:35.719  INFO 1 [nio-8443-exec-6] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-03-14 09:47:35.720 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-03-14 09:47:35.721 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-14 09:47:35.726 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-03-14 09:47:35.734 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-03-14 09:47:35.737 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-03-14 09:47:35.782 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-03-14 09:47:35.787 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-14 09:47:35.788 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-14 09:47:35.792 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-03-14 09:47:36.408  INFO 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-03-14 09:47:36.411  INFO 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-03-14 09:47:36.412 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-03-14 09:47:36.414 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-03-14 09:47:36.425  INFO 1 [nio-8443-exec-6] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-03-14 09:47:36.426  INFO 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-03-14 09:47:36.427 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-03-14 09:47:36.428 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-14 09:47:36.428 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-14 09:47:36.445 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-03-14 09:47:36.446 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-14 09:47:36.447 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-14 09:47:36.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-03-14 09:47:36.456 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-14 09:47:36.456 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-14 09:47:36.459 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-03-14 09:47:36.489 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: 48450463556649824090176662094570972139298406665 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Mon Mar 14 09:44:49 UTC 2022 Final Date: Sat Mar 13 09:44:48 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [f8:97:fb:c2:01:a2:a5:33:09:d8:fb:13:30:1f:c3:73:d2:69:b1:68] modulus: c6d61e93c046f3e55ef8cf7c7bfb1c3ff7e1202664c3489f950a2ea0b8a14989b23da4678f41e60e55199bac9d474926d927067ce7e381751ea5a42ef6115243a9bfab2f2a24429ee9bfdd3237e2980d36b6abe66c8351a0e8bcb0cd104a7ecf002319e64820d7d64c2ef39bd769f8e169cee9540d581bfd3b97f7edb4412e68c71aa7f81b9d5597937747342432ecd6469c05fa255229479c94fd9cf9c01a4ecdd67a15b087edb796cb14160ec770746e718da68ec47d9b2adf5277e8f508e24a7c791977a2f1d1f304ae80ac8a7c8abc96e3fa99119d98ae4c7d70897b9cb2f3266e79ae10d69f654b75d00b510f777e66fc1183c75286b375619f5336ed1bd296634269e4f44d9ce01c3d59f3b1b41665f7035a18047518b54918d50da5a1737d535a4c2156e499d077129c9987113934b2c960cab814c5aa8eb5bd4949aba9c70a17ae490168b87d1b0db3ed584567c9df06b757d7ae8178af6b7c4d494826b4cb08b9d0b30e8a8cb83ed3c6071ac4b1354ae3685fe69198ae0e4abd4d5d public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: b3c3be7be2d3bfaa2dae22493b07f33fd69dfef0 f6fda484cddb96a381af0ac7bed8bcaecf8d4a77 ad530d7926ff5f4ce5003fe0adfe7878d3ecd4f1 ff3beb34a21b29cdde9fc8f2172abfd0a2d9191b 62691e872f91466b54b8f337ef818af178fd82dc a4bda12be1ecce891cccfd03e0d88a7e0de3414c 08be007066176c271151686e220af7d61e11b5b2 c600cc2e465475e8aabdb5ece54a4b0c01f35356 bc5f2cdf2716d9de17595f4db1c2c822c853f635 1f03e86e71894984976e6ad09e2c38422e5e80a0 aa192ee5d460f486a4e2e53834a9abc609b5314c bd2fbf0bec79d06c507e5e807dfa4b328dbbee9d dc03b28bc7db71b1912f00ed2a03d40309116a6f 67e7b0df241306a39d11c5d859219b4dc7554006 d7e81f09726167263d7d83ad52a99b22a92009a1 f44b2332865d90f46ec0f344406c1f96747647df d7df72193eb6464497d0abeb1568103b68fa3e05 9b7d2ade517f679ee68fb83fef2054f5a9fa9467 9318f43ce5ea7480a2b5a30a0adf26fbbd358127 75025729 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 [9a:b6:03:c3:53:f3:04:9e:59:5f:80:5b:ab:57:32:98:e9:03:8a:95] modulus: e1477c72900bc6be10158e5a3a0d5301f185324f7d5bdf22e17c045f1b6f39f78e6eaec8417a5a88c42c2fe2b393f4fe1b6ba8076232c99e7f9286dd76baafacb327b8e809bf6a08bdcda9973f0ee83456bf64e4109fc647d1b5ced56eabf21640aaf45f12f54f7e6b8780d866107b58298f2d14ccbd88a285ea00c9a28c362aae81f37a9bf99c81ea67c751b2c2baabcc1f9d7c7f7fe7b4e3dba8bb22af25a4e10ab1235bc9d8f7e329cfbbc78e2b948669bb271c7ed4b8fc289a1c6eda9c687dfa5a62bc8d03307ae3bfc063840523a0a64bb3e1da78347ededcdfb65ccdd02419ef62739a04c6e44e063052bd31dba6089da61e4edb62820fa9a9f4c49ea5 public exponent: 10001 ]