2022-06-06 21:49:42,071 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-06 21:49:43,157 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-06 21:49:44.129  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Jun 06, 2022 9:49:46 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Jun 06, 2022 9:49:46 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Jun 06, 2022 9:49:46 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Jun 06, 2022 9:49:46 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-06-06 21:49:47.010 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-06-06 21:49:47.302  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-06-06 21:49:47.454  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-06 21:49:48.263 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-06-06 21:49:48.266 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-06-06 21:49:48.268 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-06-06 21:49:48.273 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-06 21:49:48.322 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-06 21:49:48.326 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-06-06 21:49:48.506 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-06-06 21:49:49.206 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 06, 2022 9:49:50 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-06-06 21:49:50.308  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 9.256 seconds (JVM running for 11.389) Jun 06, 2022 9:50:14 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-06-06 21:50:33.323  INFO 1 [nio-8443-exec-3] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-06-06 21:50:33.335 DEBUG 1 [nio-8443-exec-3] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-06-06 21:50:33.390 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-06-06 21:50:33.398 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-06-06 21:50:33.421  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-06-06 21:50:33.423  INFO 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-06-06 21:50:33.425  INFO 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-06-06 21:50:33.427 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-06-06 21:50:33.427 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-06 21:50:33.431 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-06-06 21:50:33.437 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-06-06 21:50:33.441 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-06-06 21:50:33.497 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-06-06 21:50:33.503 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-06 21:50:33.505 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-06 21:50:33.509 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-06-06 21:50:34.134  INFO 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-06-06 21:50:34.137  INFO 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-06-06 21:50:34.138 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-06-06 21:50:34.139 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-06-06 21:50:34.149  INFO 1 [nio-8443-exec-3] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-06-06 21:50:34.151  INFO 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-06-06 21:50:34.152 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-06-06 21:50:34.152 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-06 21:50:34.153 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-06 21:50:34.165 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-06-06 21:50:34.166 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-06 21:50:34.166 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-06 21:50:34.173 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-06-06 21:50:34.173 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-06 21:50:34.174 DEBUG 1 [nio-8443-exec-3] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-06 21:50:34.176 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-06-06 21:50:34.207 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: 269881079914567702200596891649353508387827638304 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Mon Jun 06 21:47:21 UTC 2022 Final Date: Sat Jun 05 21:47:20 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [77:e3:1a:ed:51:f3:e2:c9:06:11:ef:92:6f:c9:af:23:b4:06:d2:58] modulus: c42d26ba5da9dc73005786c140564c9af60778cdf63528f9e9818e1e5b7260306e0e73de7f1bf23547629a2d012895086470f9ca6acac96523dd95b446a9bd6f38939759f1cfd248716b827987109556795abe364ec48bff446ee0851ae0d5eda88c031ae02d676c035a4bdc38b73e3cf9e89a5c4dc633c75d93e6eece563c8b19ecd47a0823bf7e174b6ee9de79b8996084044bd41c3c2e081990ee37dbe2931a57e800aaaaadc4388f527498c68ab626e95ce83f1b8a789fc4755be8d03227114ff941afeadef853662658917b9755b358268c86111f0536fdcecbf2859e1c31bafe01a71dc7f2c261fb26eb7d509e5b54e1d0eb1d86124deee04a04a325081fac10bf380270170aea44f4699ae2af52d32cbed4b04de23c4f4c244a2084c55bd777a43616ac057506990fd8e73466afcc9c0379f8ecf75766c92f597be14f44216cc7f44f6685bd6cf59ddaf77b92f1d5f15d0ec0a8913305e02a3d76d6a4f3fe18c8930b7da6eef3510aaf439060b4a7ebf01f77a8f8ca1d91ec11951ec9 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 22f80feb4eaa97b57037c59b7520ee6d66b819d4 424655163cdd3304a11522feb0b311f2da8780c5 e81af4537f3cb077579a7cc3dbbd0eb77f1f99ae 6ff219afbfaac06302767dd0f9971f46e5301e27 8c8b2061bc1f23d72bc4a7a679654c47ffaa8c0b 0ea45715b00c0a9d4e687445f4dd6971ef8fd9b2 b1ebf0369bcc4bdd827070db8587fec1da978ae7 0bbb334da9b1e4aec31cf7dd3db92ec68b49f503 6a2ff7f0a33dfc8827a65c4f17c3babc8369488d db12b77d2c8edb461e1547ca3924f7d8d9c86176 e516c53f3a02b5b292b8dcb44b90c999597498b2 9127df3d2e99356f6e088f5a644c2b0999c26a05 f22a700f2425260157656e82ff52abcfa1ace912 d2890aa391cdb38d1a5a7d42d5c2ebe1e861a7cd 731d10ac868c69f34f895c2f9ad54ac1c2691bac 416d595fabd232a3c1c0238c29726238a9be1151 084382ab895bfebaabdab4ef663ebb4b2d56f1c6 886c04afe501fd383900427808aae486193351cd d3fc73c9c5054881b0df008932d039a3a0c4a680 3d579ec1 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 [1f:0f:8f:d9:ab:26:12:cd:14:70:ab:c4:6a:4f:39:9b:2c:12:27:09] modulus: 9e1f20945734639915131fb552a31cf4e4c6fce1f4439dc70812692545863ed81804e782ed7331c5e95f6350a768a76222d40b9e3509c64ea82d27cd779b94d594de744009141ed0c2cbed6f2fb8b6d69d4abe3e1391dee82921351266a762b4e5c29caafa7ad44628cb1632b63f9d06938eefe1a16e0f0091865ab61b23eb1aa48975d47b76d0a6a81da17773b0c1441ab709dda8688d032a3971834d7e2ad7950edcaaea0078fd304a3c4b866f488558fd4f217ab70dc42efd5134df204f18254f7748f6f84e91639e92d2e25c2966578128070688790b3388690aa4f582a90f4e865f3f84d1416e337f264c8383040e580c485fd02cfadeecbeada1d69537 public exponent: 10001 ]