2022-03-20 12:08:05,447 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-20 12:08:06,254 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-20 12:08:06.971  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Mar 20, 2022 12:08:08 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Mar 20, 2022 12:08:08 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Mar 20, 2022 12:08:08 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Mar 20, 2022 12:08:08 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-03-20 12:08:09.127 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-03-20 12:08:09.431  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-03-20 12:08:09.568  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-20 12:08:10.209 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-03-20 12:08:10.211 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-20 12:08:10.212 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-03-20 12:08:10.215 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-20 12:08:10.252 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-20 12:08:10.257 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-03-20 12:08:10.386 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-03-20 12:08:10.955 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 20, 2022 12:08:11 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-03-20 12:08:11.789  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 6.958 seconds (JVM running for 8.515) Mar 20, 2022 12:08:35 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-03-20 12:08:55.820  INFO 1 [nio-8443-exec-1] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-03-20 12:08:55.827 DEBUG 1 [nio-8443-exec-1] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-03-20 12:08:55.860 DEBUG 1 [nio-8443-exec-1] .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-20 12:08:55.863 DEBUG 1 [nio-8443-exec-1] .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-20 12:08:55.876  INFO 1 [nio-8443-exec-1] .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-20 12:08:55.878  INFO 1 [nio-8443-exec-1] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-03-20 12:08:55.878  INFO 1 [nio-8443-exec-1] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-03-20 12:08:55.880 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-03-20 12:08:55.880 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-20 12:08:55.883 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-03-20 12:08:55.889 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-03-20 12:08:55.892 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-03-20 12:08:55.927 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-03-20 12:08:55.932 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-20 12:08:55.932 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-20 12:08:55.935 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-03-20 12:08:56.537  INFO 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-03-20 12:08:56.540  INFO 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-03-20 12:08:56.540 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-03-20 12:08:56.541 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-03-20 12:08:56.549  INFO 1 [nio-8443-exec-1] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-03-20 12:08:56.550  INFO 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-03-20 12:08:56.550 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-03-20 12:08:56.551 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-20 12:08:56.551 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-20 12:08:56.563 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-03-20 12:08:56.564 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-20 12:08:56.564 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-20 12:08:56.569 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-03-20 12:08:56.571 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-20 12:08:56.571 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-20 12:08:56.572 DEBUG 1 [nio-8443-exec-1] 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-20 12:08:56.598 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 685824091853898834047606235096188060483681731050 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Sun Mar 20 12:06:01 UTC 2022 Final Date: Fri Mar 19 12:06:00 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [3e:16:0d:b6:7f:de:56:94:50:87:7f:17:fe:26:a7:2c:0c:5d:76:56] modulus: e1fc61397bb73c264d2097dae737a95cd4b6852a3f6d0221ed51b2070e979f8b05aaa5de1656fe832caf2310ea8e8f3eac2f975f76a61edd0838efe7b5d60fb53214c893c58f173938b04d808e82faa8644b0ba2bce66c24b1a974eabb80ac78ff02a611cdd089da27d51f4612ce2825256cd57dc6c271388866fbe9c5f6fb6baf93340b2f1bedd264cc485af38f5c138e5fd94398870b15ecc5d31464ce60875a671a9a912af6c8492cbaee1fba7f59553ed0e307235ae73950a2dcb78af74f3db6234fa0276113e0f254bfe7cc2616a80e5f6aa27d605062cf54de0bfc4f7115e99f8fd18bca1ac1e867151b77e9c77db226f08a06b8751cc29cbe029325f53e1ee67d8ee8edee0dbe44576e79b5a7b14e036a329690e480bacb2783b2ecabba318f11426dfa3cfdb13455cd42461bc002f53ed2d872921f07fdce4c6daefb21d4be1b36adfcfb43691a3afb5c582197700557eb3fcc1e1c21ea9ef44e5c99be4144d86395e69e28e2b51b5b6dce81998acecf68bdfbb8d3d060d764e9249f public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 69ff7733cd07e3651863d32ba25fcca0d18f37cb 73829acafd8db65b2302ceeb43b68739d27d407a e5e91bc088a35d4a6645e5406dfd8f01a3a50875 05f514ce02436f2b08000224a8de59fd5da1bb38 3a7b6a755c4642ea4bdbc0d57b4559ed65e549f1 b70c86214cb0aaed841420e8e1d2f3b9a37b9565 30dc926a39cbe50ff7bae9d149c1fb604e47ac23 50e398e3fc24b30f3ba91a4aa3665ff0fb7d9957 2e0ed3ed16e61624f191cee2fb8e6a88c20b99bc 2c5d12d775ff4b893e070f23a3618093476abd1b 7c7c427371e72e85e61a270741fdd84ca7d427d4 cf953ad8e8658004b09f44ab9901dec09d3d4752 d74ee2b8e684286397750086ed8adcd439854f25 a86b9a74cf9571bfe4b0028c8bfbc538dfa0e570 6df20de7fd8e05284e0291da9fec4500b3d1c5e6 c19f8cd78fed0487a09b463c07d41331310e71a8 31c6f5aed6c11e19d0e0343859c872ab29252e60 fb9156825f209e8116761cafa0ab7c6da7c143e8 25af2aeada2a8b7982a1b373415350005147d6bf 37adb46c 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 [38:3e:1a:ef:34:5a:dc:74:bb:8d:7a:97:e8:d4:3b:7a:4c:22:01:e9] modulus: d90a533b437926f3339c0350e6ec260fc8f01af7b711304a8830048f9373d009c71439640aa371f5ef457f48c7d87efb10e4afbd9c29493f10d01140753233eba05029c0159234ecf37ec4b06439be4486b6910d8621caad5c01e17821fe978fba22b9406f07ad0bb7d593e1d1ccb022b47367b2abc722e22fdaf29d7ed9b8aa5e7a8b762aa92b5305a26a7c677139e61b84d274e0a71392a99d071e65a8a143be6b34de0ad03b78699341687b03d07284fd84e53a3c447c3563a3ae9b8661d35adcd8cb61ad0a899dca8c1357af9a926288e2a8e2476d5eaceee8a61bafbc03601e66875c3b6140647b38745b5362c34868b18ca56d562083a690e02493f0c7 public exponent: 10001 ]