2022-07-07 03:33:22,665 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-07 03:33:24,183 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-07 03:33:25.167  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Jul 07, 2022 3:33:28 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Jul 07, 2022 3:33:28 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Jul 07, 2022 3:33:28 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Jul 07, 2022 3:33:28 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-07-07 03:33:29.450 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-07-07 03:33:29.897  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-07-07 03:33:30.171  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-07 03:33:31.372 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-07-07 03:33:31.378 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-07-07 03:33:31.380 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-07-07 03:33:31.387 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-07 03:33:31.440 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-07 03:33:31.447 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-07-07 03:33:31.635 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-07-07 03:33:32.465 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 07, 2022 3:33:33 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-07-07 03:33:33.545  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 12.001 seconds (JVM running for 14.514) Jul 07, 2022 3:33:54 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-07-07 03:34:29.042  INFO 1 [io-8443-exec-10] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-07-07 03:34:29.055 DEBUG 1 [io-8443-exec-10] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-07-07 03:34:29.110 DEBUG 1 [io-8443-exec-10] .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-07 03:34:29.117 DEBUG 1 [io-8443-exec-10] .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-07 03:34:29.142  INFO 1 [io-8443-exec-10] .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-07 03:34:29.146  INFO 1 [io-8443-exec-10] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-07-07 03:34:29.148  INFO 1 [io-8443-exec-10] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-07-07 03:34:29.150 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-07-07 03:34:29.150 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-07-07 03:34:29.155 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-07-07 03:34:29.164 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-07-07 03:34:29.170 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-07-07 03:34:29.219 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-07-07 03:34:29.226 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-07-07 03:34:29.228 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-07-07 03:34:29.233 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-07-07 03:34:30.123  INFO 1 [io-8443-exec-10] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-07-07 03:34:30.127  INFO 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-07-07 03:34:30.128 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-07-07 03:34:30.130 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-07-07 03:34:30.145  INFO 1 [io-8443-exec-10] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-07-07 03:34:30.147  INFO 1 [io-8443-exec-10] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-07-07 03:34:30.149 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-07-07 03:34:30.149 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-07-07 03:34:30.150 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-07-07 03:34:30.167 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-07-07 03:34:30.168 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-07-07 03:34:30.169 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-07-07 03:34:30.179 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-07-07 03:34:30.180 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-07-07 03:34:30.180 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-07-07 03:34:30.183 DEBUG 1 [io-8443-exec-10] 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-07 03:34:30.228 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 261318776211531600269814961323108254942233957019 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Thu Jul 07 03:27:26 UTC 2022 Final Date: Tue Jul 06 03:27:25 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [b4:d9:68:6e:28:30:4b:01:b2:f4:00:75:bc:d7:50:f9:2c:b7:42:4d] modulus: a4eff56f8a74e9b6766d0a5ffdd47bef4491d61bf8b306aefa3131d5b4db4d0325dc1ffe6e3d1a420c46a344b38ab5e2bd491263957c507ec4977a787b28f5cabc2903b5450f561fd4b15a85960a68428d2af91152aa8ecc28f460c9a32777f9114cd0ecccff3545e1bc8cf413a542682896e8262d9a2710c2c1190bba36a45e97af6cb15b29944d76822a335aa963ccb5e5528d70154dc1993ef760c4296661297c2aa6254851ea4d6167cf3e5f957a8b772772b0aebb9f9ed3ab3354acf519d9ac2e85d45c5d8fa38496e4a01faaf40e52052b6fd2a01c82acd021d02d3786820756e3f269953e7785bb4acc67d859f0e839ff4fa0f8a0501d64cf4e146f74ab79ceba80e689fef3fac86ca8dd42015babc4c81ebb358899bfa6ec1a9ed1be8247dcc6f43cd597b6c3b8c0bc2346897bc6862a289a144aa20a1bb000308278f32f64107bc6f9f4419218ee3dbcaec41fbe976dfa4288eafb63b32258b04f7a5462fbb519cdee8c85f95aa79f44d1d09c66abe86ef5ad0290080ad73a8f1db3 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 342a7431812229144b778db7bfd7b87dfd29ce02 358595d44a1a845a876e509782148b1758a0e31b f1582644464b5c781751243786e5d19464d1e264 aa90d5eac4016ab6b684879afe54aa6a083ad6fc 411928b4bcad74a6ad9bada22286134067e68a78 b0e59b79366ddda29633bfa7a3d04e16253036bc 981aaaf2bc4e63bf9b96ff0f8b75cff6bd1175ba 699b6761cd13ba0edc090ed4cb65ec929887bc66 4970d4d566d6b523a184b06425db5d90ebc551e9 ca1f0b9f01aa34077de44d2c0675a8368bd30e61 1ce2ec5f7b7ff9bc8f78f44f129251ad7291ed56 dd306c8901eb00af37724f33b8ea60e391bbe534 9a427bb820391afc04516345f3c6875222424800 b43deb58d5f2fb51fd8fe06eea157a6460764e2b 6ef3196c0bb78d67d598ce7c7f7ac7ef7b53f9b4 514f39ff4bb94e162e1e3882fca80c271f533b48 c7d0a4f7d534e987b0a48138fd4141bfe85c84c8 2c1a918be1bcd4ee12869c1fcf6bdb77778957d4 d99b9a71da1e39ff8b29bf116f6f8ef03d66eb4f f7f2edd2 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 [ce:03:13:f7:dc:77:41:d5:bf:a3:33:30:1c:9a:b5:ba:c4:29:5d:37] modulus: b8e9121a0d1b2ccc11994d623b041dccc3c8ad663055090ff5819bbdddbe89a4181fed4a237bff659e63f64600f074dc8d974f9d64ce75a787f2689b0fe62b73429f0ac393827b615dff79013020f0d592f970f73caa8de77bf85073dd086c61f017abd0efb7c9bb3f1cd56bed34f616345199640333ddb77124b9170b387f9a35d0ecdcba1f14cd92d6678ef46bd9e60d38a8e7753f06d743bddce524360bb20610cf8af7b0d62ad33ddb7a4ebb1638491d4847f22abe46a5b0805911d95f4326a0af3c51553c489482235d85337418cd6cb35a98b65d21cce42dd495940adc742bef5263fda0283355ba0ab0d8dcb3ea29c67d201d642379723fd3ef43155b public exponent: 10001 ]