2022-07-09 03:29:06,041 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-09 03:29:07,669 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-09 03:29:08.577  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Jul 09, 2022 3:29:11 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Jul 09, 2022 3:29:11 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Jul 09, 2022 3:29:11 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Jul 09, 2022 3:29:11 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-07-09 03:29:12.423 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-07-09 03:29:12.795  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-07-09 03:29:13.035  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-09 03:29:13.995 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-07-09 03:29:13.999 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-09 03:29:14.001 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-07-09 03:29:14.005 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-09 03:29:14.062 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-07-09 03:29:14.069 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-09 03:29:14.255 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-07-09 03:29:14.906 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 09, 2022 3:29:15 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-07-09 03:29:16.164  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 11.116 seconds (JVM running for 13.705) Jul 09, 2022 3:29:35 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-07-09 03:30:03.369  INFO 1 [io-8443-exec-10] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-07-09 03:30:03.401 DEBUG 1 [io-8443-exec-10] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-07-09 03:30:03.473 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-09 03:30:03.480 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-09 03:30:03.504  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-09 03:30:03.508  INFO 1 [io-8443-exec-10] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-07-09 03:30:03.509  INFO 1 [io-8443-exec-10] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-07-09 03:30:03.511 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-07-09 03:30:03.512 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-07-09 03:30:03.521 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-07-09 03:30:03.530 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-07-09 03:30:03.534 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-07-09 03:30:03.605 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-07-09 03:30:03.613 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-07-09 03:30:03.614 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-07-09 03:30:03.620 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-07-09 03:30:04.722  INFO 1 [io-8443-exec-10] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-07-09 03:30:04.727  INFO 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-07-09 03:30:04.729 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-07-09 03:30:04.732 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-07-09 03:30:04.750  INFO 1 [io-8443-exec-10] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-07-09 03:30:04.753  INFO 1 [io-8443-exec-10] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-07-09 03:30:04.756 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-09 03:30:04.757 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-07-09 03:30:04.758 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-07-09 03:30:04.785 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-09 03:30:04.785 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-07-09 03:30:04.786 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-07-09 03:30:04.794 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-09 03:30:04.794 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-07-09 03:30:04.795 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-07-09 03:30:04.797 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-09 03:30:04.837 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: 120618192430549738502055112679905894490987562962 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Sat Jul 09 03:25:17 UTC 2022 Final Date: Thu Jul 08 03:25:16 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [a0:ce:ca:d8:36:ee:51:ce:0c:b2:18:c0:6e:c0:ec:8d:c6:3b:b9:f4] modulus: a191aa7e5a02798ac41814e6086d16cec54e984f3c50ec66766267173e6a71f444637e018bfcae9286d030512025c1a6cbe493b257fda513318c0a68f4a6ad297a36d48ada2a30ad4bc6c846c630a262f2b134555beba8a8ea253a4cfc57254a841d1b283439cac81cdd9ff03586d08e4af4403fb2cb0410371287dc0b7d7df4e3b7f780ed01dddd5e5f248b69a04f413714a04078dee0cf3530b488f9de674f8d87aa539b3ab1fa51dd4c6a01b3237dbffa7dfe2b05c5326daa424928fefad889999b0c053d1d7fdb3bba5455d7dab9e09b178b2b6ed593490c44b256fbc9411130433ada0159e7b2a06998e1334c90f550c0a69526b847698598a1ec5f301775bb2f9304245ff0c9881ec1cbc3bc3fbdade580b68988f18769668b291a71409486d0783d6c2aa45735561a58de5adac9ed8c87b8372310c177f507822a4ff382abd47d3980d80e6ffc28ff856650b9a0596be776e1cbf1d4be6eba10b9d97fd571196df1dcd086d908d3f0174981a5afc3391daa83ff35a846697fe39c14d1 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 79b4da20f3266e8d81e92eb5ff84cc9d79251aba c4f536fe13665ad2d0c2d71e44a6bb628c094686 65afd5a5f5f2fb84f8ffa77197373e4a5da4f294 998a895ec581b387482497a1aca5cb6de53448fc dc76e716f4a60654b6c4e628056c6f4754ca1064 e314431ff824c67a4efed3941916f5d386985660 a8faad9645e98e8be8cddaa956d35d9d7abfe4b0 aed388f4cc6e44bce809adbc72cbce5d5a8039a4 0bc75639fd6f273ad71730774cb6a17127bf1105 57f09ffc067d7f992fdfa6d76a5fce7eb610e8c2 dc64b3436e9eac2d6234e45cd695182d4f89c126 c94b692ddfbc6356e12e63f837f223ba6f1e1aab 119412cba3a412f3a0619af4427f795e611b7c48 121688a4e867e9a64bbfe8b0e6dcb884d71e68fb 74d2f5f1db24f9d5a7f0e932b8800953ac4781ad 4178844227c36b77d7f740bb189c7014ee7a60d0 30f67efac2171aa5942f05b9241a7f26afde0ec7 09023f2c3eadb6b9c837b52a5180d51d88617c90 2fa8529707c49c92a3ece1f875e39f5e12a2a97a 14d3dafd 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 [2f:72:ce:26:15:f6:bf:4e:b5:b3:e9:8b:30:6b:c1:fd:c6:a8:02:fd] modulus: dc821234ae0c562308bde9ebdff58ab46b2ed0ccb68ec64964654136c85f0e839bff5c406433af6c143953a600a5fe2513603282389d9e8ebeb947d39e7bde3ddab41231226e98aef71fd609ec5aa72cf0c405fde8813346dfd1a8778e6b2294da1bb5e7c7c74f851e74727b8dc8b80746d04c4c1e9891bade4fbfff2708c13bda890c07dcdc1e8f28eaac215f283ffa5c150a59419340ad3e308c7a763a3155d8c05cd6e216fdc6dd97afab38d569bad9e08dda54a52e5c918203137b154fd9653455e22ed8faa48856cc78070b9ffb4609448c686626daa786c30f5b7fb9fa3d35450dc85ffe756b79c8c37de31f45db809501f965feeb76ef477c12617377 public exponent: 10001 ]