2022-02-14 23:10:38,521 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-14 23:10:39,496 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-14 23:10:40.382  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Feb 14, 2022 11:10:42 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Feb 14, 2022 11:10:42 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Feb 14, 2022 11:10:42 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Feb 14, 2022 11:10:42 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-02-14 23:10:43.160 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-02-14 23:10:43.432  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-02-14 23:10:43.583  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-14 23:10:44.332 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-02-14 23:10:44.336 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-14 23:10:44.338 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-02-14 23:10:44.343 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-14 23:10:44.388 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-14 23:10:44.391 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-02-14 23:10:44.516 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-02-14 23:10:45.195 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 14, 2022 11:10:46 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-02-14 23:10:46.333  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 8.543 seconds (JVM running for 10.476) Feb 14, 2022 11:11:13 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-02-14 23:12:58.314  INFO 1 [nio-8443-exec-3] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-02-14 23:12:58.327 DEBUG 1 [nio-8443-exec-3] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-02-14 23:12:58.418 DEBUG 1 [nio-8443-exec-3] .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-14 23:12:58.441 DEBUG 1 [nio-8443-exec-3] .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-14 23:12:58.458  INFO 1 [nio-8443-exec-3] .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-14 23:12:58.462  INFO 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-02-14 23:12:58.480  INFO 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-02-14 23:12:58.482 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-02-14 23:12:58.483 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-14 23:12:58.488 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-02-14 23:12:58.497 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-02-14 23:12:58.501 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-02-14 23:12:58.548 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-02-14 23:12:58.563 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-14 23:12:58.563 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-14 23:12:58.568 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-02-14 23:12:59.189  INFO 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-02-14 23:12:59.192  INFO 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-02-14 23:12:59.192 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-02-14 23:12:59.194 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-02-14 23:12:59.203  INFO 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-02-14 23:12:59.204  INFO 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-02-14 23:12:59.205 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-02-14 23:12:59.206 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-14 23:12:59.206 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-14 23:12:59.219 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-02-14 23:12:59.219 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-14 23:12:59.220 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-14 23:12:59.225 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-02-14 23:12:59.226 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-14 23:12:59.226 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-14 23:12:59.228 DEBUG 1 [nio-8443-exec-3] 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-14 23:12:59.261 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 588376109841386311636945281776023920891731296205 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Mon Feb 14 23:08:22 UTC 2022 Final Date: Sat Feb 14 23:08:21 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [a6:13:e1:e2:91:eb:f6:65:f6:da:ea:b5:8c:12:c7:78:ad:3a:ca:fa] modulus: effd4fd7db16f6020e25f77bb47b76bf5d9966285cb671b9d22399f822df1986342c10f76e32b74f5b78c099f799d13b5d9b122e05c91620583b5b561fb07e8692b45bdff1b8324b5bfb978e57ebc56c66828fd85ce5577e902d55bb93a598ceccc53c94e8095a54720cb72375f3983a8352a57de0af5417b49608912a87a6902d4af89d62237f44d9cbeaad73d95db49ad6384bf38fbad7a161e34744220ac53f5b258904ff9ee1d82bbf4dad75895c46ba71b9a62edb93bbc4c434d95af303c0348eed34efe031ca5b82be0874e6877506804dd5554211f064b65cc518fbbd0c96374ba9775ffb7c85c775d46ed1f51f9c939678e5bbe137a852a684dd25a8388e59cb54db1539e03321af012ea3dfead1f89cc95bcfc10a8bd4b49e74b82a7e2e8cd80888d5f9ada881a8a52688e96981ed90a7da5bf7db7cac19139684c7e1032f226f5f4a44ea37c313ecc01b4701ca55770a7e5b755ebb15058f6b19d7258e85964f99921298684f6a42d4510f0ef3f5ec7bba7d60b8d7793804484c99 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: d2e845101be5ad19114122f77facb35549333823 1592aa00a8bb13a1e35266de441e75a4e68f135a e86e983ca9052525e3f7645a75b1f845d5de7955 911253bdc1d5a4063bdc896e021a0928464b5e52 a63dfebba155ba931dcc610612b5a74606b2841a 6e60dbb8b8d4268b98d4b3a1d8fbeb5f10674cd8 800319b221b310b8ed14016c5ec40265747ccbd2 ff010e33e1a93f59fc6701d9291fd1d820b90900 ed0cedd4eb881469adc869f8c50a6c20b26b4a59 4f0c73ddf6e2bb547df23413bd58705d6091a03c a87ec7afaeef542b1d1a4a3f1cdada0d7e089b36 526162d3cf1553a9a67239add0a01a72f854c075 f1884de551625b12de7c08c81790e84445c0c304 b3452de491c1ddca1aa22957e9e31eb10854d744 faf0ed92350a23a4e8e00d881d25bb1b556f14de e509edd93a791771da632f8dc8205e75619235e6 907170a64ca24da4f6ccf8c2e54bec4d9c90b5bc d8eefcb6cb7cd93cb50590ee6d7b295a1a16304c 3115b4df8127f3c53e6dacc5d206ab815ec52ff2 d38cde04 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 [c8:17:aa:61:86:04:61:91:c6:d0:0e:3c:8e:71:fc:ba:09:ac:2a:c4] modulus: aa6d0a19dedf741e8f28da81628c679e56c3862952d96e4f976caf1e8fcba946a06aec199ee90892adb8c20b61c49013f5b635d1190bceea978d9e92115ceb23f83607005eba3b0681aedb9b30b0454bfd89edf0a896efd644c2e1e79f280870a65aaefd929a0e785a8fdab7968a3cc0ca1e5a19da5a2fcdce9cf5f9b105b1bfe0c1c52fb1369861a2c9319ac4e509b556de745159af64ac34e320a20857ff62c2512a4ee375bc64c546605e42e82e57ad2199afe65708442abce8c2611fe0797a5e2945051062f105a327c456cef5c3e234432024c55400bb88f07a0fda2076c1bc43de8151cb75c893c657cfd4e0f424b1c7dd04bee4eda78cf1a3745d4425 public exponent: 10001 ]