2022-02-01 12:53:34,714 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-01 12:53:40,631 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-01 12:53:44.227  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Feb 01, 2022 12:53:54 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Feb 01, 2022 12:53:54 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Feb 01, 2022 12:53:54 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Feb 01, 2022 12:53:54 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-02-01 12:53:56.836 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-02-01 12:53:58.332  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-02-01 12:53:59.133  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-01 12:54:02.720 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-02-01 12:54:02.724 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-01 12:54:02.726 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-02-01 12:54:02.731 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-01 12:54:02.927 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-01 12:54:02.930 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-01 12:54:03.433 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-02-01 12:54:08.123 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 01, 2022 12:54:11 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-02-01 12:54:13.224  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 42.294 seconds (JVM running for 50.24) Feb 01, 2022 12:54:19 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-02-01 12:55:10.630  INFO 1 [nio-8443-exec-1] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-02-01 12:55:10.718 DEBUG 1 [nio-8443-exec-1] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-02-01 12:55:10.833 DEBUG 1 [nio-8443-exec-1] .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-01 12:55:10.836 DEBUG 1 [nio-8443-exec-1] .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-01 12:55:10.923  INFO 1 [nio-8443-exec-1] .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-01 12:55:10.926  INFO 1 [nio-8443-exec-1] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-02-01 12:55:10.927  INFO 1 [nio-8443-exec-1] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-02-01 12:55:10.928 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-02-01 12:55:10.929 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-01 12:55:10.932 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-02-01 12:55:11.020 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-02-01 12:55:11.024 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-02-01 12:55:11.230 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-02-01 12:55:11.232 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-01 12:55:11.232 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-01 12:55:11.235 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-02-01 12:55:12.587  INFO 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-02-01 12:55:12.589  INFO 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-02-01 12:55:12.590 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-02-01 12:55:12.591 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-02-01 12:55:12.599  INFO 1 [nio-8443-exec-1] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-02-01 12:55:12.600  INFO 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-02-01 12:55:12.600 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-02-01 12:55:12.601 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-01 12:55:12.601 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-01 12:55:12.623 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-02-01 12:55:12.623 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-01 12:55:12.624 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-01 12:55:12.630 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-02-01 12:55:12.630 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-01 12:55:12.630 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-01 12:55:12.632 DEBUG 1 [nio-8443-exec-1] 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-01 12:55:12.732 DEBUG 1 [nio-8443-exec-1] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 161131562939745667252660341003163753725759523401 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Tue Feb 01 12:50:39 UTC 2022 Final Date: Sun Feb 01 12:50:38 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [8b:c1:b6:52:91:69:c1:45:b7:f2:df:66:5b:27:fc:32:96:13:64:81] modulus: 8dabef4e7949115f4ebd185449530e038dba0f89a77bd52a8fba6c0e6e33a2a7ca41af8896799f40c797e5f259ab59b7e805f5fc09e8f9bb331092924708eccce8e178686d860296908edc44f8f073931a15a3daf811e8bd5f3095da1b7e3f2c57e031b5d8ad9eb8f9abc7efac5ef82155effd933b72bbed650a64c1db6699dfcdcb55081aa82a7416f1581ce84f781f9c0eeb616d6f15617a494ce352c0b750f6f8abe0ae3e5462160507081321468e44a110de76b912f69c029d2963eb3d062ac384ebbcd5484fcd046aec46b4513541a177543df75f61042736705acecd0ecdfe9f28bfc36b1c1f84b6cc0e5d132343cea65631f6030e83e5243999aae72370cf0bde70577a220d23b54da11a9a752a14ecfa22bb991dc794c0d6b1594959ea0cbf15300a5634d3272c8acdf4d581bb54b56fc60e257425c6125145349551435d5f969162f25d69c7d58a973ce6b6686e986e022d977d930c60a19987cd2f4fa48278618940d245011c0e1c45f153867833698a767d2143fd5832f5925389 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 1ca1a5b94bfe2ccaf219f656cf55cab2d80d0673 41f2051fd9f32c0ae8d91697dcd823a2bf1037bf efc5d3174ed331dd212661ed9badb699cf7b3b05 2c4794b5c2a48d7dfa17bdffd8af79ce481875b9 78663ac9e1ee67d7869d6426fa4e19001ed42fa0 a6ff44e9510f26916ead2cab12b33a72d138f4ab cec6582b037b6314e4d439287f14f3f92ab434e3 16084ea18a6fd7f6ff2cfda1fac72b0663d6cf55 55b2359876d31921b0772c606c3fc60004bcbbef c90cdd3fcc841877fcfac8c07cb4c8d1d18020cb 58263eb61c3c39628b0c0244914ca878787cdb29 32291721a9f76a6833c4443e9577dcdd1a13f7f9 a038ce5ec61c7375aa1b2805d7558cf8269d0c4e 6d9f2c01476043e60cd6f44696183309f15c307f 9d03c90812fb5b0169e44f10794e581ac54d87e7 47cc1c81c3e7a8ee2756844b208d017703766b8b 6146f941f3d3b32f9c15c0ce1f601ecaded60326 f706a19ede3b4d873fb680fb3129d39a930a454d 39e5f9b62ffdabb87cf5f0933f06f9628c51e175 6a6cafca 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 [c0:b1:f6:0b:f0:e1:54:e3:3e:55:7f:b6:7c:c2:fb:33:8c:04:5f:a1] modulus: ab50a3e73c1acce526f75781deaba7b3d7301901023f0e4100e8af04157af4f39516772e8644687dc2fa72727ed9e791b6614faff4253d46266d3ac9363cdd6aa02fce657d1127b696b04ff20342f441aa4b48a05ad54d769ec24bab77f5c777453530ad9e80d5626909010ec66126910c6ff54b6024e2f6523d5bd26a21da2c897ec67771bb95327e0cac8b90ed4f17d52473f8f3dec65b1cde24cf448489c01b40d4036f3fb1b56805b2ad34fa4ec97c631c55278e5d5760927742455db9ab6bb6895d8683ad1b675fb3e4e653cd849b0a2ec0319c89c75843368e2790685176c3641b1d0c175125e72e6f81ced084b35dcdd197cfa08c5954125ebdba509f public exponent: 10001 ]