2022-02-12 12:05:38,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-02-12 12:05:39,219 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-02-12 12:05:39.798  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Feb 12, 2022 12:05:41 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Feb 12, 2022 12:05:41 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Feb 12, 2022 12:05:41 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Feb 12, 2022 12:05:41 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-02-12 12:05:41.786 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-02-12 12:05:42.041  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-02-12 12:05:42.181  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-02-12 12:05:42.764 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-02-12 12:05:42.766 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-02-12 12:05:42.768 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-02-12 12:05:42.770 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-02-12 12:05:42.809 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-02-12 12:05:42.811 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-02-12 12:05:42.923 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-02-12 12:05:43.404 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/]]} Feb 12, 2022 12:05:44 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-02-12 12:05:44.211  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 6.298 seconds (JVM running for 7.656) Feb 12, 2022 12:06:11 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-02-12 12:06:43.732  INFO 1 [nio-8443-exec-4] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-02-12 12:06:43.744 DEBUG 1 [nio-8443-exec-4] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-02-12 12:06:43.781 DEBUG 1 [nio-8443-exec-4] .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-02-12 12:06:43.784 DEBUG 1 [nio-8443-exec-4] .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-02-12 12:06:43.797  INFO 1 [nio-8443-exec-4] .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-02-12 12:06:43.799  INFO 1 [nio-8443-exec-4] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-02-12 12:06:43.800  INFO 1 [nio-8443-exec-4] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-02-12 12:06:43.801 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-02-12 12:06:43.801 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-12 12:06:43.805 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-02-12 12:06:43.811 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-02-12 12:06:43.814 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-02-12 12:06:43.857 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-02-12 12:06:43.861 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-12 12:06:43.861 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-12 12:06:43.864 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-02-12 12:06:44.415  INFO 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-02-12 12:06:44.417  INFO 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-02-12 12:06:44.418 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-02-12 12:06:44.419 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-02-12 12:06:44.427  INFO 1 [nio-8443-exec-4] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-02-12 12:06:44.428  INFO 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-02-12 12:06:44.429 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-02-12 12:06:44.429 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-12 12:06:44.430 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-12 12:06:44.442 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-02-12 12:06:44.443 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-12 12:06:44.443 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-12 12:06:44.449 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-02-12 12:06:44.449 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-12 12:06:44.449 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-12 12:06:44.451 DEBUG 1 [nio-8443-exec-4] 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-02-12 12:06:44.478 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 342956678032111958156146998755492717874059351301 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Sat Feb 12 12:03:55 UTC 2022 Final Date: Thu Feb 12 12:03:54 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [07:da:c1:5b:ab:29:1d:7b:46:ba:7e:61:27:73:d9:08:88:e0:f5:73] modulus: 9c7476775127423b453d8994cb487f4920132e66e7ea24beb6c85c005582dad75ae5f31a36692a28ac59aad0f860aee9009a9b53d3bbaaca55f6785e70e81b8198a68f9f87916288fe55c75f9724501a5cfefc99974dc480df09b2656a960d5577b640ce4b67d4e72eacfbaaf569ddaa1bf02eae0ae86aec58f807add3f7bfcae29e968eb995689001c81eef98b31c19ac1ef87b36c39cd83f9f29e0f8e1861de7cfd6124013a5c5ff7722c034809bbd9d8104fd492c468aeacc3ac10a01a3d4c835bd50f3e78a782a2e8e4119a5975a3d249baff02e73a8f6b7e6b1a0abb2bf35e821804a4c98d963d48515e462060412f7758275bfe615ea0147bcbc6feb521809561a6627449d529eb9f6bf9b5658ceb5da63058ee21926889e51da3543041cb531f6d9e71b2c872ee5aec0d8466a73f862441509ccdd46e3aa23702b27dca41c76548c4f2049972c12fcbf964e1d3b1de0e73673e0cfc226b0284c0f62ddd152af92b028bfdcd88305b3ed1ae4d4c51c4cd6daa0f578d435fda78d96d151 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 086d693d36445d79d9b0411715cedf0a167ccf68 8d495402685d419b4cf7bb9ad1f7379fa026de77 945d14bc106e171bf840d04fdae527d1e9482afc b3de8b647c61ab1db7e61802f5010206d144511a 0f1f41cb7666798895760f585ee779f7f9416d70 5d57a287c656bc1d282f4ee1deb8d886fd2e6601 a2987cb862d6e28dc58396ea735c9082f521e5fb cd36ccff4a64aff8ae02a0079298743b5f37fd70 eef4b0669c8bbc15815bd0bae17ac62dc3f76ef4 d4a28a6973970f7eeaf44692a7f1bd2159e38f6a 9758816e3844d52219758bfc0c2f14bcc4350950 d78f57a43a6a92887c20b98d1b7f6473cadaee30 3b9032645fbce2becfe73cf2e03d03993ac01510 31e6dd873d562bac2a804e068d3937c6790937fd 080c835f04d1eb36a57a86125a06fbe4aad5cfd5 2a41dafb78b382071724273d909a50032dd9168e 54b5313b9c5da77d233654a573d0fc2bc851f590 d772b2805b8bcb17002c2b22fec8ed9787b7f35d 7494c02d306dac32214c58de8ced89794fdebb94 aa8e6d65 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 [4e:2e:7d:fd:5c:34:75:11:59:16:48:5c:a9:37:d7:eb:22:53:cb:4a] modulus: cc6ae7e06c9add6f2b73a255146ebf371fcc55ca1d94f7d91109182df7c20f33b4baad25991f5770017741ff49741b2a48ed56aaa3460065721be594bb65fed1d4aa2242bb0aad87c1d208718c94082aec5f41d29fcaa4bee05aa72f24b638949420e9766e02f577de2c9d1e1759cc6c8109f7175d3a5850ef5d1fc1748b679a5b14c069e576d28bf9608b9a5c5071974716fbf43471fe208714f3a9ac9ac3fa21d2a538e9fb38f81d45085aa30233886a6945a2a2aefc4254119475f286b03a8af3b84dcd6ff7f0e81249e13ab30c1317d7eb96f1f5b48047a272afbc7ded0871601c0e6f0bf1a3b4990c995565abb6cd87508e27ccee994e9ff0c1a1c27edb public exponent: 10001 ]