2022-01-28 00:33:46,549 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-01-28 00:33:51,348 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-01-28 00:33:54.555  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Jan 28, 2022 12:34:04 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Jan 28, 2022 12:34:04 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Jan 28, 2022 12:34:04 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Jan 28, 2022 12:34:05 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-01-28 00:34:07.050 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-01-28 00:34:08.254  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-01-28 00:34:09.050  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-01-28 00:34:12.358 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-01-28 00:34:12.361 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-01-28 00:34:12.440 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-01-28 00:34:12.446 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-01-28 00:34:12.640 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-01-28 00:34:12.646 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-01-28 00:34:13.141 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-01-28 00:34:18.353 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/]]} Jan 28, 2022 12:34:21 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-01-28 00:34:23.153  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 40.502 seconds (JVM running for 48.774) Jan 28, 2022 12:34:30 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-01-28 00:44:15.561  INFO 1 [nio-8443-exec-8] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-01-28 00:44:15.647 DEBUG 1 [nio-8443-exec-8] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-01-28 00:44:15.843 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-01-28 00:44:15.846 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-01-28 00:44:15.949  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-01-28 00:44:15.952  INFO 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-01-28 00:44:15.952  INFO 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-01-28 00:44:16.038 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-01-28 00:44:16.038 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-01-28 00:44:16.041 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-01-28 00:44:16.047 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-01-28 00:44:16.049 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-01-28 00:44:16.254 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-01-28 00:44:16.259 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-01-28 00:44:16.259 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-01-28 00:44:16.339 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-01-28 00:44:17.752  INFO 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-01-28 00:44:17.755  INFO 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-01-28 00:44:17.755 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-01-28 00:44:17.756 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-01-28 00:44:17.841  INFO 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-01-28 00:44:17.843  INFO 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-01-28 00:44:17.844 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-01-28 00:44:17.844 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-01-28 00:44:17.845 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-01-28 00:44:17.859 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-01-28 00:44:17.860 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-01-28 00:44:17.860 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-01-28 00:44:17.944 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-01-28 00:44:17.944 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-01-28 00:44:17.945 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-01-28 00:44:17.947 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-01-28 00:44:18.052 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: 365885363068091930835835487885257873538622787778 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Fri Jan 28 00:28:06 UTC 2022 Final Date: Wed Jan 28 00:28:05 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [40:6c:ba:99:ae:5a:d1:35:a0:3c:c5:a5:b7:78:0f:f9:55:61:2a:45] modulus: b3b590e33dc7920ec9732bc48f58c7d8cdbdea574fb42450b70a81580c57c913d49f3db897726026e0d838b012e7b5e3f209bcd296640cadf1a907ed43617e918434a1479620ec2c52ecc08dc5000c8677c7ce7814c49c4f62e2037bc60eb5f20ebeaab30f2141a0fd7f228abb00d999845420de5fa8e5b2a84a48eeb3d613b467159fab093eb1af1fe55e71cc17c7e8ea6cc6e3a753ab7f78a24c5c3b3b6e94fc92587c69d09c2228ce62c83a146492fcc20314aeb5fba08a665400a5467d718d1f75e007b4becb8ff5ab93b02fcd0a610bebbbc352da3cef6bb73b91bd1a500b3402d81f4a973bd416b7569e49b1e812ec547c6d540bd2233d2480500846632689869274685099d238b55da6ffd1d41545de9dbc76b68fed29c43761b497ce94ef511eaa11ea6f7d3aae8b06e82a0aa7425b8e39bead2ad26bd74ac2d0495bb18dc451a9e114b3e9654508150e8a8ac293744f8d611e518f38ae8ad975d7e21afed812b524b1575585138335bd775f3077ce665a53cc7017cde3b170fd0ce9 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 0d19a48b1552de8da865686aedc9c8a611bca0c7 c8c48221622c05bfd540f6d0b11098120592d13b b9d8af9344e75b2a1702dc47d09adbc07cbf0d6c 2715d9e0a72ea5fc90185907f9a68fae7847dd46 ef38ee8d1cfe82e9bbf6d13580bdae876e46aa5c c13d3c0abcd4e7633faa0c1bd6376a23759ca6a2 29eacbde46ed017b863ca551d6398886c9dcc671 c1a21b24be07268ea4da7d08ee44fe158ba767a5 3add5ae3c648f8c47728fd593d28ef09d79bde74 3046e51810c7e799eacf36b4a99fa2d0e84fc228 8fff613853ebac53fab211ea6843c22af8da8048 8d296590b2b824660392620d7d949cffc7aef4e0 6b9f04ecf786e448679749a26873157f94c55bfb 44a2506fa3171ee50b5ef6523c0b5c17c5b07c78 7b81521e6b7cd79818cb8f8841cbee11ef008e72 a084052d15e3a5642238f15c2c639c711e7354c4 5261c87cb7978637a4b6944fba5d3ade8762f0f8 3d63cc6873cd49ce37788914e4abe9b080dd4114 f55335c3134ce66d867f14e5a6735d6ce2934653 4396c7f3 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 [8d:a7:e7:59:82:0a:b3:5c:3b:27:a4:d7:a4:08:b9:a3:98:82:ee:00] modulus: bd0f6bf1b74b14b1926b429d422fec47596fd67ee208b8f2b28cc754c066e369666800a61005114d9a400610720ed95562c2315dbd00b00aec858303d1286f13e8e3dec30e7afb709a0ed13679feb2256a4708d65f05b4dbbb73a0e1b0032f6ea6d1ca63395dfd03b61edaa74d770b1395e8c33b5bb0c98cae7cb18d947e67f78be244797465b7e6e5bab2f95a43981fd9d6656d979506b9c1ff9e6d52076789984284ac0178c1ae51a22e903feee083b7074f09b270221920295ce6b42e0e3242d173b349f521ebd4824038aeb24d673f4bb0129d3be73b352c1d13aa76235fce8db71ed64d542986a7c2467c5d84a681a4fbfb87d512143f1997b3148e5e37 public exponent: 10001 ]