2022-06-05 03:15:27,312 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-05 03:15:28,666 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-05 03:15:29.598  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Jun 05, 2022 3:15:32 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Jun 05, 2022 3:15:32 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Jun 05, 2022 3:15:32 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Jun 05, 2022 3:15:32 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-06-05 03:15:32.953 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-06-05 03:15:33.319  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-06-05 03:15:33.506  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-05 03:15:34.516 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-06-05 03:15:34.521 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-05 03:15:34.524 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-06-05 03:15:34.531 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-05 03:15:34.586 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-05 03:15:34.590 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-06-05 03:15:34.725 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-06-05 03:15:35.439 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 05, 2022 3:15:36 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-06-05 03:15:36.550  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 10.237 seconds (JVM running for 12.806) Jun 05, 2022 3:16:00 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-06-05 03:16:18.006  INFO 1 [nio-8443-exec-2] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-06-05 03:16:18.016 DEBUG 1 [nio-8443-exec-2] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-06-05 03:16:18.073 DEBUG 1 [nio-8443-exec-2] .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-05 03:16:18.083 DEBUG 1 [nio-8443-exec-2] .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-05 03:16:18.115  INFO 1 [nio-8443-exec-2] .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-05 03:16:18.118  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-06-05 03:16:18.120  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-06-05 03:16:18.121 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-06-05 03:16:18.122 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-05 03:16:18.128 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-06-05 03:16:18.136 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-06-05 03:16:18.140 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-06-05 03:16:18.194 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-06-05 03:16:18.208 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-05 03:16:18.209 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-05 03:16:18.213 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-06-05 03:16:18.860  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-06-05 03:16:18.863  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-06-05 03:16:18.863 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-06-05 03:16:18.865 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-06-05 03:16:18.880  INFO 1 [nio-8443-exec-2] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-06-05 03:16:18.882  INFO 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-06-05 03:16:18.883 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-06-05 03:16:18.884 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-05 03:16:18.884 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-05 03:16:18.904 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-06-05 03:16:18.904 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-05 03:16:18.905 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-05 03:16:18.915 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-06-05 03:16:18.916 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-05 03:16:18.916 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-05 03:16:18.919 DEBUG 1 [nio-8443-exec-2] 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-05 03:16:18.963 DEBUG 1 [nio-8443-exec-2] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 437011134633777779962630313950098352233974519356 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Sun Jun 05 03:12:59 UTC 2022 Final Date: Fri Jun 04 03:12:58 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [5e:8a:90:68:a0:fd:68:f8:14:9e:f5:7e:66:3f:75:ae:f4:56:dd:2f] modulus: d4c1d4ab7f8ef74d3c5d9a9cfa9fcf50e3a716a174517be892ec48ce014b83fe1019314245e6cf021a07af366c9cd2f25d9fd9e8a79569b4bc4b78a763861683b646141fcfc074f5fd679670fad5a82ee2d04066b7b01b479ccd175d80316804ce297f3c164a069f393f9586bec5a00feb03441d8bde04ad8b5f29c258073bd63df7d759c55af59b383d7cd858b19c19d7d28a95feabd9bf26bb98e172affdb1b738bdee06d700077c3750f5ca8d790c426dc844a556518fb0ea3a0c1af0e14af9d81087325c59ab507ce0172d471552876605fcd693e422c589fcd268d4f87ed8f5b63513a137aaaad3c6092084c1d6c88015f5493d365000e3e1a2cbd1e3e81e7e8318d46ef5ad247e50380ed2f09c31cbca1c75fd25b3dcbbe7647ac678f7f7bc6f15cd2b83924e70e8b1704857e96554863dfec358c22f23dcd903dd9854f98472ce772954bdad511d3256dab2b4aadfb62d9c54817a0a5d0783f67e6cd82aa2e0f044d39f07f78647a9071afddb8d5871a0a62de0552b010f636e7cf72f public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: cb73010a74232bc79e959ec4117bc58ef8b71897 2c0abfbcb63a26cc7c387712a216ed2fa8416f42 cc92c8a474a8c6f4a622e6bafa038105fac4de9b 4ba23b830ffdf3457c0cce14518ac98ca7f15b2c 20820cd7e2624745415f311ab54972a487d984c7 b2129d5a6aa3609464c5d2eb693f9e1e5ad5915d c9c11294553c770589866fd46c47453f38815e1d d20168255f3bb7ef2d64a8f5dc432265624881e1 f994d13afedba03081b472cec90907b14c1cec26 a75a62d7294a6dfe733a27518ec506ba4d68d4bb ff9086c0bed359b724a28c0df7245885bc458588 750a8e7bd7df5065befb064dad0d49e40d015a60 f4e37f6276f3ffcfceb73312c0448c78c8f0db14 ccc03e16353e269be71e5c1f1e338a48a63a10b7 098b47b254f2784c60519d14737709490dc7416f f05d8cb12e8e9e4a619b1c2715de8886632d3652 61ac28b69188b39a034a6964d17838a0ce96de4f 02feeeff2c1c4eb028aa05ddfb63aeb0263f1214 b4539a24c8f4c3365ba50c34ad05f21bb8f34f36 0d8aefce 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 [e0:0a:18:0e:ce:b3:d1:13:3f:92:f5:6f:26:bf:3e:eb:3f:f6:ca:70] modulus: bc5ea295ea6cfa63a18d4d5d40ec7a8668835b9ac562708991ac166a7c0ee989150a9732b6a63c3b3d645d83c30d036e85c1265c923f10cf72e772c1f126de33fa01ee78066f43cf3c9b6dfa96de9050e8d488b3aad9be352ae35055f2355d83d62c33831bd83b80057fb00bfea9653fb302540fb6f5edbe7fbafe8f70ca6f43c8c52784ed317de7b35ebe717103b47633bbd0ba8e978fb637736a690cf5a3a668328a6ff408006c4b7469c9e8914fa0816bb65624390f7e44fbaba0deeff38d1d6c83404220fcdb306745806fc6801f3fc1a0f84c8641255b5d428489479d013fa8f9a3318fbef227fee8b27167d59c39ab95d3839128a25c74d3f423e24e77 public exponent: 10001 ]