2022-04-26 05:12:28,626 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-26 05:12:29,753 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-26 05:12:30.759  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Apr 26, 2022 5:12:33 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Apr 26, 2022 5:12:33 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Apr 26, 2022 5:12:33 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Apr 26, 2022 5:12:33 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-04-26 05:12:33.816 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-04-26 05:12:34.173  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-04-26 05:12:34.369  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-26 05:12:35.178 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-04-26 05:12:35.181 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-26 05:12:35.182 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-04-26 05:12:35.186 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-26 05:12:35.228 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.s.a.OpenApiResource: {GET [/v3/api-docs.yaml], produces [application/vnd.oai.openapi]}: openapiYaml(HttpServletRequest,String) {GET [/v3/api-docs], produces [application/json]}: openapiJson(HttpServletRequest,String) 2022-04-26 05:12:35.232 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-04-26 05:12:35.351 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-04-26 05:12:36.231 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 26, 2022 5:12:37 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-04-26 05:12:37.309  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 9.75 seconds (JVM running for 11.852) Apr 26, 2022 5:13:04 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-04-26 05:13:27.643  INFO 1 [io-8443-exec-10] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-04-26 05:13:27.653 DEBUG 1 [io-8443-exec-10] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-04-26 05:13:27.693 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-26 05:13:27.697 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-26 05:13:27.768  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-26 05:13:27.772  INFO 1 [io-8443-exec-10] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-04-26 05:13:27.774  INFO 1 [io-8443-exec-10] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-04-26 05:13:27.776 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-04-26 05:13:27.776 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-04-26 05:13:27.782 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-04-26 05:13:27.793 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-04-26 05:13:27.798 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-04-26 05:13:27.864 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-04-26 05:13:27.870 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-04-26 05:13:27.871 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-04-26 05:13:27.875 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-04-26 05:13:28.752  INFO 1 [io-8443-exec-10] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-04-26 05:13:28.756  INFO 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-04-26 05:13:28.756 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-04-26 05:13:28.759 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-04-26 05:13:28.771  INFO 1 [io-8443-exec-10] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-04-26 05:13:28.773  INFO 1 [io-8443-exec-10] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-04-26 05:13:28.774 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-26 05:13:28.775 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-04-26 05:13:28.775 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-04-26 05:13:28.791 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-26 05:13:28.791 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-04-26 05:13:28.792 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-04-26 05:13:28.801 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-26 05:13:28.802 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-04-26 05:13:28.802 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-04-26 05:13:28.805 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-26 05:13:28.841 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: 70239808633703044135894493298894605999415857677 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Tue Apr 26 05:09:21 UTC 2022 Final Date: Sun Apr 25 05:09:20 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [31:c1:fa:43:2d:ba:af:51:f4:51:8e:0f:cf:da:a2:5f:84:67:0c:db] modulus: bca2e91082e28b86e73f895f25caa6722819869b9a076f8bf4052476ea81ccf3078441d5ef50b39f5f8ac4e9fa029350acdc4d4b62d6b75606e2b5725e59758b6107fb23b4d58a3f684669febdc2de8a51b9a131137008287f5804feb9a1b1bd115a45dbb12410dbf1083a85e9a009f4594567befb91bafea100c38313623198a2422a00da0e444e3c81c433a0da3a2e8c37e5b50262c97129ef547a40f9fe77129840f450c8f1af4055485103ad9df566e10a201ba3953b3260a2be2b72923eee62a58ca7a4dc58f815b9e98496cc8ef8d8dfcece610ce3f0f2ae755018aeb22f0921d9e3f03557ffab11d265338b627eaf398071fcbcafda7175fedad2264c79c1a0739549778bb64a092f3361c8cf193f774af689fa329ae977e7c7bd9897831321eba85f5564faf9cb36921124cde5cde1d01e6b7dd417aa5dc854ea4e381503def493a028d5f85a4f7313e839302a852b67708de2eeb1c95fa8a047c8d4470e4753f685aeb13a0cefc32d2598457b2efb19ad85d5f393485536ebb99c8f public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 3d76eed4ed63c2c67e774944807dbd2f3b6eb281 1b727fa970b1d66bf488954d3a45622546db3f8a bcfd6c3daa74b32d8d28852bf700a58d5cd00648 7fe02e1e21e06dbd162928b30c188b0735269227 cf26457bb520cf38b8428c58d93681a8d3be80cd 678b8b62bf62c2405c567338d16d31612a1a16e6 40d3a3bd1834fe0a8990be510266b026d101094d 0c6eeebf985a90dac085cb9ad77dd85ea1e7c203 ff97f0e1753295e0ef2e20c8bb56d332d9ff6dc3 eede75dd20341531e9d790ec8a190b7490295e75 8e93650073ad3b49d30c661bf6e814914544421c f8b294067248a52f12672a01a182c01d623ec161 5e2f27458e06f51d182a1df7e6f3adb0c137ec3e 5789bb0ec50ab4beb4d530583d676b79babff229 4ad3aff01fff1e9e3ca622e149464cb3824d3192 f73f1c96d4fdcba30c0572f2b58b4abf73fdc503 82eeacce4e6c09938f59b581b90da65965dd747f 66f7cb49326a00c97524f8b349b034e66cf85f6c 67f311704f60a4efd19d08fff794f63b1591185c 01aca313 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 [81:5b:06:5a:cd:cc:c6:dd:ef:54:7f:ff:47:26:77:0b:33:a9:c0:fd] modulus: a40e16cbe666c36af08a353c04c92a5326bfd9f4906fe928b376c50d0cb102fde14a591975dbd635049eb2f9a44d3fcf6820724699112f2a114d74dbeb4dc0b9bbc0578f614a7632906af314e8208575cd10e822d1dc3759413c0a56a012959d93d4fec0b557fde04fef13eab7a8d6939a1426607d8267ae1d44d67d3bfb059de0c9a3d1944aa5b54c39679d9e7ccf97d45cabec649f1ed298a1d3d1c56813119aa52f2a89660b9951b311cb48e452ecb5c6b039a23c9b7e5e21c7eee49fc391b94f275c2a3afb90672711e96765e12be1e7bc08c96a9251f1cb0feff6a5ed1ed96a3abbe26d1bb8fd044fd01685586bd39361d9828aa56a3801f3ab096c8e63 public exponent: 10001 ]