2022-01-20 05:18:23,238 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-01-20 05:18:27,822 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-01-20 05:18:31.019  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Jan 20, 2022 5:18:41 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Jan 20, 2022 5:18:41 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Jan 20, 2022 5:18:41 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Jan 20, 2022 5:18:41 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-01-20 05:18:43.529 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-01-20 05:18:44.743  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-01-20 05:18:45.337  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-01-20 05:18:48.329 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-01-20 05:18:48.332 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-01-20 05:18:48.333 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-01-20 05:18:48.422 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-01-20 05:18:48.540 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-01-20 05:18:48.542 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-01-20 05:18:49.038 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-01-20 05:18:53.729 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/]]} Jan 20, 2022 5:18:57 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-01-20 05:18:58.028  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 38.29 seconds (JVM running for 45.725) Jan 20, 2022 5:19:02 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-01-20 05:21:32.627  INFO 1 [nio-8443-exec-9] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-01-20 05:21:32.719 DEBUG 1 [nio-8443-exec-9] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-01-20 05:21:32.749 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-01-20 05:21:32.819 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-01-20 05:21:32.919  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-01-20 05:21:32.922  INFO 1 [nio-8443-exec-9] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-01-20 05:21:32.923  INFO 1 [nio-8443-exec-9] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-01-20 05:21:32.925 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-01-20 05:21:32.926 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-01-20 05:21:32.930 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-01-20 05:21:32.934 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-01-20 05:21:32.936 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-01-20 05:21:33.138 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-01-20 05:21:33.221 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-01-20 05:21:33.221 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-01-20 05:21:33.227 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-01-20 05:21:34.526  INFO 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-01-20 05:21:34.530  INFO 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-01-20 05:21:34.531 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-01-20 05:21:34.532 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-01-20 05:21:34.539  INFO 1 [nio-8443-exec-9] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-01-20 05:21:34.540  INFO 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-01-20 05:21:34.540 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-01-20 05:21:34.541 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-01-20 05:21:34.541 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-01-20 05:21:34.548 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-01-20 05:21:34.549 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-01-20 05:21:34.549 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-01-20 05:21:34.624 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-01-20 05:21:34.624 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-01-20 05:21:34.625 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-01-20 05:21:34.627 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-01-20 05:21:34.726 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: 394003702599977299105998733613375416850626606299 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Thu Jan 20 04:33:29 UTC 2022 Final Date: Tue Jan 20 04:33:28 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [4d:96:75:73:1f:6c:98:ee:86:c5:a6:d6:09:40:56:63:ae:cb:d7:f6] modulus: ace0eae7faec94b7660a7f1f0d3f1b4768901ba2d60b47dd3cae100050f47ee277d3364122a2fcfb8c332d9a91c80e2783c76e729bf03f066d028768dfb5b2dbf30a7abcdb1298c04de5047482e5904cc9c0cb979ed4f007033617c2a535cffc5989d64bc956db98a3a8f9d0db68d20a28a2d3e313ba502b7d46023e1f153545a34528c3270046b9f0af83d6e5191ed398e14b3507d0fda160044e5e9efbbb1272532518e8f441bcb720e1bc4796e0133500485d09abc659e834e449241033efff93aaad23ad5170b9c06d2e56e77aa142ed593e0b868bbbc08ba848c43eb9ab7ff3d3c948d084c375ebb8991c7c903bd270e4dd67cef1b575ff322b6e3a54322413fc9564c194accd8604b9f6389a1cee59376c28d9cdc20258b43a9d246e3380eb12b9591740d5dc96de978248e349df5dca3f129759abb4efe0cb534fb5865b926dbe4d97e6fd919ca0ed1523d4623940dc0515859d5da5cc0fca4a4cfcc8d9377df86152a7da325fb6851934660675235c5f5e9c4f02bec4e28f9a666cbb public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 7a0e9e563344e7a4cf4c5bffea39535bd3a51517 b2e8395ce251a23855d290632c61828144e7d02d 5ac80529e114a05b5f4e28763b3ac585911257f1 89e6a276663cf8f6554624d849f37da19de6fb5c d523b993004d842d4b573ff76abc267c24d3f043 1bdfb062136f5aa5b5b11bfbd63ed474af99d1dc 03778d63d2777e3755381d1b9bfd881df5ce1bc0 41bf7d7260a87379ba588723f51224815e4c9275 4ea7cc8bc5709cca915ae9c8195da4728a3a6c80 f3cefbcdac03971d24e91760742887ed3b2c4173 30b30f5d2e365318c8c6f98f7852ea4457bab88f 4a47da1ec9d227e0bfcf55a097a88d321f6972bf d8ed392af5c63b7a2024bc021196e39dafb3b277 0e4b6b2c31a88f9011721b89ebdc2863878e30d9 0d7e61850aecf45cc1c72ef372fb4cb8194ecd48 511c0797b34ac764e7fee780c9e62e3da854efe3 e7b40dcf96a3c044073b6efa5158971aac9be869 0315a2b0bdb7bc2507cf1ec47b4cb93da392ecb7 4bc9bdd144e11d05b1ce8d0386dcd2edc44cda93 7d09f362 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 [e0:5a:2b:6a:18:82:7c:ac:5e:e6:7b:05:72:83:36:99:44:19:52:15] modulus: cbabd0fb0f1ef9b5eabc2fb51205269f8b297fc4d1e890a9df2ec59dd01c86b44def591de3adbf7a3f586d421ecc81b6e4ce5f428a966e98a63ac690ffabe814aac15c607d74aca8fef888c54f687565daa888a0c69b9ed53bf00743a854b4d259504c1076b70c38caff59aaadb426c5a149a414dd070ab57dcc964d7f148a07d6661f1cf3f6d21067af1fae3350ec7b0aec42bf1132406e5bc3da7735c8ffd48d55c0daa28c7419f6647560e3ed48b787085e1ece1b3d7fb521fb140254c63959be03102fa2e2cbc437a604cec59718e3ece947653771d26302bb940c6a8e017bd123812557d533349b8cc4828a230376647ed82ea1238ba187afbfb9547a81 public exponent: 10001 ]