2023-01-24 05:21:14,742 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. 2023-01-24 05:21:16,531 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) 2023-01-24 05:21:17.454  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Jan 24, 2023 5:21:19 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Jan 24, 2023 5:21:19 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Jan 24, 2023 5:21:19 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Jan 24, 2023 5:21:20 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2023-01-24 05:21:20.624 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2023-01-24 05:21:20.951  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2023-01-24 05:21:21.169  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2023-01-24 05:21:22.201 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2023-01-24 05:21:22.204 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) 2023-01-24 05:21:22.205 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2023-01-24 05:21:22.209 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) 2023-01-24 05:21:22.251 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) 2023-01-24 05:21:22.255 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) 2023-01-24 05:21:22.373 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2023-01-24 05:21:23.275 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/]]} Jan 24, 2023 5:21:24 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2023-01-24 05:21:24.697  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 11.454 seconds (JVM running for 14.276) Jan 24, 2023 5:21:50 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2023-01-24 05:22:05.675  INFO 1 [nio-8443-exec-4] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2023-01-24 05:22:05.687 DEBUG 1 [nio-8443-exec-4] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2023-01-24 05:22:05.753 DEBUG 1 [nio-8443-exec-4] .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] } 2023-01-24 05:22:05.761 DEBUG 1 [nio-8443-exec-4] .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'} 2023-01-24 05:22:05.790  INFO 1 [nio-8443-exec-4] .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] } 2023-01-24 05:22:05.794  INFO 1 [nio-8443-exec-4] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2023-01-24 05:22:05.795  INFO 1 [nio-8443-exec-4] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2023-01-24 05:22:05.797 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating random integer 2023-01-24 05:22:05.798 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2023-01-24 05:22:05.804 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating random integer 2023-01-24 05:22:05.816 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2023-01-24 05:22:05.823 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2023-01-24 05:22:05.901 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2023-01-24 05:22:05.910 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2023-01-24 05:22:05.910 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2023-01-24 05:22:05.917 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2023-01-24 05:22:06.581  INFO 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2023-01-24 05:22:06.592  INFO 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2023-01-24 05:22:06.593 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2023-01-24 05:22:06.595 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2023-01-24 05:22:06.606  INFO 1 [nio-8443-exec-4] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2023-01-24 05:22:06.607  INFO 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2023-01-24 05:22:06.608 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2023-01-24 05:22:06.608 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2023-01-24 05:22:06.609 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2023-01-24 05:22:06.628 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2023-01-24 05:22:06.629 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2023-01-24 05:22:06.630 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2023-01-24 05:22:06.636 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2023-01-24 05:22:06.637 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2023-01-24 05:22:06.637 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2023-01-24 05:22:06.639 DEBUG 1 [nio-8443-exec-4] 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 2023-01-24 05:22:06.674 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 65663574674857335830029640474820600770100530899 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Tue Jan 24 05:18:36 UTC 2023 Final Date: Sun Jan 23 05:18:35 UTC 2033 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [1c:30:d0:ae:e6:f4:48:3f:24:5b:09:6b:37:2e:57:34:70:74:f2:4c],[56:66:d1:a4] modulus: ca2d37f7b30b976eb77a51ff1729358c205193f235ae9d6ba960eaafba3d48444267744a945bda77f203d0043270917392e8324af994eb4d409f7dd4b9a127aa69c17a28fe436e43708b14dd17231b9af14ea19503d8604b4431b9d01b0b2ffcb10977ff10988a7677ba76ee04f3d9646eedbdfb68e03868d8d7dfc0aa10a8b62da74eca436c20740bec56e40e217ae1a573fe3ca653398403f98b47325f10a388fa678b82db09dcf297eae25c8d479a66750f6cb1120b15a6793d501ae7f04becc159bf52fa73ebf13a0ff4928119abbbb18d9413d3e2eb2c2ae150e9053cfa8da643ff2c822ff14b7b06a2491a0dfa94d0057523ebedf3192ad8ef3d943a00ce8d3b6243394ea5617d3393662b437958330a512637a24b848a7490b65869743a954f589fcab1beb7d7c99cfe644d2b0628a94d8681a9e1811edf63a6279041662d8a68f6ef3b3405f02d9a787e1145ea482f3f7bf807af671a47cba76fe5d342e51349bdf001843f6cda351fb9a55c18f2c7c096e2e63f8dcbfd67214fa2f3 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 279464ce61275e683969fa8ade3436f79f5e711e 2a27ae40c591fe1002d047d333c833d21f1913ec de34c455ca84a2e95849ba446d557c9cacd855e5 31fdbde5451f553062e20ed052f34d8da6d38b8b 2fce6ef1ff875b91fbd7216e40bd4ecf9de84305 96ca2710a228b3cc0add644cd5e5f453e479744c 2ad4e58670b02607747ecb08061e2fd719302954 02bb75eaa98d1e9320cc056e5f78241cff90934f cab5805edb72cac4dc95638857e8cabffa9da944 e5e51647b3c6d39e2cee630916ff4ca5bf68123f fdb7ce8d3db8b9a8c5f6f7941685edbad92e3d23 40ecfb745abb0f2fff15b28453f0aad5d0ac658e f46ab4c6f7afc4d65c511cb9a049140e7949469d 92b677a830103fa56b0976d09f3cfbd84b862f23 dac9b5adaace582c1876da9f12b7df37cea617a0 93972c7277a96fc62379d464918c95840c2e76d3 f0fa6b6026011d26eb48d8d196cc674466d3bd91 23b03a4f14e158761a024420827f58cddcdfb762 24430cf618a2dd1ff0008c0127b0059111669a7c f3c4dc66 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 [ad:b9:dd:a6:38:17:af:70:a5:ab:63:3c:87:5f:2a:dc:45:9b:fa:bc],[56:66:d1:a4] modulus: dd2051bdd616b5a3d818d1378d2a3dadf374a8f65239d0483f93e5ffb79e097f4a5b43df0bb34f220b30e24443130d5ba050427aa2b46a247628dc8ff30faad076add348797321f707543aa854663fa6abc780eaac299ded7f08875ad7919a7e5128dfc711a13561eeaf95cf936a3fb3296f26315b308c2f0927a825c63b56e22b4000e5ae0c96da88fb1ebc5ca8a09934f00dde6410756acff5f4f5fd0dc9a585703612ba3b464d3ad38c64def3986d37e324c4da1b80b3c8299c48b6a91ce7be59edc7e8c47b0c3ef25b8b2b58dd5ed13dad802bd34bb86a296cf26b4e6ec80b903956ca36c46eedc4adf0473d9f2ce87804472a1998d5addf32f97272bd3b public exponent: 10001 ]