2022-06-10 08:40:45,062 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-06-10 08:40:46,204 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-06-10 08:40:47.221  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Jun 10, 2022 8:40:50 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Jun 10, 2022 8:40:50 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Jun 10, 2022 8:40:50 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Jun 10, 2022 8:40:50 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-06-10 08:40:51.101 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-06-10 08:40:51.486  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-06-10 08:40:51.748  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-06-10 08:40:52.612 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-06-10 08:40:52.617 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-06-10 08:40:52.620 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-06-10 08:40:52.625 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-06-10 08:40:52.694 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-06-10 08:40:52.700 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-06-10 08:40:52.862 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-06-10 08:40:53.646 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/]]} Jun 10, 2022 8:40:54 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-06-10 08:40:54.824  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 10.813 seconds (JVM running for 12.993) Jun 10, 2022 8:41:18 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-06-10 08:41:49.489  INFO 1 [io-8443-exec-10] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-06-10 08:41:49.502 DEBUG 1 [io-8443-exec-10] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-06-10 08:41:49.580 DEBUG 1 [io-8443-exec-10] .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-06-10 08:41:49.585 DEBUG 1 [io-8443-exec-10] .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-06-10 08:41:49.615  INFO 1 [io-8443-exec-10] .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-06-10 08:41:49.620  INFO 1 [io-8443-exec-10] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-06-10 08:41:49.622  INFO 1 [io-8443-exec-10] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-06-10 08:41:49.624 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-06-10 08:41:49.625 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-10 08:41:49.634 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-06-10 08:41:49.644 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-06-10 08:41:49.650 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-06-10 08:41:49.706 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-06-10 08:41:49.714 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-10 08:41:49.715 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-10 08:41:49.720 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-06-10 08:41:50.672  INFO 1 [io-8443-exec-10] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-06-10 08:41:50.676  INFO 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-06-10 08:41:50.677 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-06-10 08:41:50.679 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-06-10 08:41:50.690  INFO 1 [io-8443-exec-10] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-06-10 08:41:50.692  INFO 1 [io-8443-exec-10] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-06-10 08:41:50.694 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-06-10 08:41:50.695 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-10 08:41:50.696 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-10 08:41:50.712 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-06-10 08:41:50.713 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-10 08:41:50.714 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-10 08:41:50.726 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-06-10 08:41:50.727 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-10 08:41:50.728 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-10 08:41:50.731 DEBUG 1 [io-8443-exec-10] 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-06-10 08:41:50.780 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 379297500384553938004913441791790778669954954823 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Fri Jun 10 08:37:10 UTC 2022 Final Date: Wed Jun 09 08:37:09 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [c6:2d:5e:36:b4:e2:e7:b6:cf:c8:c5:98:46:9b:02:26:d0:8d:f6:34] modulus: f56e0e7ae87ea63b81a196424cf196492918a4788ad844d0f5f1edf7e2fb6bc10688757ba6dbd5d7f3cb5fb1b881332752935395049e302688d2d5fd60d6f2010cb17863ab9ed479fac638f042ce4ee9a50e1edbe8c78548f20fb9ce14aad35d3d4d8ce315efc5fa3f3e99a9a56f424875e997471cdbee4e899ee52a18dc8a4b72d12968810866978ce6def7cf482439262815ffae21ed7461f42a00cd608e7b8771c408ea42984d22211e517d2a78cf1355582971a327a503b6eb7e9be6d13633bcd00f2a69069fe1244349387c8ea493faff0007bf820e9b9af64a75fadfb9c49fe2983e4c1091ea2cbf4e3d499f38fd97168030ace0194f8177661459909cd7e80a9ff57609d3fa464ecff1a35e62c34a80a372c16007c5ebc830c87bb6520d705462faf0d7616d25e24b285af0cc05e59296742a2846a0c65aa162403fb0584827fd26bbba9744437c34da9e8f930b24c50d2ce450bd3c345e9616d96845d05bf242275bc67794a43117cfb587c2230a7c7e862e7dfe4466fd1a259b9859 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: eb1ccd8bdf0d2aef4b57a514c857561b71a58668 b2a246e183700c289fd9191e36a0c71b26d7219a 98546c8d0d56a5e8ca89a025ab62783b1e039f61 c87c5de3efa5718e05f43c29787da86a6205fd53 966f2359072f4b0d12ae0c6a5dc9e38aeb64abff bd03ac0afc42d5eaef2e42a4e3d3446e95dce7d8 eb55d7e79b00c4458211ee7526885bbcccf66535 c8ab08f96f3d9fa33c90b459d326322edfa93bf2 ff4e28063b972ddff056c185a15aeae780b33364 2ebb6fa201fe7a8a9fb5a720798e354c1bdad746 d83eff71d3f59437fece0bf00d20b1f1fdbb70af 249a457ffbe4520be55a4c5f71fa0d513348bcd1 ba2b43aa80b7259baec5825aa778695fe35f5308 523659a80e2422c17a5b93aa8c92da40446a597a 4f5bd9eabf7b077c65fd42198b508ae94b97339e 83d65c557f3b5fe05c94f4a9c65066f7141a4b40 f7853d99a282415b8a0c03044c41007cff892399 9a3c7f9ca20deb308bf08d73249a5523e107c576 3cfea8d8968cfbc083ed5171fe009843102abf18 03841112 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 [24:d7:31:96:62:50:b5:85:3b:b8:6c:ff:62:f7:99:bb:0c:99:21:c8] modulus: c486475333c5e8485a5620a84df15561fe56fcb52e67d661d07769ad6d11176018aac7cbaf645a2bb9b054b0fa05c9d03c73b6793e45cdaf44ff0c849d3fbcc6c5387979514fdf3c0801535bd80d70ccd7e72a0b0d3b2dbbe696c8b8dad3233c8950a0dbbdc059a3a3c8d3a14ab4b3a9a0b602c2893ec2efe95bec21dd9fca367df73b7f48371a866c4cf04cb37de09bc46c711df7b583bf0f524ca21e2ae67a1c13ba47edcf6d529d2e3d01a33a4579cd7884b1ee86b4987685e663318507553ae5751bd15b5d4bc26b2b538594845aebc495b1c4e6def66203ae6351d4b4d8b73deb8e8a94083987116ec25f3597d6d8464eaec7f8f624960aa6762f4b6b89 public exponent: 10001 ]