2022-04-30 05:02:52,403 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-04-30 05:02:53,557 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-04-30 05:02:54.497  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Apr 30, 2022 5:02:56 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Apr 30, 2022 5:02:56 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Apr 30, 2022 5:02:56 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Apr 30, 2022 5:02:56 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-04-30 05:02:57.593 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-04-30 05:02:57.936  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-04-30 05:02:58.192  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-04-30 05:02:59.120 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-04-30 05:02:59.124 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-04-30 05:02:59.125 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-04-30 05:02:59.130 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-04-30 05:02:59.185 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-04-30 05:02:59.189 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-04-30 05:02:59.331 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-04-30 05:03:00.072 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/]]} Apr 30, 2022 5:03:00 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-04-30 05:03:01.147  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 9.769 seconds (JVM running for 11.959) Apr 30, 2022 5:03:21 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-04-30 05:03:39.275  INFO 1 [nio-8443-exec-2] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-04-30 05:03:39.284 DEBUG 1 [nio-8443-exec-2] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-04-30 05:03:39.332 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-04-30 05:03:39.337 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-04-30 05:03:39.355  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-04-30 05:03:39.358  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-04-30 05:03:39.359  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-04-30 05:03:39.360 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-04-30 05:03:39.361 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-04-30 05:03:39.365 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-04-30 05:03:39.373 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-04-30 05:03:39.377 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-04-30 05:03:39.422 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-04-30 05:03:39.428 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-04-30 05:03:39.429 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-04-30 05:03:39.432 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-04-30 05:03:39.961  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-04-30 05:03:39.965  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-04-30 05:03:39.966 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-04-30 05:03:39.968 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-04-30 05:03:39.978  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-04-30 05:03:39.980  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-04-30 05:03:39.981 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-04-30 05:03:39.982 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-04-30 05:03:39.983 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-04-30 05:03:40.002 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-04-30 05:03:40.003 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-04-30 05:03:40.004 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-04-30 05:03:40.012 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-04-30 05:03:40.013 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-04-30 05:03:40.014 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-04-30 05:03:40.016 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-04-30 05:03:40.052 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: 75056506845064952351219595676169375655359403894 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Sat Apr 30 05:00:49 UTC 2022 Final Date: Thu Apr 29 05:00:48 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [7a:fc:5e:58:a5:16:02:c1:85:b6:98:29:57:d3:6a:ff:61:64:52:53] modulus: ccb89b7f70c4e83b17cf94b3f098c061e2ce5d1a3b3cd25bd5441271280cb4c2b7d63547aae46067b6f18ecde5ffec28ef2f9cf601040a5c951f4d54817aa4882114fde5c7784ef233642b5adb0a53fc9f999a70cb297bffc2195b422f6a513f26381a9431d969af03f38463adc0a1aa6fc4e900596be8e471f0ebec2697132a4ea41e4cc1c0fd1e0d3645485a118b8c9a05b9d49348f6d43bb5f82ab241a5be098eee7b3fb6f5bb8c8ecc076f137c29583d327e29a98884c29a66dc3e3058f514e1c6377d513d97aff6821ced63424c27d37141190b5cbe9b3e9a81d1672eb263888073a7a1fe36da2d56a3780cc8d5131d2e720840dde0d01f9fd37dfa8cd2db00f2d09f5d308d1a9f990d0991341a52923ecd3bf6ce876ec1737c71b2c943085c5ccdb6440bc32629fe3dd3bcef9cd1732e99c57fe490d902bb9c342960f9cd371d36f3929664d977f708cbeaaa40f6997a66ca6320d60e05d959f583f0455e68678505d772906b29f40adc16d093053d514a1f4cf20d01b62f9859ba0951 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: aca92507085c60be472bef002081dcccb1ab6019 9a93c77d6d85f3aa1e000f7e6fbffb39be36320b f4851489b3a956d74ff7b96999c3ba72c3dfc67a e8388b1d39ef55a2a57b07105ae5d025a024ca5a f9ecf10298c6bf8cd119e43cb2c84add324d6431 ef3f114cd8d8decccecf2f9faf5b33de69579396 71d260fcaf0589619960b8531100ce7db1845d9a da65922cfa2c473bfb0f3114930978e6082e1cca 4a26eecc494355927b24a159884cc940b9c951c9 e2e22b0eb82444eaa6fe75e44ca1c8d427a2b1ce e0fdaedfea465bad65a97d42dee1244cffc1080c c6a6d0e6eed655f9f18844712bed248d445f5a99 fded11fafc7122fc63be4bedcd59239e80062ee1 271ec535d4e2dbfffb4457f074258eb31626d999 bdf3b38b7583d897184abc9e3fa5be559d84b4cd 2a8cfd5867359622f89cb76c1de38884742d4173 8e5870a287aa5bd9d862d837b77e6dfb477f1f34 7920a2fa26e099a4180e791256d91d031d45f94e 70d2108d483bc4404d321c5e80c50d461cf353fd 785b7e7f 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 [c1:46:94:fd:76:2b:1a:39:b8:0d:99:b9:1f:31:5a:93:32:e9:f3:87] modulus: b9537304b4194b18d47a2cabd8d139e9966169fed190203c33431ddb92bc4b2a19d81114440f7cbded4389a653c855f437d2b53575e846e391bc96f3d2b9cbcf057b8133f191e512c010b6c4b9c149e49eab872c399e52f5b3d66742bfe7df0b9f8c61d7fd4fd2df0ecea2af0330344dabf46f6bf0254c65b2f8e9852c32926fa3f8d05a647904589bf34390ae4e56401d3ba0c53908d2bced9776f2ef5b595e41d5537efe8fa9d1108fe107083a5e429e4f85c0363fa683e20f783b20a502e60a8cedeb8b25692c61f99b5c7b9602a70cbd8e4e209762c0c3e310b43c27c14f62f441f890b308f2734e37377057d5294727b23a1c0cab9aa87a3a86690a757b public exponent: 10001 ]