2022-02-06 23:11:48,534 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-06 23:11:49,255 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-06 23:11:49.806  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Feb 06, 2022 11:11:51 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Feb 06, 2022 11:11:51 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Feb 06, 2022 11:11:51 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Feb 06, 2022 11:11:51 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-02-06 23:11:51.792 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-02-06 23:11:52.057  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-02-06 23:11:52.203  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-06 23:11:52.771 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-02-06 23:11:52.774 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-06 23:11:52.775 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-02-06 23:11:52.777 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-06 23:11:52.809 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-06 23:11:52.812 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-06 23:11:52.904 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-02-06 23:11:53.468 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 06, 2022 11:11:54 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-02-06 23:11:54.181  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 6.158 seconds (JVM running for 7.351) Feb 06, 2022 11:12:19 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-02-06 23:13:11.917  INFO 1 [nio-8443-exec-9] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-02-06 23:13:11.929 DEBUG 1 [nio-8443-exec-9] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-02-06 23:13:11.977 DEBUG 1 [nio-8443-exec-9] .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-06 23:13:11.982 DEBUG 1 [nio-8443-exec-9] .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-06 23:13:12.006  INFO 1 [nio-8443-exec-9] .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-06 23:13:12.009  INFO 1 [nio-8443-exec-9] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-02-06 23:13:12.011  INFO 1 [nio-8443-exec-9] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-02-06 23:13:12.012 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-02-06 23:13:12.013 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-06 23:13:12.018 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-02-06 23:13:12.026 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-02-06 23:13:12.031 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-02-06 23:13:12.071 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-02-06 23:13:12.076 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-06 23:13:12.076 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-06 23:13:12.079 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-02-06 23:13:12.645  INFO 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-02-06 23:13:12.648  INFO 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-02-06 23:13:12.649 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-02-06 23:13:12.650 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-02-06 23:13:12.662  INFO 1 [nio-8443-exec-9] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-02-06 23:13:12.663  INFO 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-02-06 23:13:12.664 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-02-06 23:13:12.665 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-06 23:13:12.665 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-06 23:13:12.679 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-02-06 23:13:12.679 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-06 23:13:12.680 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-06 23:13:12.686 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-02-06 23:13:12.686 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-06 23:13:12.686 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-06 23:13:12.688 DEBUG 1 [nio-8443-exec-9] 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-06 23:13:12.710 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 327837432332192957971613741889296727223994920187 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Sun Feb 06 23:09:58 UTC 2022 Final Date: Fri Feb 06 23:09:57 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [85:cd:dd:58:dc:2f:98:5d:89:b0:24:5a:cb:4f:f0:b2:4f:e6:36:55] modulus: 8789d70f0bb5805aa5c443b7a971d59aabe46d1de39bdb47532ec41f3080500ab0bad1ef2774d04d5c0916b991c06e98dbd924566174c7dcae70355d1ae8f13288138f9ea08e114063ba19ca62d5b115705eca7d2d1e3a8aa62f36caea88b095a052e9e78cb2ca0fd47e74b20db8e810198cfa50e4151d57d73e66703d8a309925fdace29f3a680ce7ae1eaeb0923fec10283f82946fee883ab21ff5eb8665873ff19588b2dc8418b1977f64a1147ebfbfe5e8f042635266afc81f57e4f41c81ea6ba5f19f00e48f116daee6201a0042b73e9465e4076ee1296a210a07aa6b538a8b0f67449a88e5f7d055452ad302538f6f3ddb410fe04bb2b3580d467c5890fe09193a0b3b0bc44d87d981bbaba4f788b6a2cc00ecd5f8eaba2f2cbbc594d15c26145cc3632a06acacc138aac7890b94acb87d90afeba91c3f0ffe938a7c5d9a88c127dcf79a89fe135fb6602c969f6e4819725efd667f6727c44301675ec3808b0391e5e5442593acd81ee0e274226d86d278c2d831eaae4ff34834fb2f6d public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 74214874751c9be5ac310ad2619fc5ad7354778f 224cca1ed020818cffd75cb2af25a7f000890aa4 00f360877e956a2a0ab2783f8993266996257795 134bacba7bf2b97e092ee1938d312b4c8edf208f 4040733b833e0fd7dcf87d1474b68287a49092d2 126ca102b87788eb48c596d771fcbb91939c79d4 857183756e3f9785fdd27701c8f7805cabae05aa a95e45670236883563b035445cf4d10e15053977 4b9988e9a650d3136bb9ed8ab073f2a0f1fa7886 402ff0c43fd9b119bb35e64ca4c622835167ba66 27ebeb5aed6e87bd9fd620c740a8312a45c3de79 7a139057385b68904eb967e6e513a89e9bf25bf5 317aad4c853fa5a93104ac94c2ee7cd08981ce85 baad98b6014c83022e48d54fa1aa7b86d5943ff6 b191f152449a6073ff4b89944eecfe4d3d4699fd 08f8e026aeb91d97daf17717183e4ac2dde7dec0 d15d0ebaecc272b62adc047f968d25c479913480 888865891de2101884dfee5039dc820c6d9ce616 16e7cc83ba8102de9048202be6400a99e480de0b 5ce801db 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 [bc:35:8c:02:8d:a7:76:2f:d6:70:41:ed:ea:84:5f:83:73:be:02:3c] modulus: aff3e65b1c0ea2f01a9e7c53120fe7e641757b2a0e1a954c07c4ad020ab5f0b6bfd64e54a30174e29910e7658da00f156349a59cf144ade7f5529137c7e246053fe74636761d198c3d4c37e08f29e94832cbe5e26710fb0a4fe7949a0be9e4d29964862aec1adad134341badfbd8b2252ea55fa6180618cb6a654a63ad34cf6cde2f931908fc4c69164c283679afe1bd3f4e364d7df72a98ae8bd052e0e7e883264c2788608b01cbc97893579604cc11db79273fce8c679047938063c763c4bc8ca509b9396e8a3848eacbdf6e511eb59295286748686a6e96264006920906eeb8e4ae92ad6a0e2072f29aab2f167b7c525c86e3b79fc801e9360368f8ef3dc3 public exponent: 10001 ]