2022-06-24 05:15:34,786 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-24 05:15:35,713 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-24 05:15:36.440  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Jun 24, 2022 5:15:38 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Jun 24, 2022 5:15:38 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Jun 24, 2022 5:15:38 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Jun 24, 2022 5:15:38 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-06-24 05:15:38.946 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-06-24 05:15:39.233  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-06-24 05:15:39.395  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-24 05:15:40.141 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-06-24 05:15:40.144 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-06-24 05:15:40.146 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-06-24 05:15:40.150 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-24 05:15:40.189 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-24 05:15:40.192 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-24 05:15:40.315 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-06-24 05:15:40.845 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 24, 2022 5:15:41 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-06-24 05:15:41.804  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 7.827 seconds (JVM running for 9.584) Jun 24, 2022 5:16:10 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-06-24 05:16:27.145  INFO 1 [nio-8443-exec-4] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-06-24 05:16:27.154 DEBUG 1 [nio-8443-exec-4] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-06-24 05:16:27.189 DEBUG 1 [nio-8443-exec-4] .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-24 05:16:27.193 DEBUG 1 [nio-8443-exec-4] .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-24 05:16:27.212  INFO 1 [nio-8443-exec-4] .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-24 05:16:27.214  INFO 1 [nio-8443-exec-4] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-06-24 05:16:27.215  INFO 1 [nio-8443-exec-4] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-06-24 05:16:27.216 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-06-24 05:16:27.217 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-24 05:16:27.221 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-06-24 05:16:27.227 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-06-24 05:16:27.230 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-06-24 05:16:27.272 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-06-24 05:16:27.277 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-24 05:16:27.277 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-06-24 05:16:27.281 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-06-24 05:16:28.063  INFO 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-06-24 05:16:28.066  INFO 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-06-24 05:16:28.066 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-06-24 05:16:28.068 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-06-24 05:16:28.077  INFO 1 [nio-8443-exec-4] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-06-24 05:16:28.078  INFO 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-06-24 05:16:28.079 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-06-24 05:16:28.079 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-24 05:16:28.080 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-24 05:16:28.094 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-06-24 05:16:28.094 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-24 05:16:28.094 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-24 05:16:28.100 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-06-24 05:16:28.100 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-06-24 05:16:28.101 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-06-24 05:16:28.102 DEBUG 1 [nio-8443-exec-4] 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-24 05:16:28.132 DEBUG 1 [nio-8443-exec-4] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 223904999455805704837666803545061931672344918992 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Fri Jun 24 05:12:21 UTC 2022 Final Date: Wed Jun 23 05:12:20 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [e9:70:ac:31:45:e1:a0:3d:80:b8:48:e9:59:5f:39:76:f6:5f:20:be] modulus: b297359d3783369d6d31a9595dfc2f295d1681c7fc70de95138947dc6790014eb2f0d8afbc012d65e482dddac35cd6089fff5890e8051118c17f20d4ce8779033df30c3511d3cf67777a12697b0a1b051e13946660872358e152bd4356cc9d10be266821d351a8d7d203f2f16b5aa9e1d182282df5caa943b464f783af3a83fbd9b2b7230611fa156914101b9a7d496cf831b304aa34eb7af41b0642a4826ed116723627644440f97410447be9a2076f4cc7dc87afc44c5e159f8e6e022d12a07144d7d3d026bc04b15afc59f959d2577f223a369971f9c568c878c07a65506611477a21f8110fbaf461b994ebb674682ed70c76986a301ccdc8cefa0f21478e396ef7613d389d216ec39bd5b0b2ca1cd6f17a5d4e1fe3eba6fdf12f71b00a4722e3adc881fa2d8ffeb4d85317ffca0fc87064120efd5f74cdfcc070f0ebbdc2e1b0d5b3106002dc717e3e9c50bf9cdaa0f5cf76d180bcb37340d2e13a68443255f79dbe3fc7a38816e31ec011556bd61acd7b7f93b2586dcaea79d1e4c3d0c3 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 156b4a026c97d44102df32d75b720d3c7a2fc351 990b537fb556c17d4f407566d1e8666d4323e994 05cece13792e1a3d6c3b00c32a7ad472fc7b5dfa c89f54c5d37a6c5e3962e74ab94552818b7f2ce2 193d4a38c94b193c42ad6fc824199c8adc965a64 6eacc8f2fdf5b4f4fde86ac9b6331eb13d107821 d9df9939c5a66b0ca44d09516bbf34329a34ffab 79ec5921b4ed19d683d0d75f45b306e35dd10e4c aafce397c58e4457b4c1bfbad9417121d915922f c07e5b04cf6111adaa7bc7c7d4e29c7a0819dc10 63f0e796617ae49dcfbb21e33d1772b4b3a12e7e b241379c05682009bed6ad07f6033a819f041e71 0f8d96f3344a545a59a7048751021bfd6a6be97b b7dcc1921ec4370aaf7274e73d70218bcc1f845e f1ae0c1098172dc21d274d588f7fd1a88a5cef4a 6760c2b86f154c9b2171350e836d9fb17fc8da97 c2b9a09765a3085648c801d8074088893cc78f20 ec72762a291b8644b02c59f7590e945fde176087 7912a2158b25758ce369a341890e085bdb28a0e6 60cadb66 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 [51:f2:01:5b:3a:c5:82:0e:f7:d9:ea:9f:46:ec:bc:36:ec:ed:dd:f8] modulus: ac2efd95bd275e29fb52379447292685ebef7b19fbf646a3cabedabf339d671392c72d4eee31593932b4718ba0d5c96714ea7c5c27848ecef2a327d24425d817c7022c2495c56c9f50d2af120f18a1ee5128148bda5a2ccc90823693f098734d0cc6a4a5c67307048ccb1119fd54023d27df5d7bce2798ff5cadfb628dbb270f25b8fbbce2dba3910b229a711abde1215e7b43db594a731c82814f7280fbf01da30ee80b3973860887ad058f99e55f1c1ea29f0902628206eba56361d37b8112dc378c49e8d9090939aa9e1ad3fcd3db1071e26d9ae0cc2be020bbf73a5fdaf687950ec3630560daa530111c7f7b0057ac28ae6215a0cf0d6684db7ea719e5e7 public exponent: 10001 ]