2022-03-10 04:56:52,511 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-10 04:56:53,639 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-10 04:56:54.441  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Mar 10, 2022 4:56:56 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Mar 10, 2022 4:56:56 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Mar 10, 2022 4:56:56 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Mar 10, 2022 4:56:56 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-03-10 04:56:57.296 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-03-10 04:56:57.675  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-03-10 04:56:57.865  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-10 04:56:58.827 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-03-10 04:56:58.831 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-03-10 04:56:58.833 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-03-10 04:56:58.837 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-10 04:56:58.905 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-10 04:56:58.911 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-03-10 04:56:59.073 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-03-10 04:56:59.805 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 10, 2022 4:57:00 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-03-10 04:57:00.888  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 9.227 seconds (JVM running for 11.112) Mar 10, 2022 4:57:27 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-03-10 04:57:48.542  INFO 1 [nio-8443-exec-8] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-03-10 04:57:48.558 DEBUG 1 [nio-8443-exec-8] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-03-10 04:57:48.619 DEBUG 1 [nio-8443-exec-8] .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-10 04:57:48.627 DEBUG 1 [nio-8443-exec-8] .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-10 04:57:48.651  INFO 1 [nio-8443-exec-8] .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-10 04:57:48.654  INFO 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-03-10 04:57:48.655  INFO 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-03-10 04:57:48.657 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-03-10 04:57:48.657 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-10 04:57:48.662 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-03-10 04:57:48.669 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-03-10 04:57:48.673 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-03-10 04:57:48.718 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-03-10 04:57:48.725 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-10 04:57:48.726 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-10 04:57:48.731 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-03-10 04:57:49.372  INFO 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-03-10 04:57:49.377  INFO 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-03-10 04:57:49.378 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-03-10 04:57:49.382 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-03-10 04:57:49.397  INFO 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-03-10 04:57:49.398  INFO 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-03-10 04:57:49.399 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-03-10 04:57:49.400 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-10 04:57:49.400 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-10 04:57:49.417 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-03-10 04:57:49.418 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-10 04:57:49.418 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-10 04:57:49.425 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-03-10 04:57:49.426 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-10 04:57:49.426 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-10 04:57:49.428 DEBUG 1 [nio-8443-exec-8] 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-10 04:57:49.472 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 131337122721278735496446263389215834705069594777 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Thu Mar 10 04:54:48 UTC 2022 Final Date: Tue Mar 09 04:54:47 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [14:af:68:16:eb:7b:2d:d9:27:97:bc:a1:86:76:f3:e2:db:9d:9c:00] modulus: b4e09e4324837d8c41b89c50656279a38e483f141a3254d68d9e51e05a5fc172394620688f8a5ed6f9e945586e59afd8a026fb9a5e173e346b74a6a96d276fd6e5d40e05e0e4f32ed67920f0695512903d5b078e99febcdae897f3596ef3151e08d3fac429e0552b78230c233ab0ccfb7e1b7cd6d9f532e19eb09b343808c2f3680b438ec81b056c22c9c7527db34cad00f172ff25038ffe5cb4ee8115c530d69833623ad31b5d9204b7a1707346f34aa232bab64396129ed92185a2de6708ecdae5785ac56c8b721b8bf685280ede826cfefd2549a9217aef4bdc670bc6dd03df27a452e6ec57e43ab35a24119472350b76e4fe32d4800002d1d30badc99d2ce1a089e0922fd7df662718931d0be32ec06dfd6f0804743c7e0e179a2cdd327a73dca524a4d4d4f99d2a42bbbf018065350878b2ed491d011c57d6a664447a29638c831042c13da795a4e01af0a2ced85f4b7ad570a4ca685e6615e6c0af7671228c703e3bd7422a60f109be22ea440be4bd18dea1ee66a52d9a8284655d6555 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 3c70f7e2a332c16b199fe81f41edb57a290b9c0c 3c44bc31d54122301b2811a94af299c6bdc71eea 181a137d47b10e5e89f01a1c989ecf73ae938320 4c2b450e9685a2fb943026669c9ebd273daaf1a2 b078857d48efa42bcfd604a5c56e8718fad69817 f9c980f0ee50b5a164bbb399d238f9d598af65d5 1eda9f9a2f0edc5ba0133898c7cb313f9b11558d 2fbb1a51036c736801b5e1e69eaee1566b961be5 b5c8917638a0b79fb4a51b473c1201710af900e3 2a847032fa54589fb9e2eaaec875eff78a2ba23a b94e85ecb6710c1554b6025c6bd8c6cc7e29878d 13ac149e83fe6f6b5680c0e47e10b7669679ee0c 99a1b4e56927c76f483a4c5ec5f43d8e8ea5d500 029ef11a960aae70aae66aed7853d8e1b3bd7cb3 865cd4219753c1173076d3400f404db1597c9e01 9cb193fef2a897d6bb8abc6c5af51eb835531c90 543d286a369247cac2e42c23cd1ffa0f2af7e9cb beebbd5a8be9711334a541888da6a36a1b29fdc3 4eaeaeed8decbd14ab0f0ae83496a2f52745f20e 78b78717 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 [14:6d:28:4d:c6:9f:c5:60:b4:df:a3:5e:78:f1:16:69:1a:a4:fe:21] modulus: 9e7097327496dde97465c4ccc839832b0294dab26e7eb982397eba38767082878ef3c7372531ae5916745ddbd96f67b6116ac16588635940a2197c47fd8b30e3d74fac0e2bc46c2271448390bfa2f762f6224b3242319c7e318ac5004c04527c7088fbd72ba0b55969262f44b0a675bfc2f0c1b3195a7528cae95ba22941ec224ffa7a7ac2d358da1f7552e967218e0f6b9ad6ff029f9dc315b30f99294d6038c457d973f3b92a453b166948facae6f06620cbfaf234fe035c967139c77e3feb57b5a0fe0158b9824ee67912154c834613cce64337045cb5b998c44ee0a1cc9eae73616e2655ff614b374fcb3d2a73449e2038acf56699266258b172ee7bb5a1 public exponent: 10001 ]