2022-02-15 12:08:54,050 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-15 12:08:54,865 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-15 12:08:55.620  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Feb 15, 2022 12:08:57 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Feb 15, 2022 12:08:57 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Feb 15, 2022 12:08:57 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Feb 15, 2022 12:08:57 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-02-15 12:08:57.689 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-02-15 12:08:57.951  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-02-15 12:08:58.130  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-15 12:08:58.878 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-02-15 12:08:58.881 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-15 12:08:58.882 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-02-15 12:08:58.885 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-15 12:08:58.922 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-15 12:08:58.924 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-02-15 12:08:59.033 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-02-15 12:08:59.692 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 15, 2022 12:09:00 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-02-15 12:09:00.462  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 7.049 seconds (JVM running for 8.311) Feb 15, 2022 12:09:28 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-02-15 12:09:35.277  INFO 1 [nio-8443-exec-8] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-02-15 12:09:35.286 DEBUG 1 [nio-8443-exec-8] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-02-15 12:09:35.324 DEBUG 1 [nio-8443-exec-8] .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-15 12:09:35.328 DEBUG 1 [nio-8443-exec-8] .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-15 12:09:35.346  INFO 1 [nio-8443-exec-8] .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-15 12:09:35.349  INFO 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-02-15 12:09:35.351  INFO 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-02-15 12:09:35.354 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-02-15 12:09:35.355 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-15 12:09:35.361 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-02-15 12:09:35.371 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-02-15 12:09:35.376 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-02-15 12:09:35.473 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-02-15 12:09:35.477 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-15 12:09:35.478 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-02-15 12:09:35.481 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-02-15 12:09:36.025  INFO 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-02-15 12:09:36.028  INFO 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-02-15 12:09:36.029 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-02-15 12:09:36.031 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-02-15 12:09:36.047  INFO 1 [nio-8443-exec-8] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-02-15 12:09:36.049  INFO 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-02-15 12:09:36.050 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-02-15 12:09:36.051 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-15 12:09:36.051 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-15 12:09:36.067 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-02-15 12:09:36.068 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-15 12:09:36.068 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-15 12:09:36.075 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-02-15 12:09:36.076 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-02-15 12:09:36.076 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-02-15 12:09:36.078 DEBUG 1 [nio-8443-exec-8] 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-15 12:09:36.111 DEBUG 1 [nio-8443-exec-8] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 4781384219025152174128794690796045896264540556 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Tue Feb 15 12:06:43 UTC 2022 Final Date: Sun Feb 15 12:06:42 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [8d:75:c2:7e:61:02:13:8e:c0:02:1d:05:cd:16:06:cf:f9:7a:55:7e] modulus: a791f3e7a2c0b31e68ef98e9940c41ba447772dd8fb53850d4c37e6515de4acd6bc3fd62ae1fae6b53bcc8132fb8749cc693a5bee594f50fbf44efc4c7cbc245afd0b3bae3d062abef200b1f5b060d702f4125935b9081e25fbdadc3239ec710398cad4ff4346a151f35415c937b1b83deef4c68689233706023799f8f25ff076a1650a9c4206fe8c4a6a44d1217cb83e17e20c2f13b3a0c66d3f4a72bb5ab444bc5d61b699725806370f963b965439b29f1232b5862829513074e65dfcf2e21c9c5e875c6822e8490e2646ea9c765116044a630ce7db979cd3239609ffb97b058c012922cbadc000d0232a3ce604f11b8a39b643c3cb810f3c190fb1f32e25b0eaf9f47c9962d51019bfea8c60b20471901c0b188a9e689af6dc674b7d18e6a1466c56d022a91a85f217456f10894a96257aca3fec2cd9d10eae967055a192f751923d74651bf6b96c89d44ca5d06e3b41307c860b520f53d891851f5d8a0e25f9f1b7f67a881195bf013c93c1010e73f5e111a3ae598601a823881bc7f8a0d public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 444e098fc22a414e4fe35d96e8f070ada92d1145 d81485486f38fa7458d9650b4656ca743c0ec662 77bbaea6a6cf1304ce82d9e3036a3a6b1e3f207f 64746919cae830a1d9672555d4f16b139ce8a67d a44f866e7e3d2777b6171d7c9bacf2ce6cee8f63 0d94c70e296a45d477f93b5c475acacd2db24706 9cea8ffe2a1a892de78b03750bd300a1a97ed7bd 3d9744c06b1acc4d89339c4fb7f89da01ab394f2 29e0c8996cc97f8360ddf787fa8b28123dec5709 09a2f7b78ccf2b430bd719953a0f128de4af5dde 16c4c6c946979060d6b5513adea05c9a39a78ebd 12353d51ffb8d8de670c0594283ca0815939fffe cf310bf5daa228704b2b3266d8a176456ae41419 29a76b68a7933c252bf52d7a81a5e6231c55654e 852bb77684c3d18dc886ac8e9ee2713685673300 e9d6077d74b7ac5feb4a57fab05660e83daf3e15 c4bccd9b230ef5192be2544d60e69041f10e1d33 949735d443ca5e5aebf31357cf9cb2448e735e48 0d0b480a6f6ba4f143ac167ca4009a43404e5a8f 932003df 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 [b8:16:ab:6d:51:a4:84:c1:54:2e:1b:33:fd:a5:80:69:6b:03:0b:87] modulus: 9381689bf6bb1bcfe3c45fc2e7c19386eaa099de054a8bd254c477bd396efc17c511d7606fbb7d4cf62ab69307e5fc00ea6399418d075044ffbb16fffe7dc5159621ec59e265150605df9d599c02529820a357242b0dda97e4b8c5f4fc8229462649d39c56963d1d3f46d4e8910a74b8b3fe36baba3740fca07e9778e1c1caddbef7697266d265a0c2982233142be88227a190b46a82410a201e1d502569fe029f20e71186665a61a5ec9939728dbbf8a864f515f4ce89c55eb0562acd531fd351f54ba9739dd470c8894c7501dcbcaea57227b0aea0720a16e1c16e32b7a59273aa18f3c58e36303f70910ae61be56b3f09851ff089906d7d8f1dec6834a947 public exponent: 10001 ]