2022-11-23 14:43:42,294 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-11-23 14:43:43,530 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-11-23 14:43:44.581  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Nov 23, 2022 2:43:47 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Nov 23, 2022 2:43:47 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Nov 23, 2022 2:43:47 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Nov 23, 2022 2:43:47 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-11-23 14:43:47.978 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-11-23 14:43:48.376  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-11-23 14:43:48.638  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-11-23 14:43:49.785 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-11-23 14:43:49.788 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-11-23 14:43:49.790 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-11-23 14:43:49.795 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-11-23 14:43:49.853 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.s.a.OpenApiResource: {GET [/v3/api-docs.yaml], produces [application/vnd.oai.openapi]}: openapiYaml(HttpServletRequest,String) {GET [/v3/api-docs], produces [application/json]}: openapiJson(HttpServletRequest,String) 2022-11-23 14:43:49.858 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-11-23 14:43:50.001 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-11-23 14:43:50.904 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/]]} Nov 23, 2022 2:43:51 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-11-23 14:43:52.142  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 10.916 seconds (JVM running for 13.589) Nov 23, 2022 2:44:12 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-11-23 14:44:36.656  INFO 1 [nio-8443-exec-9] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-11-23 14:44:36.666 DEBUG 1 [nio-8443-exec-9] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-11-23 14:44:36.711 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-11-23 14:44:36.715 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-11-23 14:44:36.737  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-11-23 14:44:36.740  INFO 1 [nio-8443-exec-9] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-11-23 14:44:36.741  INFO 1 [nio-8443-exec-9] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-11-23 14:44:36.742 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-11-23 14:44:36.743 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-11-23 14:44:36.747 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-11-23 14:44:36.757 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-11-23 14:44:36.761 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-11-23 14:44:36.818 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-11-23 14:44:36.825 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-11-23 14:44:36.826 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-11-23 14:44:36.830 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-11-23 14:44:37.492  INFO 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-11-23 14:44:37.495  INFO 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-11-23 14:44:37.496 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-11-23 14:44:37.497 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-11-23 14:44:37.507  INFO 1 [nio-8443-exec-9] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-11-23 14:44:37.508  INFO 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-11-23 14:44:37.509 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-11-23 14:44:37.509 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-11-23 14:44:37.510 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-11-23 14:44:37.524 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-11-23 14:44:37.525 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-11-23 14:44:37.525 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-11-23 14:44:37.543 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-11-23 14:44:37.543 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-11-23 14:44:37.544 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-11-23 14:44:37.546 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-11-23 14:44:37.588 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: 598961471972523710048699173609290100391930740123 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Wed Nov 23 14:40:48 UTC 2022 Final Date: Mon Nov 22 14:40:47 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [93:a5:c2:ec:a5:6b:3c:89:43:fb:77:03:c3:5a:83:99:e5:82:9a:dc],[56:66:d1:a4] modulus: c1a3ce296fd3285ac191774e34229eeef207bcf536cfb70bcda69bf4ed13b402d8a6c6464bf30ef004aed2701be029f1c151b1d817d36a1e885f907030648fbd2ccc7a9e15da19240a5a7a837c3d56b540ae87d043dbdb2ffb576c4d1c96432bb4b5a84f71fbef3d7dd96ba3fa94dc26d2d7c8134dbdbfb3a80cc55c5fc39d0371fb17880de9b5dc94f89b915691ea546fced4b788ef879234e44558d0d14c1228a92a36af65a27dc549ed2753ef8de3aeccc6afa9720eedc22bc51dc15447e9432989cca993091b54306553544dd3ef275eb24ec1524ae92d1876ad9fff446aacc8b314b23b38cf5188e61e4f048dde5e92c022d906c436b38ae595ad8978212dd19ca3416480795ce81983382a06893ceec5f701d5ed9138ac23022b52755db9b4e7de69d4cd164cd56794333733e56a64ba8ebf4a5bb955888b9fe6a476c00e9e3ccfb99833915b2bfafb7b48139fea53d1990e453e20673ab66a12c7abe4d93c256f299260119ae1f6cc3dafda6a2a30dec9cde6da95d10b57490e493005 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 8f45d68e0f356cec765d53a5cb44e0e85c832b5b fbdfd3a9b670e2d17ea38c6872a5c469a3c80198 78698c5b49b28c11000a3bbef563bf2a8afc67ed bf0dabda58e0ffe4845be821971d007b4ad37bfd 1bda5d737feea4bffc6aede68509ad16faf42114 89c05eec24510ec2443cbc5e8f0f8da1eba49ed5 846195ebfaeed997b3cd14921ed4d86feaeac84b c5a06b6df0fb7ca279b90771342544269c03f1b7 7de7a78dc0889d585568a81d87e391fca8fdcd60 a8f275b3f5ba7121c5ad8fc6a57491e23d551ea9 110566e4e6f476a05a080d2dc94e94f4a205711a 1a0f3e7b0faf99207101f78290ba8be1fe7f516b 99da391b6d96f7d6ad6831553bc28109afa52142 246064dcf47b9ec9157991c5b57872cb53f6a1a8 c0375d91d5f98afaa439698bff54bcd5913ac42f 79925139055d9f4041ea4b22d23addde09a0d737 c2e43e082ae662f0d85d93ab58996eabdbacb15a 18a1ecde7605aab1008174677ad3e43daff54dc9 0ca2c027b118b9b6d765454a3a773615d0225eed 6bb50ceb Extensions: critical(true) BasicConstraints: isCa(true) critical(false) 2.5.29.35 value = Sequence Tagged [CONTEXT 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 [b1:e5:73:8d:03:39:b5:aa:dd:10:1c:10:c1:2b:8a:ab:fa:21:10:93],[56:66:d1:a4] modulus: faccb492da939eb881dfbfdd9e2216af7ecee985df1a22ddd032ee82b65e23fcaaccabb762c752cc2a2fea7fc1c78d9433a68354bebbd31dcd36fb634c14724d7be4dd5f8d6e95a5df1079cbf4646536b2c7b36ac057eeabcba150130c82886d3db6ad8fd7b322984c5ed1f131c239ce0482d47070939c6dad48c7a86cc2cc255387e8cbe6e29e21b55b19fcb0f9e53d339e8044c4e415e245203144b96805f0061735fe7af37e20c37f5d7a9f88a62ebffc4d6d9f04718f6ff83a495ae09513c8f5e1985ca7ea2e67ec767c7808319a0aeee0b468fae2ff75a4c3752a271b991c9d64222ca6aece0fd4688ccf3c9a762daf0eea01d6a69e64ff7e4d9c2f697b public exponent: 10001 ]