2022-02-07 12:06:57,158 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-07 12:06:58,002 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-07 12:06:58.580  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Feb 07, 2022 12:07:00 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Feb 07, 2022 12:07:00 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Feb 07, 2022 12:07:00 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Feb 07, 2022 12:07:00 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-02-07 12:07:00.499 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-02-07 12:07:00.722  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-02-07 12:07:00.835  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-07 12:07:01.370 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-02-07 12:07:01.371 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-07 12:07:01.373 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-02-07 12:07:01.375 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-07 12:07:01.406 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-07 12:07:01.408 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-02-07 12:07:01.497 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-02-07 12:07:01.888 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 07, 2022 12:07:02 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-02-07 12:07:02.624  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 6.076 seconds (JVM running for 7.287) Feb 07, 2022 12:07:28 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-02-07 12:07:50.238  INFO 1 [nio-8443-exec-9] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-02-07 12:07:50.245 DEBUG 1 [nio-8443-exec-9] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-02-07 12:07:50.279 DEBUG 1 [nio-8443-exec-9] .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-07 12:07:50.282 DEBUG 1 [nio-8443-exec-9] .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-07 12:07:50.297  INFO 1 [nio-8443-exec-9] .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-07 12:07:50.299  INFO 1 [nio-8443-exec-9] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-02-07 12:07:50.300  INFO 1 [nio-8443-exec-9] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-02-07 12:07:50.301 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-02-07 12:07:50.301 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-07 12:07:50.304 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-02-07 12:07:50.309 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-02-07 12:07:50.312 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-02-07 12:07:50.348 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-02-07 12:07:50.352 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-07 12:07:50.352 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-07 12:07:50.355 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-02-07 12:07:51.006  INFO 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-02-07 12:07:51.009  INFO 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-02-07 12:07:51.010 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-02-07 12:07:51.012 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-02-07 12:07:51.020  INFO 1 [nio-8443-exec-9] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-02-07 12:07:51.021  INFO 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-02-07 12:07:51.021 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-02-07 12:07:51.022 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-07 12:07:51.022 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-07 12:07:51.031 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-02-07 12:07:51.032 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-07 12:07:51.032 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-07 12:07:51.036 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-02-07 12:07:51.037 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-07 12:07:51.037 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-07 12:07:51.038 DEBUG 1 [nio-8443-exec-9] 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-07 12:07:51.059 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 115809563006847445663493745663967671344773121441 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Mon Feb 07 12:05:09 UTC 2022 Final Date: Sat Feb 07 12:05:08 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [32:97:54:47:8e:0b:33:00:25:91:2d:0a:06:25:d8:6d:ad:ed:d9:7e] modulus: a52dce943f8298e56c4f5e740d1fd8e20ee965d274b3cfad6236b01f64af5be24c35f1367b519b6d584987f2740c77832cfb885caa6ac845a303c677c6fc51e2709c4d181f5c5ee0cdfbdf159fa09ff210688da300d44c7c992a55c372e350b47142c87728b474036d5a0fb0e10611b5e3b1be997876a50d250ba88214c935eac3d1a80aa135afbacca1c23b30750c6c18a20c44aa61df9b9319036ba23073f56ae532e6aaf65c76cb228b6a66f6172580ccdc6dce85ae2819a45d2acd2051e04c9664880157a37158ade2fabe4c0b4df4282564ba7cd1789a52bfa60d3cdf6a4c7d7ec38a5ecba37183fa102dacf63704cca7db2270e5cf7ed4cd24c276faeabdc62546a0672dd95b89f315c80d9450ea502846795931b68875d8046fac760d565e9dbd5016f0479296268b7c6d01589c9d0fb485cc7509ccb467cd44e6d17abccbc692130aca54a6dc87526f6bfe705a0c1b16ca9d5ace429ffe4c3b0f4806f6232867863f1fa8181189210d827da56be478c233eb1409792aa74b1752d3c7 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 2387a6530da8705a0d16e718d7d84e6f29f9c403 ab0409b2d45823201ae74ab5bd131e65b0308bf9 8bed7d736e8b9b0a8532025c8790ba5d3a0f0de2 d87eb6c795effbfbe1f07e14574b9738ccc9444e 0683c8b1220d518e048e13f204e9c6b59bdb195f 4f648823ef9318e33fb3423052e63ced0998c405 c0a5499596f92681cf2f91a3fa447c481e298cbc aa3a581a1b6b8d12bfcb81d47a6e92d8dcfbf777 16dc82c423c94b5e0163e52d329b8e4ba681bb55 910df319025de0740256b20ca4cbb295461bc5ed fbe220f0633fa7000dcf68f7e0031b5ec97cd773 5db904419aeceee05c620806223190f6fa8fdcca b932512b39a811e948fec994c854af25766b74e3 0c3e27106b09c7ec71bfb9e95e5e27f440b8ccf2 f6001a939f41a621249d3fab8676d3f7df679837 5ab8e988010d3c39aa159338de1f792428d02dd8 c920515c95088a7bda7bdb55365533d31edf3908 723cdf1c2f542ed58078d03fb0238fb9232bd932 927832a1777cf53c426376bd591074c4269914fc 585b5c28 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 [8b:50:26:bd:87:78:5f:fb:55:79:ed:75:f1:4b:5f:95:15:e2:d2:99] modulus: 9a8fcdf8ec59ebd7662dacb90e89b10acd170bf194ed65f515335049ed3767cb2c544be2c5e627f867500b432545e178744031660ff9ced8ac82bcf5e6b583df03ff5954c292ce0c420f15b67a31cb970c0826229abbb3509e906c8dcb62011f4760d8965085614c69f3d041842dd400e009cf8b4b5c022cc78fea603229367bb1829f09ea0b3966ed13daa60ad67806fc60b124a6a081a400c1aa3ebc3c5fd096f3d43fffa155f0a215039a2d22c880f63bf63ab830caf1033a24dd9c147848db4bf91d780b5d89d6c3a17f9635c2e56aea556140aa88d6555434b1caeb1be9c207f6f1ebdbdc1e5186af19479b32170f71a05d42da73edd8215f8aa7f1cea9 public exponent: 10001 ]