2022-03-16 23:09:25,254 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-03-16 23:09:26,249 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-03-16 23:09:27.203  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Mar 16, 2022 11:09:29 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Mar 16, 2022 11:09:29 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Mar 16, 2022 11:09:29 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Mar 16, 2022 11:09:29 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-03-16 23:09:29.643 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-03-16 23:09:29.925  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-03-16 23:09:30.085  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-03-16 23:09:30.708 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-03-16 23:09:30.711 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.CertificationController: {GET [/v1/certificate-update/{caName}], produces [application/json]}: updateCertificate(String,String,String,String,String) {GET [/v1/certificate/{caName}], produces [application/json]}: signCertificate(String,String,String) 2022-03-16 23:09:30.712 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-03-16 23:09:30.716 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-03-16 23:09:30.767 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-03-16 23:09:30.770 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-03-16 23:09:30.889 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-03-16 23:09:31.500 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/]]} Mar 16, 2022 11:09:32 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-03-16 23:09:32.446  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 8.011 seconds (JVM running for 9.482) Mar 16, 2022 11:09:56 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-03-16 23:13:25.421  INFO 1 [nio-8443-exec-3] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-03-16 23:13:25.439 DEBUG 1 [nio-8443-exec-3] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-03-16 23:13:25.529 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-03-16 23:13:25.535 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-03-16 23:13:25.556  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-03-16 23:13:25.559  INFO 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-03-16 23:13:25.560  INFO 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-03-16 23:13:25.561 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-03-16 23:13:25.561 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-16 23:13:25.565 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-03-16 23:13:25.572 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-03-16 23:13:25.575 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-03-16 23:13:25.616 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-03-16 23:13:25.620 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-16 23:13:25.621 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-16 23:13:25.624 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-03-16 23:13:26.174  INFO 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-03-16 23:13:26.177  INFO 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-03-16 23:13:26.178 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-03-16 23:13:26.179 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-03-16 23:13:26.189  INFO 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-03-16 23:13:26.190  INFO 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-03-16 23:13:26.191 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-03-16 23:13:26.192 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-16 23:13:26.193 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-16 23:13:26.206 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-03-16 23:13:26.207 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-16 23:13:26.207 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-16 23:13:26.215 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-03-16 23:13:26.216 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-16 23:13:26.216 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-16 23:13:26.218 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-03-16 23:13:26.255 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: 636744242710619150526953877907091247223840006369 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Wed Mar 16 23:06:29 UTC 2022 Final Date: Mon Mar 15 23:06:28 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [ce:ec:0e:9c:df:ed:02:b7:8f:49:36:66:84:07:c6:1f:e2:c0:cd:c0] modulus: aa56a0fc711deca610a285444f2e9606e5e1bcdd0a4b80bd7825d8b55d539422e615ea2e3fe408298af99110be602629426ad4cd9c903b76fc0816df50e9281598760ce20a23052bd90f822140d71aa0ce96fa2c7670c18c72b9906178cd654090a6888dac767b3934786c1b3d87e991bb65617f82892c51a26a624d7d8da821f00bd0bea2fb767efb8c7c71cd819bd0a1add0ae27ffcddbd7abc0cabb9aeb6dad3a7f2eb5f765c966ffc65d60057dbe3bbc20930fdb3bd44b6404b7d297f95142c4f1e36742a9907436e60f34e1c41af13636e2deda387573f211bb53ee5a333c469ef3bfdd08633c60cdca81bf281afff91bc5b81e2e70d340bdd6e00ff0bbbe0376879c12a51417df239ee84b2281de1fc9b51380a4df77231d9dddffd6f2942914ad5b1fc166622001177e7b2786ea99f9e733658461081dc02cfc963329f0c8f6523d24f82ae209ae4b2ab34599e18a35172908c2f9f4fc7dedf327f0b717d2e0b5f4b62ab6cbd1da787dbb688fc94366efd226673befa68c36fdfeb461 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 844b435eea211148d86d170daacfb600efff38e4 133547bd077e094d3329837dd00b3488908f9fef 0ff891a94ad4df1b1cedfb08f3b8610bed44ca27 e4af0d229417b6be3bd461b5e00b96751e939495 7bd2e8c6a4f44c58100779d3e56d044bb50ad800 92f2841794973c9487bad6984641c2a3a81c5459 167ed68357848160aabb207f133403493dc80d9d 76bd4cf60bd69dfc2853efe15ec662cefd3579fd 91e35dcd4f88194dbf47034767fff8adea8c2b00 2c590d2878f2369e80fcd8811d8b29b29a51da77 4c59f1d51e9c4e57e436caa7638f2b80a0a07b77 d28cb281603a78c20b7c2b827ca1df859ba28f8a ead3acadba9e35a653cb6fffb0746036c93459fa 44763278141b9cbd27285f2689b16cb4cc638ee9 8e798c3566255720d41b135de037bfc561daebd6 373d137db9b86db73bc163602e110ceb522ec9f3 ff0ef1eb1bce62e5efaab8738f96ecfbfe888f23 ef14b872b5bdf04e6e8be4427c9a99818ac34820 0f333681cf546ba19402f00f19618e25d761e9aa 90596153 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 [ff:2a:1b:c0:81:91:29:be:f4:5c:6a:78:c9:8e:22:32:4d:dc:3c:a3] modulus: c114fe3bf1d8f9a2bb29414d516f4701b78357f79e06513d7a52e58427c1aab63157fce9404fa60c1c0b8a51b722db8414b0f8d38b2cf9f47656e1c4e6ab0d9a7e1077ab853e782a2fe22eca6b4fd713251808f7871809b9bf5d30c502a45308365c34816680f524af308f90a9446dde842dcb077d6d9dfddac3d32713f0a28fd9866f326d123551492c1e5550806b341c32bde13bb5578d34517c97ed3ded4e2f8d823f1d356bcb91a4ae8b1c9763ebdca4cd115e3be2a83c1501219182b6f1d18ea177d3937707adc4ffd991dc7d7b0dd5711cdc620733ac5d02a979eda733b77f92ee6f27fd60068e23cc9ce4817350e78957c317627bc4626e7f185dbae1 public exponent: 10001 ]