2022-09-30 15:15:52,787 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-09-30 15:15:55,716 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-09-30 15:15:57.715  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Sep 30, 2022 3:16:01 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Sep 30, 2022 3:16:01 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Sep 30, 2022 3:16:01 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Sep 30, 2022 3:16:02 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-09-30 15:16:03.181 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-09-30 15:16:03.838  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-09-30 15:16:04.216  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-09-30 15:16:05.889 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-09-30 15:16:05.896 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-09-30 15:16:05.899 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-09-30 15:16:05.911 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-09-30 15:16:06.000 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-09-30 15:16:06.009 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-09-30 15:16:06.252 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-09-30 15:16:07.143 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/]]} Sep 30, 2022 3:16:08 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-09-30 15:16:09.061  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 18.786 seconds (JVM running for 23.364) Sep 30, 2022 3:16:22 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-09-30 15:16:52.406  INFO 1 [nio-8443-exec-9] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-09-30 15:16:52.458 DEBUG 1 [nio-8443-exec-9] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-09-30 15:16:52.639 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-09-30 15:16:52.654 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-09-30 15:16:52.699  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-09-30 15:16:52.704  INFO 1 [nio-8443-exec-9] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-09-30 15:16:52.706  INFO 1 [nio-8443-exec-9] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-09-30 15:16:52.709 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-09-30 15:16:52.710 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-09-30 15:16:52.719 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-09-30 15:16:52.739 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-09-30 15:16:52.746 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-09-30 15:16:52.823 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-09-30 15:16:52.836 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-09-30 15:16:52.838 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-09-30 15:16:52.846 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-09-30 15:16:53.896  INFO 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-09-30 15:16:53.901  INFO 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-09-30 15:16:53.902 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-09-30 15:16:53.904 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-09-30 15:16:53.932  INFO 1 [nio-8443-exec-9] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-09-30 15:16:53.934  INFO 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-09-30 15:16:53.935 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-09-30 15:16:53.936 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-09-30 15:16:53.937 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-09-30 15:16:53.966 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-09-30 15:16:53.967 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-09-30 15:16:53.967 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-09-30 15:16:53.980 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-09-30 15:16:53.982 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-09-30 15:16:53.982 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-09-30 15:16:53.985 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-09-30 15:16:54.056 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: 434116916682262539322280758633489654382348481933 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Fri Sep 30 15:09:37 UTC 2022 Final Date: Wed Sep 29 15:09:36 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [8e:a3:62:1a:6b:49:d6:dd:50:26:34:fb:36:a0:6b:83:e3:49:3a:42] modulus: e0050dbab7386eabef4e9178c2b0661eec54a066ab40150d629713f884c2de636922e63044dd0b7ccadac38d77fc67fb2da65735d3ddeee310376393489a51b59d86fa5f428ba911d580e17f254047027303f112e2c8c1917a31b5a31edede63ab45c366a28cf11b3cc047424267f63f2b41c488ffda228d46d668ac1018a19915a0f5686524afb3a1b8b267c0bb6dce771f13432e8a6ca660696207cfe024a606a24fa5d575abdc4962ab6930324ee8a4d308795bf854ee719d433e64611b6ce1ff0798373745f90ab46f8efd4b1c6dfbf73553099a0bcb7dbbbaa0f0afba019199553c32f82fd3cd05186cef077c3fc3d251051c170719e83dbdefbc1f34ec1dc08a4066195a29c6fab507a0fa3a1d885c97c0014927248d8d962a64871ce99e42bca3c7add9fa7bc8d73dc5d1a571c5052d3b14c4cee931ec66005108b51411c4f309b6e365050cd86d3ae09d0474a7225a640ce9c5f4cdf2e7bb6274d06287c298a156cf5378912d3086b49d812f0da4e7a722cdce7e54fda69f1b86f929 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: c3e2d1742ad58285494a23681be0ae24dac1dbd7 17b5cd0d1473f5840b056dec537f0d2e7a7bbfa8 7cf1a6427d234d04a8d61693217ad094ebe1ecfa abfb7c0bff6edd971dffea007b8681d5976b70aa b9807d579ada8dba34aba267e38578bd579212ea 0c250f2761af0c8d252c22d1c696dfe9da1025b9 d7ae1b25b245a8bafd273fc3a2e9003f54a90a2b ac95c126462defa6c4585dcffefc72a0e1e7f9f6 f1ec3d3e8d873eeeaf9ed19d86e73b48915739cd cd25749be756743235491dbe13a08fef3802a4ad 1871ae9a4c47513a1980fd97cc4b85f5a3e10025 813de6a0c8b2647b00c204ac1350a0938c335b4b 5c9cd7db393ceb10a9984cc14891b3fedbdaff42 af2866343d20cd2867dd68d12d4c5b148a849f07 4d6ac70442d760988f49eaf4b2b0dc66775e78cd 5f079c97e38b9ebce140a056c06d7a98914ec442 68627828d7ec1e3946397ac8233ab107df26a6b6 02d1fc07b5de7db2190302e83c75c5198d1fc6b1 7004c044b570686a3c33c6f4616a3070c19538e3 793e1ecc 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 [62:23:5a:dc:3e:79:c7:a0:91:9f:1f:a4:93:11:f5:3b:7b:1d:cc:1b] modulus: 9e5d45be4ea03e3cbcf416728b63e0f5aef6c408dd8dacd926a66ee1428edd46c81efa619d87a7f8be86d4a9d5deb9285660932b81e98dad5ef703a12b67330269791d2bb17682da0bac79c2847ffaf765c1bfeaa2e57d00b44c37cf158ae9f15f765501de16cb7f8cb8f0260d2a4d242ef5aaa718ff0d7ad0698e544017ced471e830f108d816c83fa8c3ef3acffa4d8d1828ca98721eb08cf714048530083102a69b85d21ae047c5ae1788506bfffe9d9c2fc502997a914882636bbb1fcbdc6214b3aec0e61f341a6038600aaf129f2ab1ea1f810495991aa67e80c80a4e9e3d1fece16e09a63dfa8d29c97d8f71756848d1bdb91e5926a17efb16c9206c9f public exponent: 10001 ]