2022-06-27 04:42:46,210 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-27 04:42:47,840 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-27 04:42:49.133  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Jun 27, 2022 4:42:52 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Jun 27, 2022 4:42:52 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Jun 27, 2022 4:42:52 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Jun 27, 2022 4:42:52 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-06-27 04:42:53.295 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-06-27 04:42:53.710  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-06-27 04:42:53.978  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-27 04:42:55.014 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-06-27 04:42:55.017 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-06-27 04:42:55.019 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-06-27 04:42:55.027 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-27 04:42:55.082 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-27 04:42:55.088 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-06-27 04:42:55.283 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-06-27 04:42:56.233 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 27, 2022 4:42:57 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-06-27 04:42:57.745  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 12.948 seconds (JVM running for 15.981) Jun 27, 2022 4:43:12 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-06-27 04:43:44.797  INFO 1 [io-8443-exec-10] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-06-27 04:43:44.810 DEBUG 1 [io-8443-exec-10] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-06-27 04:43:44.871 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-27 04:43:44.877 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-27 04:43:44.907  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-27 04:43:44.911  INFO 1 [io-8443-exec-10] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-06-27 04:43:44.913  INFO 1 [io-8443-exec-10] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-06-27 04:43:44.915 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-06-27 04:43:44.916 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-27 04:43:44.922 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-06-27 04:43:44.930 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-06-27 04:43:44.934 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-06-27 04:43:44.994 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-06-27 04:43:45.001 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-27 04:43:45.002 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-27 04:43:45.010 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-06-27 04:43:45.807  INFO 1 [io-8443-exec-10] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-06-27 04:43:45.811  INFO 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-06-27 04:43:45.812 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-06-27 04:43:45.814 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-06-27 04:43:45.830  INFO 1 [io-8443-exec-10] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-06-27 04:43:45.831  INFO 1 [io-8443-exec-10] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-06-27 04:43:45.833 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-27 04:43:45.834 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-27 04:43:45.835 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-27 04:43:45.866 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-27 04:43:45.867 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-27 04:43:45.868 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-27 04:43:45.880 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-27 04:43:45.881 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-27 04:43:45.881 DEBUG 1 [io-8443-exec-10] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-27 04:43:45.891 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-27 04:43:45.937 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: 517788084044124988646161479176244775649986218346 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Mon Jun 27 04:40:10 UTC 2022 Final Date: Sat Jun 26 04:40:09 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [71:f7:41:21:ba:9e:28:18:00:d7:c0:c0:b3:0f:6b:14:c7:48:07:e4] modulus: d5865913ecf416c1bfdede5a1684cd676e22b847479c80ccc540af0e78d1a767eebba02d3c8d568072a0958bf5ecbc6f39cbdee7d1598e4546196898760d728b415a3a4cb6e785fed8ddb7c4be99b2fb1bb99e4352c3992483df934ac3fb0347a991d0f11b1da7a6aed734d969243b4b638a974f09872b48203b90fee01d1f55da82f26f2d4c442761cecf5065f06ff7ae2a6d4222200928dac0eeae941d15ff6cd24091ba35718f4010a0a23e4f9a350116d9660cea58cacf15a91b41040442c0300d75dfd24c4e52ec51a69852b6983dd49dbfe8ebf0b4863d0e7d4ddd0ae421e10457e0837ef7d9be328e3412efec09df62f589f2889737a7284d094ff54dc2782dc75686741f2d6cee9438c059c0c18568e4bdbbc73a4827db52d5cd0541e0fb3a590c18711c57b476140fc6ce2e3949e3df46e6475147587adc25b2241ef012a531c467e047b973064058f030fe87b49c746378524b7e9cfb8ec5a03888f57287a44f08f658141eb323e29f11e3d8ab84c388f9b5a730597bd90582d4eb public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: cd1aea153f8c561d6c240efbec685adafd719e84 22787506539fd54a26e5e089460286f769b42831 c08dda3ac668acd9208f52e5266eddc26ac383a1 4fbeb621dd7f83b6ffedaa9bc9aae09af50f6185 e24b3c9849ebb34c9e785e1c090ed83524ca5d45 dc32468da896d9ecb30e8c913cfd901b2cd46a99 d517f51470b00345f0624364085ebf348b683536 42b79e8fc995746a96fa1c3fe21aa67cfb0821a4 4ca7f1fb229b33757ff0bcbcc0d92f70bfda16cd 02dfb4bbcc556ab43420ad7b92e755265bdcd05d aeee35fa6abed3b8ef3505aa35383977f415996b 2124f6063e70f509f582a737291a7c49066cbcd0 6768a0c805c9006b553593df9d4722a24dd4ea29 735c5b4648212db59095210e61fbc37a0a7a6153 216a33c860d8abc0e6569720a1a5fb5cee8df029 9ff57fca36cfff9b8aab8ddbe6ee0167d46c822b bd23ae57cf0e7e5e96a07900500d495c96f974aa db8f13f6091f4177ce3dc4744750bed8a712d3e2 d5d17d470faf02ead54a8ed5ca7edf06952766b5 aa0978dc 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 [73:70:44:3a:28:c6:c9:05:0e:e8:c9:ac:25:bc:d3:a1:83:c9:ae:4c] modulus: bdaa18463930f019714c50b7e1d1995d38bf8f5a6c5d5a26211ea1b31b0aeac42ef2444b1c869b08594db434cfc386c08a829e05f56053dd55c1b40b73136d5d43ab028dcaaa4c2a3835873be8934df57ec04d58989e581073129f0e4ab34a1ecc3160f5ad8e77faa3e690a90bbbf684593b07dd34e66bd0b321e8b0e41b966afdb130e79c2154852bac0cff975de1b741dec0279d226926805fd957a2d2463e4c366ebb68769c333aac5c032d356b4346eae787257fc3a367f30dc8628f833bbfa6e4f35c2e1faf1ddb0ee67afaa2996a07398e90cc6aa89e088155b5a845b5babd18763fb830aa359704c610950b58b92c77f72bbc35f57a2ee5b098d71909 public exponent: 10001 ]