2022-03-15 05:02:50,804 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-15 05:02:52,084 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-15 05:02:53.149  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Mar 15, 2022 5:02:55 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Mar 15, 2022 5:02:55 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Mar 15, 2022 5:02:55 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Mar 15, 2022 5:02:56 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-03-15 05:02:56.854 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-03-15 05:02:57.407  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-03-15 05:02:57.608  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-15 05:02:58.721 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-03-15 05:02:58.725 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-15 05:02:58.726 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-03-15 05:02:58.730 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-15 05:02:58.784 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-15 05:02:58.790 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-15 05:02:58.972 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-03-15 05:02:59.905 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 15, 2022 5:03:00 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-03-15 05:03:00.971  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 11.342 seconds (JVM running for 13.717) Mar 15, 2022 5:03:20 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-03-15 05:03:48.883  INFO 1 [io-8443-exec-10] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-03-15 05:03:48.898 DEBUG 1 [io-8443-exec-10] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-03-15 05:03:48.973 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-03-15 05:03:48.986 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-03-15 05:03:49.019  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-03-15 05:03:49.023  INFO 1 [io-8443-exec-10] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-03-15 05:03:49.024  INFO 1 [io-8443-exec-10] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-03-15 05:03:49.025 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-03-15 05:03:49.026 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-15 05:03:49.030 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-03-15 05:03:49.040 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-03-15 05:03:49.044 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-03-15 05:03:49.094 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-03-15 05:03:49.102 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-15 05:03:49.103 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-15 05:03:49.112 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-03-15 05:03:50.165  INFO 1 [io-8443-exec-10] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-03-15 05:03:50.168  INFO 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-03-15 05:03:50.169 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-03-15 05:03:50.170 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-03-15 05:03:50.182  INFO 1 [io-8443-exec-10] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-03-15 05:03:50.185  INFO 1 [io-8443-exec-10] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-03-15 05:03:50.204 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-03-15 05:03:50.205 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-15 05:03:50.205 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-15 05:03:50.255 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-03-15 05:03:50.255 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-15 05:03:50.256 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-15 05:03:50.264 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-03-15 05:03:50.266 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-15 05:03:50.266 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-15 05:03:50.269 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-03-15 05:03:50.303 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: 406075624737923673481282867854245571561648676894 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Tue Mar 15 05:00:33 UTC 2022 Final Date: Sun Mar 14 05:00:32 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [d1:d0:99:a2:ec:2e:b1:62:d4:db:2b:b8:dc:64:7f:03:c8:12:ab:e7] modulus: c208b17dd5fcf464142b567ca2c31c11593a0eaa046ce8d350d84851440b649f57041bdc8a71ae8db91549a0a4c271d0023673dbd0e981f1f4475cd7ad1b673f865a5db5fdef3fa9ff2498464c0cbf83631cb552d82ff39b66b51b4d2985ef38648064a6d5f84d9ec5891bb862c16cb273bbf4c7be71741ac4740437151eb3566f53495659d2d5f646e7139879760944db2803ffe37d892a602ee0f21ec454ec9ab588066ef1b8bf20db6e01d2671e4d29bbdf500e7ba1dbeddfe10d8f983f7f5ea289c412db4b768aec70b9cfa686596b19f07a5212dec9ae74ebee34b54171b6c69a48ba96581e67cbe693c1599681a04f8de31e12f0eb1512704b01d43ca7b5bdac29c6b01be445b7b6eaf0f70cb9deefc41efd41b9df807843e7da7eb8336b65bf217447e15d7c81d52f3d472c1e980a7e70843e1840085db03b9b907eee28fd9c7b264ce81ffb0fd7fce1a259fd6c66f40e0b76388100adb68015e8f5199b2e660603f0ef017116d72c90b8ad2bd1593c381242fe819fef3d62a964e2a3 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 41ff3d8fcffb307988845433fff75f243ffa66a5 91c707768a5dbb881c9c154d58264d2aaecc4531 e1243a847437a85258764fe5bf91c3852769fe97 41449be651add39cadf25278fc103c9a864bfaac 8df6d78d7c373fbbc459b42011f53b642e1c7e96 b0719d0e0721fcea65c1e642c2f74e7c9c3ade79 a67b0735c30ea5dd29d9258d545c523a995673af 21951b5197ecdb05ade7a05a064e026ade1f17d8 62ac9286b71a9edde169d2ef93ecb8f51a4e5b3f b2340cdd12584b4f053515e4fdaae872ff8e5395 bab15a9cc2f793bcce02ba547fc1ef5fe38919e9 b038ca482951bffe9bfd034a617a2c9a5a152b3f fc9dfec12a327813141b2ece7e00f177e3ea07fe 8df3be64792042bc6b76cdeb5cfce8c7fa14e9de e91cf305e60b4427cee2229da7549c4ef1ea0547 157fbe0a178c3dde6ea2cb31949704daef8d75d2 f7c437dfbb9d4a9e0f586ce15280fcebba5ccad9 71eba69130440039860d8a2de4eebc0f3a308995 0086286f97df70dd26c319d25c07be75ac7a3c15 60342514 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 [a4:3b:a7:4b:73:4f:6c:53:24:c6:eb:c5:9e:62:78:4c:53:65:b5:f3] modulus: c0b80fb375d4e4054804166144e37b15ea6d2e08bfaf17a703ce612165191f7642151a28bf5d686412b90f141c06392abbe3f7983c8a9771905728665c819dc91cf1b958c1c3b96b3b2857f7a0cc8b42db1fe423f540cdfa178fe0ce5e7b4450e7741ac384de15bd81e5f00db38d5243497d32cd4bb1a53c84db67ddc16a0d51557dd4ff72eb626f6d5143868f1a59f36a9bb0f9d4b6cac6cd7cf1954148d6932710c143bab541f7a5896b56f35274f4cd4d9465834c79361076645983e6bfa7fdb0431d1e104ccd4b07edaf606143dae124d0f8332efb7ee2ca549f3c0c0f6a712056d3ed808081046f15c153e07be098a5b7b8146d49aa0193d110e46d2b8b public exponent: 10001 ]