2022-02-10 23:28:35,052 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-10 23:28:35,988 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-10 23:28:36.689  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Feb 10, 2022 11:28:38 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Feb 10, 2022 11:28:38 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Feb 10, 2022 11:28:38 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Feb 10, 2022 11:28:38 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-02-10 23:28:39.098 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-02-10 23:28:39.362  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-02-10 23:28:39.485  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-10 23:28:40.085 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-02-10 23:28:40.088 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-10 23:28:40.089 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-02-10 23:28:40.093 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-10 23:28:40.133 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-10 23:28:40.136 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-10 23:28:40.246 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-02-10 23:28:40.865 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 10, 2022 11:28:41 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-02-10 23:28:41.801  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 7.405 seconds (JVM running for 8.753) Feb 10, 2022 11:29:09 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-02-10 23:29:28.117  INFO 1 [nio-8443-exec-3] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-02-10 23:29:28.132 DEBUG 1 [nio-8443-exec-3] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-02-10 23:29:28.183 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-10 23:29:28.190 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-10 23:29:28.224  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-10 23:29:28.228  INFO 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-02-10 23:29:28.229  INFO 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-02-10 23:29:28.230 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-02-10 23:29:28.231 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-10 23:29:28.235 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-02-10 23:29:28.242 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-02-10 23:29:28.247 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-02-10 23:29:28.304 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-02-10 23:29:28.308 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-10 23:29:28.308 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-10 23:29:28.312 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-02-10 23:29:28.915  INFO 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-02-10 23:29:28.918  INFO 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-02-10 23:29:28.919 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-02-10 23:29:28.920 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-02-10 23:29:28.930  INFO 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-02-10 23:29:28.931  INFO 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-02-10 23:29:28.931 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-10 23:29:28.932 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-10 23:29:28.932 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-10 23:29:28.949 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-10 23:29:28.949 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-10 23:29:28.950 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-10 23:29:28.956 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-10 23:29:28.957 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-10 23:29:28.957 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-10 23:29:28.959 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-10 23:29:28.989 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: 456674404976917256881107964055262204663994886166 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Thu Feb 10 23:26:18 UTC 2022 Final Date: Tue Feb 10 23:26:17 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [39:1d:eb:07:6b:2f:f6:1f:69:c7:7b:f9:24:ea:87:78:d0:8e:9d:53] modulus: a7a870274de48e0d810aff42b8fd77fdadcc6cbbfee81fbc014b0da40d40b6e646c7fce018141e0fe8e59a3cd872e9263c5df5c38a3cb8db9637a883684bcb780d586126450836f9f0bc89638e3994ff5d0645a91976761194ba4263ceb9e7d5bf47f5c5bac7afe1153b4103db07daab9b6f0e5a3692e3d99b83faf3d610bd35055d6ed3778984807a46442aeff3f78cb7c58f997a555692d420903265be17f6649007773527faf6c041a5a0f028c217e6973b10da2c385deaec8e597ef4326a5283597f9b494cec5531afea98ef642cdd5a22574bed45a17827ea3c09feeee84540e9463d3ea4d6bd4127202aed90c6614175da3437afaecd4c8d72afe59f9b269c6fc75cddbb4d9c9f6b2e51074c57f0ce25a8b94eff527cede13e4914c9ce10155c73b0b18720fe266954ef832fa4e09b99be286793b86708a96e9e78149a51c495b19bdd04c5a7d577d7c1f126d474e1aa510f281e3b34e718115af707f155da42a383f089b31777ace96f9c397f3bf71cb58ae2f286b2bee28c674c0ab1 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 7cc8eb3cae0831ea2616af33c6927161de1e1543 54aafbedfe3ac90703f5149a95d048b9eff081f9 f2e4ab77bac088068feba690c32390f92550c94e 54ccbb469d2676e6023225a13d81fd42869fcf8a af0505ba20338a5d1fcf92f2eec081aa6eaea09b f95c083fb877b527b6a88d3066f2252e50517ca6 abefa92479e267ffcfeea4b9823619d9227cd103 946217848a8a12b7333c6d16ae70d8cd0226db56 e7b821e70e3269695706c3d6032ba4181bdecfac 0e245da01144aa5b9db780dd9c147cce3a61dfab c98c9780ed150b12481ef2a49b4edbbfc89eb112 806397a750ee7723bf367f083ba1211d997102ae f913e5fb8aec68eddf33b0db4fbbbc977d6133aa 40826788b2967432f1b101e7bcf17eee4e3fe92e d7c86b8c8492fea95ac349b0f0953aa139f6dba1 30c602dc25901c043f6ec7460199544e826bd012 31aa5069df94126c3113b0677b2be1ef55296ea1 f758f1a521c9735eb54e2661242cc06907a68994 bb37932c94a0b3d5d0f6cbe5406b89e2b01a95eb 59beff09 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 [9a:c1:4d:4f:58:d9:f6:46:ca:c8:1f:1e:48:4f:7a:c9:72:d9:cb:19] modulus: b4ff610b5fc3d2488fc25ffaf8c1088afac6055876c1c2be6a3e24d1a1d3350895a2ed7ebe5584ba6ace09f6b9fe9d82435dc76e3287c45a8c46f85df4d15b1a6ee2d95f9c623f8b862772fae8bb01bab88dd12615522a7783bfa9114985a54f70a397b5e3300c596c4ddd6d85013bc26806f7641c17a860180529a1027bc28635e41dce0dbfa1fb4120be8e05424673485ed46be5a0ef364bcd3453a23714806b5bb4d70044fc83ec940fd2921fbab020cb9791ff81e5c661a284965c76250e39444d173d660d4144a2c23cd4926a5e614f6d5c7480c9d6c8a7caea638529bf2be48baf4f7a08e822262fbfd70082dd5ed830a10910bfbb18a18ca421d1ed43 public exponent: 10001 ]