2022-07-20 05:20:14,838 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-07-20 05:20:15,815 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-07-20 05:20:16.562  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Jul 20, 2022 5:20:18 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Jul 20, 2022 5:20:18 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Jul 20, 2022 5:20:18 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Jul 20, 2022 5:20:18 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-07-20 05:20:19.373 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-07-20 05:20:19.736  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-07-20 05:20:19.934  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-07-20 05:20:20.671 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-07-20 05:20:20.674 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-07-20 05:20:20.676 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-07-20 05:20:20.680 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-07-20 05:20:20.721 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.s.a.OpenApiResource: {GET [/v3/api-docs.yaml], produces [application/vnd.oai.openapi]}: openapiYaml(HttpServletRequest,String) {GET [/v3/api-docs], produces [application/json]}: openapiJson(HttpServletRequest,String) 2022-07-20 05:20:20.725 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-07-20 05:20:20.847 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-07-20 05:20:21.545 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/]]} Jul 20, 2022 5:20:22 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-07-20 05:20:22.595  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 8.699 seconds (JVM running for 10.507) Jul 20, 2022 5:20:42 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-07-20 05:21:00.979  INFO 1 [nio-8443-exec-2] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-07-20 05:21:00.996 DEBUG 1 [nio-8443-exec-2] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-07-20 05:21:01.040 DEBUG 1 [nio-8443-exec-2] .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-07-20 05:21:01.044 DEBUG 1 [nio-8443-exec-2] .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-07-20 05:21:01.063  INFO 1 [nio-8443-exec-2] .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-07-20 05:21:01.066  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-07-20 05:21:01.067  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-07-20 05:21:01.068 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-07-20 05:21:01.068 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-07-20 05:21:01.072 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-07-20 05:21:01.079 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-07-20 05:21:01.082 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-07-20 05:21:01.123 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-07-20 05:21:01.128 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-07-20 05:21:01.128 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-07-20 05:21:01.132 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-07-20 05:21:01.879  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-07-20 05:21:01.882  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-07-20 05:21:01.883 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-07-20 05:21:01.885 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-07-20 05:21:01.899  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-07-20 05:21:01.901  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-07-20 05:21:01.902 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-07-20 05:21:01.903 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-07-20 05:21:01.904 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-07-20 05:21:01.917 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-07-20 05:21:01.918 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-07-20 05:21:01.918 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-07-20 05:21:01.924 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-07-20 05:21:01.924 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-07-20 05:21:01.925 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-07-20 05:21:01.926 DEBUG 1 [nio-8443-exec-2] 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-07-20 05:21:01.954 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 6086016695649041035881969643562476364439887718 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Wed Jul 20 05:18:05 UTC 2022 Final Date: Mon Jul 19 05:18:04 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [2e:d8:8d:93:2e:b9:ef:ec:5c:17:e5:96:17:c6:09:ad:b5:ae:49:05] modulus: aa629145bb40a81423821767c344d0984f293cb4944c4788e2b7419a22d15c0f58bb396ac56eda474456d97d4e4baebe74fdd98101b04f2e6f03320bbadc10002764dd360e88f41675180855a420d34335bac8a8837f428d2a3dce7ed1b24a7633a5ff392d88e24e3557cfcab991f0de0a9b4ca86fc227b71f00fd036a90432721b944bc3983239d797fd957e153a52e1647a400a7e052b92c388768005869ff67c4ba42b7d34d5342d4a3d8014f68f2e9d94bb2596c09aaa418c200a41c5caf67f25832ba2e18fbe2b270404e46c52cd4ed6f646ef60a2f0072456467fdf75e03ed2ff543613927894b4e20780b7ec5234774551a65a44217b856bd41852c052d47096a47f4ab65828427482b387fb5e5d864a8bb2312e1761abc9f1d93482d9a7f80ea21822de92d79e0ba1792d3e5d9dc2030d21708ce7a95fd6bfb79698821a914df27c3a1c21aa49abaaa42dd32acc79c192da377c1cb4a38cb3cb1e8d1406791451cfc5e8bb9251ba538bdfb3b35a261a4321632104edce054aca40c97 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 7d5615e05ec7d2c1593e63cf0ae70fe2f8aece90 f01f42dffd61010d838f17b1b87dd8c0e591a041 3f317e9a80e1e726c3aff1e7e326b1f85b6943fb c8609caef457744515646236e948d701f9e42982 139a70e3cbb42c15e32cad2289d257c1e9bb7e9d c3f87efbd2ac8396ec75b95d3936b199f9763012 7fb9d503b126799aee54aab5c295be21522b8938 13836b387642cfccaf1a9ff3116f404d9bdd8d10 c6decaf395289755bda14d4e7b3c61b7baef64ec 790924bf01385882911a619f1a3cd66e23a04743 d04ba8b125ad7698791aa051d926bd01db5b0b5e d46d45a04b403da51aca587a1d8844f1f19f1a34 6a0d0d2d618c91136f80c04a1795d4c0767cf0ff 9f3e7d1317779de996dbac3bbf049fdd23b6c1d1 024bd4535f253eb294c33c41fd64a9bd958cdfea f3daf46a72d10dea20b2587d373ce426a3d8683f 50f84aa12af6cb3ed9586b9f67f8178a3c399e8f 3717a3b71115c7659a520e986293ecd7a11923b6 8dc6a20312fa442d21d956310c7955c02b8bce28 dfeb7a5f 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 [7a:3b:ab:38:06:01:77:b3:0b:9e:97:53:3b:5c:10:19:4e:8d:74:dd] modulus: cad1189db1d576759fbf73b5ec1c23727e49fd79127aa21ca4bbc026df009129a1f24cc705d4f8de27f6abaaf500cb6cf41682094c59e71f41499260a49e037a541336e8bf81163a97be611b69a2fe7bf7dbb6090bdf6996a220b56f2003aaab3bd2da1fc24b9937291fb1590efc4962ddd256f38860b5499469b22b56572b267883d8909ea21970ec6ce9986a6e797e6d960ae294a6e0e9fe004f1dccca040719745658fd4e6f9b9142c37c9932f9d701e42958776cb50ca9da38133a3a568f19a89e4362731e00b29015ddd9cc4cb7fc0541e341e0e4b4939bcd7ae44c048e9fad36bcf3b5397adcb6da06b5ee8039a8dc02abf8347f7d0f1eba484763d2a9 public exponent: 10001 ]