2022-02-08 12:14:11,148 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-02-08 12:14:11,815 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-02-08 12:14:12.376  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Feb 08, 2022 12:14:13 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Feb 08, 2022 12:14:13 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Feb 08, 2022 12:14:13 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Feb 08, 2022 12:14:13 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-02-08 12:14:14.222 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-02-08 12:14:14.454  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-02-08 12:14:14.579  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-02-08 12:14:15.067 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-02-08 12:14:15.069 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-02-08 12:14:15.070 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-02-08 12:14:15.073 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-02-08 12:14:15.103 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-02-08 12:14:15.105 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-02-08 12:14:15.199 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-02-08 12:14:15.678 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/]]} Feb 08, 2022 12:14:16 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-02-08 12:14:16.442  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 5.927 seconds (JVM running for 7.258) Feb 08, 2022 12:14:47 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-02-08 12:16:34.509  INFO 1 [nio-8443-exec-6] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-02-08 12:16:34.522 DEBUG 1 [nio-8443-exec-6] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-02-08 12:16:34.571 DEBUG 1 [nio-8443-exec-6] .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-02-08 12:16:34.576 DEBUG 1 [nio-8443-exec-6] .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-02-08 12:16:34.607  INFO 1 [nio-8443-exec-6] .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-02-08 12:16:34.610  INFO 1 [nio-8443-exec-6] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-02-08 12:16:34.610  INFO 1 [nio-8443-exec-6] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-02-08 12:16:34.612 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-02-08 12:16:34.613 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-08 12:16:34.617 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-02-08 12:16:34.629 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-02-08 12:16:34.633 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-02-08 12:16:34.671 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-02-08 12:16:34.680 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-08 12:16:34.681 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-08 12:16:34.685 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-02-08 12:16:35.242  INFO 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-02-08 12:16:35.245  INFO 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-02-08 12:16:35.245 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-02-08 12:16:35.248 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-02-08 12:16:35.260  INFO 1 [nio-8443-exec-6] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-02-08 12:16:35.261  INFO 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-02-08 12:16:35.262 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-02-08 12:16:35.263 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-08 12:16:35.264 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-08 12:16:35.276 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-02-08 12:16:35.276 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-08 12:16:35.277 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-08 12:16:35.283 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-02-08 12:16:35.284 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-08 12:16:35.284 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-08 12:16:35.286 DEBUG 1 [nio-8443-exec-6] 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-02-08 12:16:35.366 DEBUG 1 [nio-8443-exec-6] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 453540363091107467802520856297579923726912846075 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Tue Feb 08 12:11:41 UTC 2022 Final Date: Sun Feb 08 12:11:40 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [9d:d1:c0:48:e4:f1:b7:5e:cd:d7:14:ef:8a:b2:6e:30:23:be:e1:cb] modulus: ca1f86012f1e637628f8d82e933351acd04e518efd9fad87791beb7bc8ef3c6056271ee874395074c8f3b44ea08ad887dbfea6bbc09552f9061405a4f23ca18e9033fb1532e2f4bf827213d68d8a488407adba8b183b9a59e13d606b06acce16c7f60249e2ded3628be9c853b52436a53154693e95299de3fdafeb347fbd3040e95ab11729f86b670910fa581f51bd1b8d332ffbfe31487babf9928fa6fcd44ce139088f30c9982165760945080482306ed9debb7c1b15f079b3930d327db25f30a0c7d8e59fb0158a362649a5cdc61249e08f931bd521e6a4afdc424703ccdb119561e864dcbeed16677491d416af83f86cae6220d394fc5c5c22e45851cab2d2beeed57f6562f34f2d61b6a77839757ef80d21ce721f96fb6c748403f31b27edb8df0fcac2eab2f5b7c641c507d76f973dcb150ee819ad91774c16302f0366c1a1cb1053ba1a5d832298096c7d775a8e29a9d0c413a40d658d324d61aa7c86340f2cca32b43cb1800ba7e63203452183295588e6c27ff45eec39e057004da3 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: b4e56474a00e64c8787858d92d0b36c5ac3b4a95 dba368684aa85631c1f10dc6b8d3069f81a8e833 b76e5c6c5434ff9fea84f07754ec0866e56993e0 37018e31e7bcaf773de11c025c188f6fd1bd1b02 b4446242b8c8db8bb18432b49bc2327aef725967 fda4682e301302201d3cf2d02476c3e267a07444 64f055f5092cb39757cb1d6cfadec90c7822f2f8 d83e37b872c6aa8b4112dbeb8a10bd63d16e41c7 dfd979c135d09d20e60ff535a5d32e6f8d8d5765 cb1aa0c4209d944ce41a91ddee9f0398175b5af9 0e7ae374199921ed2e23d3c3dd7aae0dfb7507d7 00aa09d5f2aee1bb920ebad11eac1109a80c1889 753bca611cd202fb34a028be987e498e6a178d0f d0d41d87a61bfaa497d0bda16247bf463f24913f adc4bdef97e6166eda326326e3bdafcbcd27dcbd 19f9deccdef09f5fd1dadb801b8c73a18116674b b601c6924fb477c6716c89793d0b25a7c7aa441b 55432df680a491f1ea2113111966632a89aa0a82 0ecee0b451280d286cddc887774c6d8f58d3d0f0 31d3ef83 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 [3f:82:64:f3:cb:fb:29:d5:c2:93:27:e1:18:01:85:f4:0d:33:51:28] modulus: d9c94b2cd6ec5c4b1d03b95f1ff0d58a0ae071595c13a22fc5f5a2419de04cf799a7687566d83c7c02e332c5609943620424d15393660b1521b37e7d95a0981c604b1cc13e423bb5697a1d449d223148dfe0ed7160859f1bf3b3da67348de9f4c783fce9c45de1bc0237d86cfc4f631747e5a7f697db518c5af582c10a973687cfd9cff4cd7f6aad0f683fa9e24f718a53890d8f814dcaf52c0faf490c448bf99da1382c743ef1b427c6afa6d808822b81e78474b0f3f8aaf3571597fad81000ddf44d6a339532d7ae63b735c77fae3b53e48d537e603f8067240c31595e0de44056228a27ee7b884653108b9fb5d02febc38e7ed7f30b5c9e1005ec68f63fb7 public exponent: 10001 ]