2022-05-13 06:35:33,407 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-05-13 06:35:34,782 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-05-13 06:35:35.787  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default May 13, 2022 6:35:38 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] May 13, 2022 6:35:38 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] May 13, 2022 6:35:38 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] May 13, 2022 6:35:38 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-05-13 06:35:39.115 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-05-13 06:35:39.517  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-05-13 06:35:39.723  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-05-13 06:35:40.576 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-05-13 06:35:40.579 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-05-13 06:35:40.580 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-05-13 06:35:40.584 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-05-13 06:35:40.626 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-05-13 06:35:40.630 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-05-13 06:35:40.759 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-05-13 06:35:41.459 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/]]} May 13, 2022 6:35:42 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-05-13 06:35:42.879  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 10.568 seconds (JVM running for 12.757) May 13, 2022 6:36:01 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-05-13 06:36:15.826  INFO 1 [nio-8443-exec-2] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-05-13 06:36:15.834 DEBUG 1 [nio-8443-exec-2] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-05-13 06:36:15.888 DEBUG 1 [nio-8443-exec-2] .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-05-13 06:36:15.892 DEBUG 1 [nio-8443-exec-2] .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-05-13 06:36:15.908  INFO 1 [nio-8443-exec-2] .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-05-13 06:36:15.911  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-05-13 06:36:15.912  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-05-13 06:36:15.914 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-05-13 06:36:15.914 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-05-13 06:36:15.918 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-05-13 06:36:15.925 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-05-13 06:36:15.928 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-05-13 06:36:15.986 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-05-13 06:36:15.995 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-05-13 06:36:15.996 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-05-13 06:36:16.002 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-05-13 06:36:16.648  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-05-13 06:36:16.652  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-05-13 06:36:16.652 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-05-13 06:36:16.655 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-05-13 06:36:16.677  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-05-13 06:36:16.679  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-05-13 06:36:16.681 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-05-13 06:36:16.682 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-05-13 06:36:16.683 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-05-13 06:36:16.699 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-05-13 06:36:16.700 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-05-13 06:36:16.700 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-05-13 06:36:16.708 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-05-13 06:36:16.708 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-05-13 06:36:16.709 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-05-13 06:36:16.712 DEBUG 1 [nio-8443-exec-2] 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-05-13 06:36:16.751 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 417344679915057248282312612130673491109629306887 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Fri May 13 06:33:23 UTC 2022 Final Date: Wed May 12 06:33:22 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [a5:29:24:40:42:9c:ca:c8:d9:6c:52:19:20:be:70:3e:d8:47:c9:50] modulus: 8777c6ce8753a65bd5c8aaf3d1d275f9f08ba13bada04c57909a35e2097613ad4c3eeca7e926e1008d79b6babf13485fb05e1959a12fdfaf89840a9f7cdbdf6833ebadb995d63bdfd10cb26d19d7f0bff4222d57a452278a33ecec61fb06079b7491abdbc2def1a421e81dd844cf0b2a11c957f01a606f79f8e0e5c831cdaa27cadd1fc9a327e16ab20fc068900da020338d07d749ff450a9f4109717ce50b7cbf5b46cc815ccc7f2a63a1a103e08d2888536020878108c1370950d5b5f89e66a1d8236e9bafb9824cf504f8bd7d346b328ce583013331f9b9bcb99e8cfca1f4e3813f15af20e3258862991e20104ad4fe4241edcd1931330d72171b2076bb7f8f89a205f6408d11a06268fc12b8aa87e1b327b09a216509bec92b6a7b0cf52743de1659faa1f6fc4b9b73160f34333c8b14968b635335aa0ccc75d803392ec37c517690522b422c598c1e2357f84b2112e296487b40dbe96a01c6901de80cec31004ce8e3a1525ccf0a1982ef18bb862f940475bc46fbce451713325cd6c3a7 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 0ecaa37d799b8bbdfae6f92c8e4cd6654e9d9816 80cbd5498e0687ae10496fce0a41b4e4b7ca9739 aa4b22bd0aead9c9e819e182671babe7eec709d1 22b4445956f1b573381ea667f4045f784a2552ba 1f9f89284d618f78bb5184a386cfbc49dc4ff8de e4d93cfd8d8994938e0ab1ad82f8ef2ca0dcda8b 1de5510494a9c583ce162353850a514636fe41ff 8554527cc4cd485fcebd8dba1d2c024190d88827 0965760deb1cf4a28a7c7a271d648d26050c26ff 71a1b65e19bde4f325d38dddfeee6214e13b9c51 aa160216efc561a94a8f36fefb2885d675969340 143517eef8d14534253ada51eeb8cd14f2a2aa81 f43fe53ac39faec2a444bca883321019f0308b24 a5db38a5e692b9702beed4384d7a383fd9161c1f 09a9c655326b2ad2fa83f9530548180ee5e4e8e0 3c58a6a8863aecdd5c711d56b6fc4319342d871b 8896cc37e6d0ec7e413c9de354befe53351ab5a8 3c0b2716975079d01bc48f2a1e99b7fb68ea6d4b 2cb8faac463469909b2332825bf4d81fb11d1b33 e552a904 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 [fa:36:80:1a:7e:cd:b2:8c:e0:4c:83:ca:f9:b1:aa:df:12:33:24:dc] modulus: c05d7c7fd5d06a46e0590678dda914fc47e69ae71f710cf7923958cf369f2bd2b4f4b8a97df3280acb19f7c10526b0a92a0eaaffae74a2b5f98542b532db6182dbcc970c6e4572c921485fb3689291d444ebffe3a6b46ec02b762a77b53e968b88d19304681042401f5a89df8e8d589a310cf83c6d371d13f005c42dd70df29b3dd3c08a76f5ede53c8669839b7ca1d6b763496a6f864a176d56a4fa6c6f09e5fb3187dc4babe0f143042403436c1442a7fb84bf1cf19093e4612535a03d679e8588f5dd23e0d0ebd77cca93d44065e5f68f1f4a9b9c05b35540ad107338a8491bf82ad943a00a0d093c0238cdafb5db31a692fb1885936e3e6585620eecee39 public exponent: 10001 ]