2022-01-25 00:47:02,421 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-01-25 00:47:08,620 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-01-25 00:47:11.923  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Jan 25, 2022 12:47:22 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Jan 25, 2022 12:47:22 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Jan 25, 2022 12:47:22 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Jan 25, 2022 12:47:23 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-01-25 00:47:25.417 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-01-25 00:47:27.005  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-01-25 00:47:27.811  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-01-25 00:47:31.327 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-01-25 00:47:31.404 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-01-25 00:47:31.406 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-01-25 00:47:31.410 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-01-25 00:47:31.613 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-01-25 00:47:31.616 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-01-25 00:47:32.143 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-01-25 00:47:37.023 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/]]} Jan 25, 2022 12:47:40 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-01-25 00:47:41.910  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 43.292 seconds (JVM running for 51.482) Jan 25, 2022 12:47:50 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-01-25 00:48:30.009  INFO 1 [nio-8443-exec-6] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-01-25 00:48:30.017 DEBUG 1 [nio-8443-exec-6] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-01-25 00:48:30.219 DEBUG 1 [nio-8443-exec-6] .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-01-25 00:48:30.222 DEBUG 1 [nio-8443-exec-6] .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-01-25 00:48:30.310  INFO 1 [nio-8443-exec-6] .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-01-25 00:48:30.313  INFO 1 [nio-8443-exec-6] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-01-25 00:48:30.314  INFO 1 [nio-8443-exec-6] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-01-25 00:48:30.314 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-01-25 00:48:30.315 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-01-25 00:48:30.317 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-01-25 00:48:30.322 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-01-25 00:48:30.403 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-01-25 00:48:30.608 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-01-25 00:48:30.614 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-01-25 00:48:30.615 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-01-25 00:48:30.618 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-01-25 00:48:32.118  INFO 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-01-25 00:48:32.204  INFO 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-01-25 00:48:32.205 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-01-25 00:48:32.206 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-01-25 00:48:32.217  INFO 1 [nio-8443-exec-6] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-01-25 00:48:32.218  INFO 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-01-25 00:48:32.218 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-01-25 00:48:32.218 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-01-25 00:48:32.219 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-01-25 00:48:32.312 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-01-25 00:48:32.313 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-01-25 00:48:32.313 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-01-25 00:48:32.319 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-01-25 00:48:32.320 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-01-25 00:48:32.320 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-01-25 00:48:32.322 DEBUG 1 [nio-8443-exec-6] 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-01-25 00:48:32.515 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 613522135015959173767410380755018198528622871647 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Tue Jan 25 00:43:28 UTC 2022 Final Date: Sun Jan 25 00:43:27 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [27:65:54:36:3a:47:2c:33:bc:5d:58:ca:aa:0f:5f:4d:b3:6d:75:98] modulus: 87af372f5b74cc6eacfe1c32dfb3635a76fd180a364b486a3c5a1bb653b607b222c9c3802bc47a7e3fe10c5ba295a955540ac20bba1287a9bf0f36e1d7829be47c75cc4da8e6c50f5023600c705cb1ef457600aab618b7a5e39aac8ee78f92f92595c2042999063e506bde715f5f69a426cc2d6b22245f7d0def6540ade5d336b0dcb4407557048bb3330415efdda3327bc63237a1787fbe8890328bca4422154a9fa0a936deda0c8385715d186694f1aaa2bd82ee0a96f7fcb1d50e2eff715e4a6f5c9c8cbd64970609a2fb219b5468542aa983c73e4f87b1c8315998981284801114e59fdc12cc39b3932b878431a081a6b2b2fcd0fdf2a559df7e322edf20e19533c6731d56c41710db54d9c91571c51550023536616b3ac256ff9ccd1b6644ea1336aede4254a5cc613d251323f5b831da4a386999916ebe21e4b7883b02252482154b7fd9a95a0ed88073229ef25c3a20861ecbaabf160b643a10719c265d41ff0f97ce51d39231a700d1e11e0dc74d0eb61becc3b77775308e6f111b05 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 21dcf4243229e4e2c145e854239c9b0b13cae650 f668a5171a3e0ef5c5d4586386f08270c0b1e4b1 2f66507656c59289a96998524d4a886ee8336063 7802fc8fc09041f6430806847b2a6531b31898f4 e4f0c6a84207ca6ca992fd8f5963752bd4b1ffdf 15aa9a352ea80fccac2d881e2329916f63d76fd5 1805736ebb1002eb16b2c04661a82094f3bd4881 5937ce88a82b93e090bffcceda6fc112e3980a36 66a77579f6f3fe39332717b72a56147491bc72ae 97be25af509456ec20e0ffff20ad7c96978828a9 beb7dc73735b6dfe252c726a457ba4f9a7df3189 3f8540f6294a26a268959f958deab26c51484e54 3cc168588d0376b2b30c465824b82d2f79b4aaff 315206c5deaee991c53c20320bd2f61ef7a1664f 446c84843c4e2b6ad09723333288ae04829f6c26 ef4776688a54c0012f18a4942f72a73340f53425 685eb82292e3eeba9e6e70478f99fe51b3be78be 97443adae7ef15302a09c7f5d08e4e12ccae3bb1 dda64cbba71d2109cd60e534b58bd32bd21feea7 15da9f6c 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 [b5:69:77:46:9f:8b:05:f7:34:a9:12:48:bc:d0:ab:62:8e:e9:87:a8] modulus: c3f95c9e8410eebabe309ab124f38eee2515df06087e8d342b6c8d307b994532db3153568fbdb85e7986925ec6de891d8821fd05156a5e994eb6daca490f31f12c0f1a1a49879c55099ce39235dce947522d996fe3bf68d541bef9d187df6bd1ad17f3531d3b733a2774d029f0f73beb51b6134b9f6674da44816b8af8bee345fb9b5808afb174f5b264aca693c71f51c8d6d20f396cae00983dc28e24a9afd3cde9b4f6f70186c44b6fae032eafb450105b0f0752003f3ac669c8198269158a8312d650f6df3253cd9bd5867bf328b1da4c49fd001004021b5e188b6bf75af8b89959ac9903569efabd1711e040a6d967f31626d213559d6fa9fb2d2fdd93ef public exponent: 10001 ]