2022-03-31 12:47:57,720 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-31 12:47:58,474 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-31 12:47:59.266  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Mar 31, 2022 12:48:01 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Mar 31, 2022 12:48:01 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Mar 31, 2022 12:48:01 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Mar 31, 2022 12:48:01 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-03-31 12:48:02.121 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-03-31 12:48:02.405  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-03-31 12:48:02.597  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-31 12:48:03.324 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-03-31 12:48:03.327 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-31 12:48:03.328 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-03-31 12:48:03.333 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-31 12:48:03.372 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-31 12:48:03.376 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-03-31 12:48:03.501 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-03-31 12:48:04.043 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 31, 2022 12:48:04 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-03-31 12:48:04.934  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 7.962 seconds (JVM running for 9.766) Mar 31, 2022 12:48:35 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-03-31 12:49:00.300  INFO 1 [nio-8443-exec-8] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-03-31 12:49:00.308 DEBUG 1 [nio-8443-exec-8] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-03-31 12:49:00.354 DEBUG 1 [nio-8443-exec-8] .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-31 12:49:00.358 DEBUG 1 [nio-8443-exec-8] .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-31 12:49:00.374  INFO 1 [nio-8443-exec-8] .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-31 12:49:00.377  INFO 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-03-31 12:49:00.378  INFO 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-03-31 12:49:00.380 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-03-31 12:49:00.380 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-31 12:49:00.384 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-03-31 12:49:00.390 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-03-31 12:49:00.393 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-03-31 12:49:00.433 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-03-31 12:49:00.438 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-31 12:49:00.438 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-31 12:49:00.442 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-03-31 12:49:01.384  INFO 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-03-31 12:49:01.388  INFO 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-03-31 12:49:01.389 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-03-31 12:49:01.391 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-03-31 12:49:01.404  INFO 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-03-31 12:49:01.405  INFO 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-03-31 12:49:01.407 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-03-31 12:49:01.407 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-31 12:49:01.408 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-31 12:49:01.419 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-03-31 12:49:01.420 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-31 12:49:01.420 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-31 12:49:01.426 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-03-31 12:49:01.427 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-31 12:49:01.427 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-31 12:49:01.429 DEBUG 1 [nio-8443-exec-8] 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-31 12:49:01.458 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 618190893503127197575013523374170316258285343581 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Thu Mar 31 12:45:20 UTC 2022 Final Date: Tue Mar 30 12:45:19 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [2f:51:01:26:45:76:d5:b0:5a:b9:ef:53:f9:15:14:0e:9e:e8:d1:5e] modulus: cc3157e190c557ae8f48ba0f6b72c10da960629865bb83663e6c5ea3dd42379f0c9e31dd28009b5bd40d9f892af9e394404358cdf96aee646fad9ebff040110b4c5aac192bc5a2b2f08fe24c28ddfa7dda34aa4baa7d7fcfec910fbd844509b6f0858cd3308f8e276beed0f9e1d80039304059fa332a059c84d66bebe2b49d370d6f9c1f601e0e2058bdf50023d0d90f0dab10d1a6ce4b361e636df712d806311628327a5f2f75fa35380958a0356cca487d59c680a895daefcf8e5e7a87aa1e0bded71c1ea4a1e0b5d0bc71db627dc19c28fef8b46c1b4b756b309952655aa5c4d6cc812767043c3c81f20d363edae179aaf62d8069576337f9fb095d76c30c42884ef713703414504ecd41eba9b675190a0a0295d4727324d8ff8d21e73a7cb93d766320878323ad758638cc713f8cf2750d107b3bdaa5625ae3dbe66a62aee739d6ae430f1b4382526103560c505ab2faac9b51721ae635c2a5230e6e7f01bddd013ad776fd0a61298d61f2d0a08f67b78e0a573119b5852fd2390a143f6d public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: b5424e90523f68300e7f677b6f6a8b2ffc1057c7 3d378dcd0514d479fce6d192bded604e1f7d844d 105165cb4fc4988d203b0097b1a2187e54133697 7bcd94e77e17d7105913f767e5e536a7627431b8 e83376178ed8a0810b86b47309b80708b2cd8a34 4a615572d885599f255b3387b355905022b0e088 bbd81809c732dc8673194d0fa2aa31ac717d9410 6101c148318ecdf43c74d75a061380ace11fddff 338e15cd71cb12bdcafeece082bba2d85ebc06d0 5576fcb2a4b4f9d1890d5fc13806c1ca5480148a da055ca96994f8c52286b2e83ced95f6c2ee34bf 6cd1cc8feda291f86349ca50dfdbec49f4ae9b1d f8d64210457d86533156523b6b7f9ba0844ae72b bc35e5b423e044bb519ed988acc3a4cc33e0ff33 34bc5069df034793c6b5d4e95904b175909712cb 4dab8b136aa7e4798602eb82fa067c09fff5af81 7213dba126f950e9b125db6f0bdab564e06847e9 5a656d588225f2189112e96f35069441febaebe8 85c2bb028003dce3fc16b7f086bb9d98d151325b d9b83780 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 [1e:93:ff:dc:9d:c4:fe:e6:51:13:e7:62:fe:f7:f1:1a:9d:6a:47:4f] modulus: a8e3e869be59bece96d977fcee18bb62d710bc9de929c7c197472e7275619d84ab11d86c7b620f311143808309a02e4c73c91d725b9228af3f9def95f46733b99dbd663e6aacc5112e541d2c99d620ac48a28517e152a70a0b13f4065877364b8ad7ccefbc5cd47e410eabb29f6c074b69a1f838c5ac6a057cf19fe1eb9b2bc6914b8a8720c13b5a84281e80768d017a4aa9a38779fd12dad2ca0cde11a75c94673ccd6accde05f0325e60c6c224247a3667e84ec114f13cc45428f658078b8e32dc3b247d8a1763577d723dc980a0f2d15810c897a6d4ba60848b6048b1598b568c08325f1337189df49cabf556713228bbe68632ef62eba8329cdde29207b5 public exponent: 10001 ]