2022-04-02 03:06:17,689 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-04-02 03:06:19,466 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-04-02 03:06:20.608  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Apr 02, 2022 3:06:23 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Apr 02, 2022 3:06:23 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Apr 02, 2022 3:06:23 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Apr 02, 2022 3:06:23 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-04-02 03:06:24.451 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-04-02 03:06:24.825  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-04-02 03:06:25.021  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-04-02 03:06:26.022 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-04-02 03:06:26.026 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-04-02 03:06:26.029 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-04-02 03:06:26.035 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-04-02 03:06:26.102 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-04-02 03:06:26.109 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-04-02 03:06:26.280 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-04-02 03:06:27.174 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/]]} Apr 02, 2022 3:06:28 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-04-02 03:06:28.564  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 12.329 seconds (JVM running for 15.13) Apr 02, 2022 3:06:45 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-04-02 03:07:00.577  INFO 1 [nio-8443-exec-3] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-04-02 03:07:00.587 DEBUG 1 [nio-8443-exec-3] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-04-02 03:07:00.638 DEBUG 1 [nio-8443-exec-3] .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-04-02 03:07:00.643 DEBUG 1 [nio-8443-exec-3] .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-04-02 03:07:00.663  INFO 1 [nio-8443-exec-3] .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-04-02 03:07:00.665  INFO 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-04-02 03:07:00.666  INFO 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-04-02 03:07:00.668 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-04-02 03:07:00.668 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-04-02 03:07:00.672 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-04-02 03:07:00.680 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-04-02 03:07:00.684 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-04-02 03:07:00.733 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-04-02 03:07:00.742 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-04-02 03:07:00.744 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-04-02 03:07:00.748 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-04-02 03:07:01.483  INFO 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-04-02 03:07:01.486  INFO 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-04-02 03:07:01.487 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-04-02 03:07:01.488 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-04-02 03:07:01.500  INFO 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-04-02 03:07:01.501  INFO 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-04-02 03:07:01.502 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-04-02 03:07:01.503 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-04-02 03:07:01.503 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-04-02 03:07:01.517 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-04-02 03:07:01.518 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-04-02 03:07:01.518 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-04-02 03:07:01.527 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-04-02 03:07:01.528 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-04-02 03:07:01.528 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-04-02 03:07:01.531 DEBUG 1 [nio-8443-exec-3] 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-04-02 03:07:01.567 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 78282239838901710645514280921873464183870048424 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Sat Apr 02 03:03:24 UTC 2022 Final Date: Thu Apr 01 03:03:23 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [4e:ce:a7:76:55:6c:95:8b:4f:91:d5:23:13:91:e7:25:67:9c:15:9b] modulus: b4b034039b35c83a9c175f7abebbc83386d1471d86fd5c8d5b0e96158cb51306a591cfa5a3d9f7107046c5712ec094619e046afed8cb5d4c79efb18af4732c3dcff7e2e3b65de16eb9049a24964373257a3bf31044dd835b1cd76181dc7af882d68e122ad465f31f37a348a682ada6a82544f71cff4baa74c826ad192288fc3782f5e7b316ee5583720202d4abe4b8599482227d4b8e5c3ef16b08b4a2a5f4efb21540ec286320553fdc4eb16066bffc44caee28805c399f140d1d0505322f1e6aedb34cb14dfd86c0d68d5152609fa49b6cd20b3f85cfa786de9aea4c71bf855b2b1afc84c8b456ef669020ab0ea595025e1554b80df2f87a8e164962c616f247210246cc1ddbafc35dba27d8a474b67f337f57076508e3c7a3ba152ffd822980f1fee97c5dc97f1be82793a69bec3a5b1c3a54a2ba9766447f91ffce79c4509ab2c1a06a4e7dbd5ff346a367e76e86b07b1a0fe3857cc8cb09d16d1db81462a1d828a41753f2a0b854ed483d65408b404683aa9d04b827d58ca58473762771 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 77fa9a7a273a02a31fca7498910a9fcb295656b9 95f5f565af2bffc2e6a0e429eecf72d2547d8e61 8936dac4dd40a1302aa9569baaacc4b68309fe88 efd7bac60496a30db7a8e7dae365be683751b377 472a3107ba22111d04833c76a0cab7add6a9119f 37db0bcbf1c5f0d1cecec5c31469506dcdfe9801 e2bc7182f6797eb6df302b70538d9a40ad6f04ea 4774042515ee686c39832ec924e923ed0cff5512 4b626b6b7d47bc149ed16696ad185a76de7eee52 f324d2e33314c5313f6985c3190ea74fb4c08b8e b86a4418da7a2a16c974ebe70e3936064e437e15 b685721f00f63f73f77fff7216b8f5fe74a45f14 7584af5b08be9902a7e47c18f7d0f386a380bd94 05f1da3caf8eb49a2671bb55117e090e5443b27d 3e6c55bc1c54f9fdb9e5cc6c76f8ad221ebad34a 52572c84f6695dda484220179c492b57d52d8e54 1f51a173f34eb6ef754063d829e46e72a1b77691 196d81803db094f18668c5811581a75d0d0a0b32 45b322153aa18b121f77a8d4879a0f77d06602a1 cb7fa31d 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 [eb:d4:79:1d:ac:17:49:f6:2c:da:e1:75:44:24:01:ea:f1:b1:84:db] modulus: c17f05d594ac3e983a2a55cba66cc25d7c9b83947407ab8ad3f215e117d8a6a890bf3c07076c49a053d98dccc9d9cf9d8425bfe8fabd671ef7173f05d4c9d572c9c500603961aa5b58c1929a2f85849510bee3e078006db5f1202791e90cbbd76bcb686ec032fdf22564b6ca989dccb76f576b3c6b8cf41f46337102b2798eec8a93253593c3cbc8534ae1e07d9461ddd16ceb56b2f98079602031db8de9fbbc951e9b415eacc977726522dce242d5c63106e92188b1abbfe66c04df007e1f8b0e66f57f2e75820217fb536c0115f3081226fae9829ebe9216a471aaf7611bdc0f5453e5cfd2cf1620f0f87443397d6744d296d37800f5782bad747b77c9689f public exponent: 10001 ]