2022-06-02 15:14:47,553 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-06-02 15:14:49,096 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-06-02 15:14:50.088  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Jun 02, 2022 3:14:52 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Jun 02, 2022 3:14:52 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Jun 02, 2022 3:14:52 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Jun 02, 2022 3:14:52 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-06-02 15:14:53.222 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-06-02 15:14:53.551  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-06-02 15:14:53.732  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-06-02 15:14:54.535 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-06-02 15:14:54.538 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-06-02 15:14:54.539 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-06-02 15:14:54.543 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-06-02 15:14:54.591 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-06-02 15:14:54.595 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.s.u.SwaggerWelcome: {GET [/docs]}: redirectToUi(HttpServletRequest) {GET [/v3/api-docs/swagger-config], produces [application/json]}: openapiYaml(HttpServletRequest) 2022-06-02 15:14:54.735 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-06-02 15:14:55.397 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/]]} Jun 02, 2022 3:14:56 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-06-02 15:14:56.470  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 10.024 seconds (JVM running for 12.219) Jun 02, 2022 3:15:17 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-06-02 15:15:51.188  INFO 1 [nio-8443-exec-1] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-06-02 15:15:51.204 DEBUG 1 [nio-8443-exec-1] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-06-02 15:15:51.269 DEBUG 1 [nio-8443-exec-1] .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-06-02 15:15:51.279 DEBUG 1 [nio-8443-exec-1] .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-06-02 15:15:51.318  INFO 1 [nio-8443-exec-1] .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-06-02 15:15:51.323  INFO 1 [nio-8443-exec-1] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-06-02 15:15:51.324  INFO 1 [nio-8443-exec-1] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-06-02 15:15:51.325 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-06-02 15:15:51.326 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-02 15:15:51.330 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-06-02 15:15:51.340 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-06-02 15:15:51.344 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-06-02 15:15:51.403 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-06-02 15:15:51.414 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-02 15:15:51.416 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-02 15:15:51.423 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-06-02 15:15:52.478  INFO 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-06-02 15:15:52.490  INFO 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-06-02 15:15:52.491 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-06-02 15:15:52.493 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-06-02 15:15:52.502  INFO 1 [nio-8443-exec-1] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-06-02 15:15:52.504  INFO 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-06-02 15:15:52.505 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-06-02 15:15:52.506 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-02 15:15:52.507 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-02 15:15:52.526 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-06-02 15:15:52.527 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-02 15:15:52.527 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-02 15:15:52.536 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-06-02 15:15:52.536 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-02 15:15:52.537 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-02 15:15:52.539 DEBUG 1 [nio-8443-exec-1] 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-06-02 15:15:52.577 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 541869141140759781923878480251318253817978642597 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Thu Jun 02 15:12:19 UTC 2022 Final Date: Tue Jun 01 15:12:18 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [b2:95:44:48:96:b3:8c:d4:59:d9:cf:74:78:9b:b5:34:b4:72:e1:42] modulus: 937f39724be3a15b53e0e41051d21b39a768bb5cc551022e61ce18d49d3021e310626098e582c8b9de0f5bd9b6fa1031c95d75b1a12f3e1c11a740579276f9f744538a810adfea515fb344105f59d05d58ad225a2de185ac905fcb67d6370902b0b1e003b54b565e9fa3d91765ba8ab6032e8ed1020ff72169cd20fad9ee1ba63aa3ef30df8be82546466b3adddf6be77575d35eed1952d6756a33a243268c4e1c6331d92da6704fbf0dbe85e68bf73cebed1e4217091b186d157f8d1eaf3269b1162ed1d127913e0b039031b55fbaf006791d6bd3d1c280a5ebeb4d33af176d25f5e62f320682af36adbd4d449598aa84644b2b120c2cb8566791d0b665907d2a51d20cb1e8c1b6523c532affeb231ab601acacdeaadbb7d3f5e708b557be4d29aa4ac4b07ddc7d9c4aa02896a38db87b812413153ebad4c6eb5d9251d0caa8a34ed099eee1bfb6e33207243ae3c522c2f2ccac8c97c813774dd1b65d5dac85a22cbb0fa6a63dbdd4880e6cfcb8e356c8398480ae14916b6dd7f23b56090889 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 4d3aaddcece3a8a193f4322515f46b6ca07b190b e645cd695bbe0cde4f353c2536dc4a9ba8f69ab5 4cc27ae6aeaa243fd4eecdcf2dd77ca2739cca11 59f07ddf22ea2c5368e2e5d927d768de7ff397d0 a0be8c69df8bcfd6bbf2aa722af526858d175043 0432bd728a65ec5d7d1fdfd95d92d087f42a44fb 537c896ebbbb104b18c03238792e1924c9cd6165 d9d8ff198ad50921bd695a3c1b85211d0e3f5618 32867bec8bd4fafde93cdab7e5082b936bc4e3b4 cade6c5e08c8cf56b4b23cd9871343245ed395df 112b8c6e9b0db4459575082cfdec2c8690530a3e f9cd4baa26131dc7e28b33fc68d422c65b240dee d39a17f267019709c5d934462daf0203b0336eee 1882b6a34ce55770745def1eab8ddd96247abd16 b0cf47f87c6db3b205ade2e51533271f49f8f812 b8770f6cfb098ae17ead28d9cedccbb67d520b43 e1223fe4e66aa0e55a1d43e8b96e896994c206d8 bd6d843891fcf5623fb3435e2a08d4b36160b163 91e6a59d5869415c626263792dd8bba337bb75b6 c9302995 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 [32:93:8d:17:1f:2d:b2:32:c6:71:a3:fa:5d:81:38:02:54:17:6f:d5] modulus: bd38af0f147710831a0daa05143dd500e060b32f17b2979edd97bc7872abf1abc388458d807ceeb2416e1996b1f0aa5728e4fb0001846eab7d94a40a9c0a489833860cd0419b95fc342458054d21ab04ba99ddfc955a4a2afe5d2d5c262a23e7eef75c14eef35deaacc060fb94fc3efdf008ac37d8f1e0f68b67b52be327d59bc577b8403213b1b893c56703c6d2ae5ff99354ff417645abcafbfc77176619507ecb07abc44d125594268525931bb76c8c71a63baff5436720cbca0fdda610e8f687e73456465e0ceb5cb1dd81af101cc9786c447c82a9ce17e615e0611593a70310290e8e55cf99e1fdd06dcfb3bb13cb06989808ac860c12a8ee7d8f358aa5 public exponent: 10001 ]