2022-07-21 03:31:46,346 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-07-21 03:31:47,293 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-07-21 03:31:48.100  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Jul 21, 2022 3:31:49 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Jul 21, 2022 3:31:49 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Jul 21, 2022 3:31:49 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Jul 21, 2022 3:31:50 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-07-21 03:31:50.566 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-07-21 03:31:50.870  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-07-21 03:31:51.060  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-07-21 03:31:51.823 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-07-21 03:31:51.825 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.CertificationController: {GET [/v1/certificate-update/{caName}], produces [application/json]}: updateCertificate(String,String,String,String,String) {GET [/v1/certificate/{caName}], produces [application/json]}: signCertificate(String,String,String) 2022-07-21 03:31:51.827 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-07-21 03:31:51.831 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-07-21 03:31:51.870 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-07-21 03:31:51.873 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-07-21 03:31:52.011 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-07-21 03:31:52.642 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/]]} Jul 21, 2022 3:31:53 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-07-21 03:31:53.562  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 8.008 seconds (JVM running for 9.805) Jul 21, 2022 3:32:14 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-07-21 03:32:34.915  INFO 1 [io-8443-exec-10] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-07-21 03:32:34.923 DEBUG 1 [io-8443-exec-10] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-07-21 03:32:34.967 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-07-21 03:32:34.972 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-07-21 03:32:34.993  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-07-21 03:32:34.995  INFO 1 [io-8443-exec-10] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-07-21 03:32:34.996  INFO 1 [io-8443-exec-10] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-07-21 03:32:34.998 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-07-21 03:32:34.998 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-07-21 03:32:35.002 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-07-21 03:32:35.007 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-07-21 03:32:35.010 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-07-21 03:32:35.050 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-07-21 03:32:35.054 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-07-21 03:32:35.055 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-07-21 03:32:35.058 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-07-21 03:32:35.651  INFO 1 [io-8443-exec-10] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-07-21 03:32:35.655  INFO 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-07-21 03:32:35.655 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-07-21 03:32:35.657 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-07-21 03:32:35.666  INFO 1 [io-8443-exec-10] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-07-21 03:32:35.667  INFO 1 [io-8443-exec-10] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-07-21 03:32:35.667 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-07-21 03:32:35.668 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-07-21 03:32:35.668 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-07-21 03:32:35.679 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-07-21 03:32:35.680 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-07-21 03:32:35.680 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-07-21 03:32:35.686 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-07-21 03:32:35.686 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-07-21 03:32:35.687 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-07-21 03:32:35.689 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-07-21 03:32:35.720 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: 296691773254258241692841805825718035444766235188 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Thu Jul 21 03:29:47 UTC 2022 Final Date: Tue Jul 20 03:29:46 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [92:b5:ab:26:7a:9d:da:ae:f9:1b:82:6c:91:0d:07:59:91:72:3d:97] modulus: afb940bc2ec9c6de1b2a5d45691e18afa267ff96586bac737d414bddbd698b8e06b42ac006bf12719c31b15005ce970e5a17afc5d28d302405b4a50780d2991e60dc3fe4b38e1022fa5f8b08c98d0064a49ba7668637afe709c35937c8ed90a81fd84718603843fde5b2d0192c2d1e2ff8ba4e0aa70310f2a73132b76d29290e48cefe073b154aba86379984915a9bc805da7ccb2431dcf1791329ea64bb6e06a5d20d1d0a2098b0150d6892ac4c338767c3981542d105a9b72be08d8058f41783c659f87c73feac0df34d3598df61819fabe23d4ae924411e3e495c36539427712a7b25e78c0ef533e47e444b749ae324dd2b7aaa6e5b5e417d8823fd117536650157e8b1fbc22647919f4a8915f1edce315f9c810d8e9a16dcd2367154af97faa71932fb61463f72e5e7342a1c0f5d1e253d4766ec19671a9971f7cd95ddde5dba1e425f6129bfdae0e1bd7171c00ca23b555ecb401b3f09c086567ba654abc23e764cdea93ae0c1a9e52fd52bf2d814c441606231c855ee59c46a42a6218b public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 3ce41f394995ff37b2bd073d8b6bbd15e3c2cfd1 4b57300617e43d263813fdd454f2498c92c34dcf 723cbb4a1461696c0c1522f0e619156f129907a2 622337d396eef0d8bdf9b6b08b672820fa6762e6 bf1494169200abf7a95de8f3fe4e66d351af9e8f a88cdc021252e5ceb19472f3a43fb6c3658d41f2 1218adc464ced6a6cd437ddbf435152fbda290b9 ffdd567229656dcb965dbbf4b95e1a28594a5319 c46a332913340800efcf75229ad4ca457c083141 8034d8a50b28dd9933417a7cfaaf24a9c5a60990 e7b1c35539854920977d6673d239f9242419aa45 e6648757ed69e21a591132c0ac809a8a5fe9a936 f480cfc620f57a3635220088bf6bdeaafbe79778 232019c315cfe0611ea1792b61b930d1969576e2 182c821e5b9e42ca33e11cd77fb6b61b29b28e05 a2b4a66385c390fe2e32f5e3c6f312dc43ac4677 9181efa4f5d39dee108822ef36263df4e1ce94a3 5e2016166642525f0bf4a21c11ff6b85100f5cb6 ba2e902616c5c97ed28196367242afd23531295b 488e512c 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 [c4:d1:a1:c6:c2:55:84:dd:31:3b:57:5d:3b:46:22:f1:62:86:47:80] modulus: d4e18ab80c320271aa7d2e927aa6ddbe8f6867f1b5d039008d1224c8db33bb871036618d3cb7bf686f253c644f2814715912ee49e6bf9d82bda44f3260993cb4b1633e51b5c1548a77b1ec9239e09671c24d7f0f970ad9c47f825b4ab316716b0da29dbf8cf21cfac8901caeb1d821ec34383987c2ba453fb9f106572bf36d18807913e4540e1b9036cf047ce4375342136a970d268d579c2285e90068ebf5dad086868b6b11ad3549d4b770ae3d74020edd4c2a924dd9996ca5b2de73cc7c6e5be69d84998b303a2a056506167c71fade3ad2d9347d602c0c6b9b6d1144617a8d270503142acf98b104b60b72e9db7ca50a6ee0d620d740507b74546c96801b public exponent: 10001 ]