2022-05-06 13:31:18,066 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-06 13:31:23,466 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-06 13:31:26.960  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default May 06, 2022 1:31:37 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] May 06, 2022 1:31:37 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] May 06, 2022 1:31:37 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] May 06, 2022 1:31:37 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-05-06 13:31:39.974 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-05-06 13:31:41.268  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-05-06 13:31:42.257  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-06 13:31:45.862 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-05-06 13:31:45.866 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-06 13:31:45.868 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-05-06 13:31:45.952 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-06 13:31:46.159 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-06 13:31:46.164 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-05-06 13:31:46.755 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-05-06 13:31:51.959 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 06, 2022 1:31:55 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-05-06 13:31:56.464  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 42.595 seconds (JVM running for 51.419) May 06, 2022 1:31:59 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-05-06 13:32:59.157  INFO 1 [nio-8443-exec-8] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-05-06 13:32:59.165 DEBUG 1 [nio-8443-exec-8] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-05-06 13:32:59.355 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-05-06 13:32:59.360 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-05-06 13:32:59.454  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-05-06 13:32:59.459  INFO 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-05-06 13:32:59.460  INFO 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-05-06 13:32:59.462 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-05-06 13:32:59.462 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-05-06 13:32:59.555 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-05-06 13:32:59.561 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-05-06 13:32:59.565 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-05-06 13:32:59.758 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-05-06 13:32:59.764 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-05-06 13:32:59.765 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-05-06 13:32:59.767 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-05-06 13:33:01.199  INFO 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-05-06 13:33:01.201  INFO 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-05-06 13:33:01.202 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-05-06 13:33:01.203 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-05-06 13:33:01.210  INFO 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-05-06 13:33:01.211  INFO 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-05-06 13:33:01.212 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-05-06 13:33:01.212 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-05-06 13:33:01.212 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-05-06 13:33:01.260 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-05-06 13:33:01.261 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-05-06 13:33:01.261 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-05-06 13:33:01.267 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-05-06 13:33:01.267 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-05-06 13:33:01.267 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-05-06 13:33:01.269 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-05-06 13:33:01.462 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: 42237790372146569832748236227500352723343500047 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Fri May 06 13:27:51 UTC 2022 Final Date: Wed May 05 13:27:50 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [20:44:f7:c5:27:4a:cf:c0:4d:43:cc:4e:cc:c1:e1:2d:a8:71:78:18] modulus: ad48f66c51ae5b506e85930af98b691691986802b95a425ef643d57a0bfbbf05f70c42070bfd8384be8af694984f9470dfa51316e2af385cd1c9aa3ecd51c9eeacdc16f72ce3b1aa72c98861fe53a2bdd17db99510009d22ffd01af7fab906a93b8983ea53d1201f73f3e14dffa5a3ed8d3f9be13b5eeaf182413a908408d379c170f0cef22d87317a7e82a089ed2af107821a53fd5822f6c9f552b18855c8f508f609ad05582168fa709cb0b84174d8ed522576d83e7993e3f9e7e742c504331527f49479c514b9d53f977c5e06dd8e6a1d7666dfb4e4f6002bea2ff3270bfae49fc4b4320b987f0ea865c15d0a3316c0f5a5d8f88533b69ae606df29f883b8ba80fddee2e6d1431f260edc381f52257f0d812696cec39222a2a00c502d29fe5e96b7173cb1dbec759edee3ef8321bd450e2c07d2c2185e9e79de9c71cd877499f1e6ef7a7083c8aaa0cab50633e48cf813837e0569337d0d88513e7777a76a1d29edbc1fcaa91a561a2eb7392ff8f7fee399a3420d57cb802652d7b6712713 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 8078554caa8ed96e5c96a7d0ed5700bceac15965 ab7f1981f3a40749f476475f2ba6002f8629146b 855a2152cade314ba02143334b1f5fc9211ed395 df9545c607b4e6765fb11dfc6eefa087d7ee5ae7 8e9d0e0d375985bc9230ad155d5df9994da121ab 603678777f6099202595018beec0e36fe228fa06 7a175bccdeb8c3044d09478c2139dc868ce2a767 96eb22027fd1614568338f07d7820fd88affbf57 77136dce605c446c38195b91a8ff797bcadff478 204605ddbde7b71c1bd8b43f9574502273ccf7ef 2b3a600267e8b91de77081d151bd4ee6eb2bc901 2fc982060efa321cd4c0249abdcd696f2e778ff4 13ebb9d32fcd9131c60435951dcca7af9716a5dc e68c35be740bb0ae9b1141764507127872cf5788 f08b8587b2b2bc55abba8ccfaa3e1f882f2b81c6 51bb06e600d4871476d892e583c0d7b2c993f9e1 ee2c21dfcf50457d74f0437d6b49b54e5049da43 7674c6dfd4e196a87a88b74a54612d3612aac6a8 ae4c253ceefb6e787d3e69530eb1644982dc08a2 94fe114e 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 [74:71:f3:0f:c0:57:b2:8c:61:04:ad:ea:9a:59:1f:47:8f:bd:cd:05] modulus: b49e45aa32b37c255f4348a2ad7a6225aa638dc53ff438745d582153526afb7dd802b478b99204d84a03e842bce6b0867cefabc518fdd17ab95d9429eec0da42fb12c6414de63b6837eb406491e621db858d7c750dd1dc190d0f2ecf4385d237d5a95504712c0feef7e5d096bf3dadea4b29cf42aeb73f35e8e2d7bc33cd27cace3d24e4ba04d3cb23c82afceca798bd9b601e6cc384db7e9c080a66a431b5475582b6f998f58c54bdbce3de43dd277f22dde4c2d68472bd239876326d6719a528fc1779115b4325b1274b39d8a8d400849de59000b77dbc09210dedb68e1a364a178f8873b0e85690593ec937880784b24a8a2078c4b84bfcd88545972d92df public exponent: 10001 ]