2022-02-03 09:37:00,894 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-03 09:37:01,726 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-03 09:37:02.550  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Feb 03, 2022 9:37:04 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Feb 03, 2022 9:37:04 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Feb 03, 2022 9:37:04 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Feb 03, 2022 9:37:05 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-02-03 09:37:05.685 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-02-03 09:37:06.017  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-02-03 09:37:06.199  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-03 09:37:07.076 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-02-03 09:37:07.081 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-03 09:37:07.085 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-02-03 09:37:07.090 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-03 09:37:07.134 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-03 09:37:07.138 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-03 09:37:07.263 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-02-03 09:37:07.849 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 03, 2022 9:37:08 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-02-03 09:37:08.776  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 8.68 seconds (JVM running for 10.645) Feb 03, 2022 9:37:38 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-02-03 09:45:06.363  INFO 1 [nio-8443-exec-7] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-02-03 09:45:06.378 DEBUG 1 [nio-8443-exec-7] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-02-03 09:45:06.499 DEBUG 1 [nio-8443-exec-7] .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-03 09:45:06.509 DEBUG 1 [nio-8443-exec-7] .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-03 09:45:06.532  INFO 1 [nio-8443-exec-7] .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-03 09:45:06.536  INFO 1 [nio-8443-exec-7] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-02-03 09:45:06.537  INFO 1 [nio-8443-exec-7] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-02-03 09:45:06.539 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-02-03 09:45:06.539 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-03 09:45:06.545 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-02-03 09:45:06.552 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-02-03 09:45:06.556 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-02-03 09:45:06.599 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-02-03 09:45:06.612 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-03 09:45:06.613 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-03 09:45:06.619 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-02-03 09:45:07.410  INFO 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-02-03 09:45:07.413  INFO 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-02-03 09:45:07.414 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-02-03 09:45:07.417 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-02-03 09:45:07.427  INFO 1 [nio-8443-exec-7] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-02-03 09:45:07.428  INFO 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-02-03 09:45:07.429 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-02-03 09:45:07.429 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-03 09:45:07.430 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-03 09:45:07.444 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-02-03 09:45:07.444 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-03 09:45:07.445 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-03 09:45:07.452 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-02-03 09:45:07.453 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-03 09:45:07.453 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-03 09:45:07.455 DEBUG 1 [nio-8443-exec-7] 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-03 09:45:07.489 DEBUG 1 [nio-8443-exec-7] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 252127073837810151979652293454575525624725423515 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Thu Feb 03 09:34:41 UTC 2022 Final Date: Tue Feb 03 09:34:40 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [b6:44:99:23:cb:10:8c:df:6e:2f:e6:87:a8:d7:5b:bd:4e:6b:f8:72] modulus: b19064d541b1f7ac952abceeed1805b823e466028d477958eb8fe5eea3adbfe5f041ef0074892eaee9bb7064bcaf144031998159566c64932c69ebc247c7715626637984cbfb37ca057826123d3c65a7a8997ba85ff11febf6b10b60628e2737655f60c1aefe4e329d88a8f7fbd374d88c1a037af41a93d23b6f9fd03e1caf383d2cb4b1ffd520e3f5eee332c4230d0a5fcf9c51e668ad6737e5a248db42fa6c4f602914fe2696ed5ee639fce7e98c5314b84988f0441254b4fa8725c09121ef91007619d462aed5db92ae4385340b66b0aba68dd63bd667c21732aee4d607abd2645e1dc691455c896ddb8f8c133d5cff41af1091d8ef5ebc5a385b069b9fea7bfd6b7214286999ac8bc67979aeef41cdd9f3027d1c608b843a319b87dfa595d52f0a8d72ae4f635b44a5e1fece947240126687f9829112ac7fdde9d412304329e298264f9746cd3e062b5b89a8b0f0deb94b4e5da5de6f835c82a044715283daf4630e972765a5eff01f837ebc55636dc77296ca672fa9a2a609d500cfc479 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 2da1c94fff334f1b620eba10deda243ddf00d5ac 883688ab37fbb5f644e7a9c632963b59513d09c9 8465234b9b9162b46363d103229bd069fd13b11c 2dc54eeff3f1ec16019e57c216b8bf76b2c76f1b e9743404cbd81cad519ffc749d85592d98aec5be e78ab1857d5041186471ee1da0227e46f1c0fa77 9fa68b0d76af9e4bcb250dc1de279181d73b249a 88d13670620e3145ee061de8801aa841c7fedb04 7d2d50296a70dee6eee77508128853c0e026af6d c561d5f6553e0d741bedbc9a9868836bd31b6423 1ba1fda8577a43f2be4ff14d69b64083b947938f 4113fcafa0e1e16f8f46462c4a9e7d0ddfcb2f81 7ed8ae69e2d9125bcdadddcd70009b367dbe7885 b44509debe5aeb5114b11d00106b1cf1b5abf318 535a21f5b80251aafe615b2ba3c8a7d0b92c919a 41bed6888bcb85500faddc7bcc477b06462dc455 1f15a0ae0fb83556bf35d72e5efa273492d22017 3d38ab2e68670abe801226ae9086e96a391a73a6 79706bfa58d1eecfc1a625237a80ebd8b23f3f06 862ad0b0 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 [97:0f:f5:2d:04:bc:73:58:ef:84:51:7e:49:a1:a5:2a:18:fe:f8:0f] modulus: bb8388fe5e43c2beacee18bcfb86703f5117578130f06141113a139814c75b53d83f2da19caf7fd98ceea331fb5496f724debe7eb1539bb914d17983b349223f5d80143d83a5c5367ef2173e39bea29d12f0f93005490ad61815b841fae96e520cf99f4c2306e2174aedcdb59686aa18d4998faa40e0a9c01023687cd7f7a3c433909d089beffa87be9c257943bdd4c76befa51089bc37e0d3ec874c65039f13272bc72a7907589cbcd73173b46b49ba8f562e1349303c158b7555b45aa5f36921e1627634d59461ad38ca7bb1b67b5683d4af5b2b2f325904297a85fc92a3929044686291b591bd5c6cecbd0f15223d37e500aa2c51d812539a53b6899935c9 public exponent: 10001 ]