2022-03-18 23:12:04,072 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-03-18 23:12:05,242 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-03-18 23:12:06.092  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Mar 18, 2022 11:12:08 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Mar 18, 2022 11:12:08 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Mar 18, 2022 11:12:08 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Mar 18, 2022 11:12:08 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2022-03-18 23:12:09.481 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2022-03-18 23:12:09.731  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2022-03-18 23:12:09.872  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2022-03-18 23:12:10.557 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2022-03-18 23:12:10.560 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-03-18 23:12:10.561 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2022-03-18 23:12:10.564 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-03-18 23:12:10.601 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-03-18 23:12:10.604 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-03-18 23:12:10.723 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2022-03-18 23:12:11.279 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/]]} Mar 18, 2022 11:12:12 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2022-03-18 23:12:12.265  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 8.931 seconds (JVM running for 10.605) Mar 18, 2022 11:12:53 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-03-18 23:13:08.002  INFO 1 [nio-8443-exec-9] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2022-03-18 23:13:08.011 DEBUG 1 [nio-8443-exec-9] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2022-03-18 23:13:08.046 DEBUG 1 [nio-8443-exec-9] .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-03-18 23:13:08.049 DEBUG 1 [nio-8443-exec-9] .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-03-18 23:13:08.071  INFO 1 [nio-8443-exec-9] .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-03-18 23:13:08.073  INFO 1 [nio-8443-exec-9] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2022-03-18 23:13:08.074  INFO 1 [nio-8443-exec-9] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2022-03-18 23:13:08.075 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-03-18 23:13:08.075 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-18 23:13:08.079 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random integer 2022-03-18 23:13:08.086 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2022-03-18 23:13:08.089 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2022-03-18 23:13:08.128 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2022-03-18 23:13:08.133 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-18 23:13:08.133 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2022-03-18 23:13:08.136 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-03-18 23:13:08.728  INFO 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2022-03-18 23:13:08.731  INFO 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2022-03-18 23:13:08.731 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2022-03-18 23:13:08.732 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2022-03-18 23:13:08.740  INFO 1 [nio-8443-exec-9] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2022-03-18 23:13:08.740  INFO 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2022-03-18 23:13:08.741 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-03-18 23:13:08.742 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-18 23:13:08.742 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-18 23:13:08.753 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-03-18 23:13:08.753 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-18 23:13:08.753 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-18 23:13:08.759 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Retrieving certificate of type class java.security.cert.X509Certificate from byte array. 2022-03-18 23:13:08.759 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2022-03-18 23:13:08.759 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2022-03-18 23:13:08.761 DEBUG 1 [nio-8443-exec-9] 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-03-18 23:13:08.785 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Certificate verify result:PKIXCertPathValidatorResult: [ Trust Anchor: [ Trusted CA cert: [0] Version: 3 SerialNumber: 175497510274726909809874170837212389111433291337 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Fri Mar 18 23:09:42 UTC 2022 Final Date: Wed Mar 17 23:09:41 UTC 2032 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [ff:21:61:61:3c:47:7b:e9:66:d7:88:74:e9:98:9b:31:92:4e:64:fc] modulus: a8579f645350a7f0f84dc274561ed043c40e399046968475168f965e247452f87f896adb75d57100088730f94753d41fdb14be9b2b4c2d1d11de41e633eb272f0f60653b7f28b9221c456db4d947c42df773db19025257e631c77b03f3dcd3803226e661ef33c5798738d1b2641750780d0bcf200cd2673e7e5f4314aae708c4c990c45ecf5c827c56aff42717b6ed012e82d2e063a16af6c508bb2ff5a5fea017cc9e7710089ea51767043ac18b692662430be23d5e96c14b2d72f3a66540b1d730a26398cb738c74ac148af318710d47163bf2ebdb2478fe991e4b308ce1f7a4ef331654f11a284edafe539cf5147e3216e4d92379af90e8a681128eff04646e92de2a565de7a14be19bacc7c41f98006a5901acbeb57cb18e251f6193313d4f4592319ce97f67b0afaa5476ee254e6e488756e332250912e90c2122f0238fd7b6611b17b87ce95a49eeb2b01fe599895e588f20c27499dcf9febe2529f47c3b7e81d32d4a6c970d1c103fc16c9d2098b5a58b6343f1a7c64956fca8f3e023 public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: a34c14a9b7db9f7969175dfd67698812be314a6e 2bc02ccbabfbceadab71398ca457b7ba789f53c2 c90c72a24305e46e88944685892f462d64b46f29 88662ae81892adc5d647eb55b7a69ac40794500c c359b35c72e02cd51f576b59d5d48980595c496d 60784ae7c227251fe6444a46f72da506d6af5c33 53fc4beab321ab268ba9dde44ccff7ff858edf7d 70f700e5cd81d86336fbfcd090991982c7e98d58 5cd9634b793fcab2203bc5d8af07397e86a81e99 17507f14cbd3084a3a0be025e91418163e672746 35464e4fa4367b4104ec9fe38a399f1f51b29f65 21a4544314bb9802389dcfb64070c6103cadfe56 b2a9b6f5eed71c0fa2c7bce6a43c0fec2b6157ce 7c7aa233a1c8ff57a213351f949e135ef1c17158 356e533f189d0b99e667f7bb0ff85d8e72c2a2ea d06e9ee4ff13569b0befd1b2f4a05e6b8275d7b3 6e6ac2a534659444686a959ebb21e4477fff621b 99d7f4f5373edbba9384a7dc7d056ef74918868a 630bf3abcecc468b5821885a75ca453b7f5cb9d6 be2fd262 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 [14:57:4d:7e:98:22:0c:30:70:a7:23:9d:35:71:ea:2c:73:9f:d7:8d] modulus: 9f9d9cb8af1e3b2b6455a5dfd0af78d11cce79e759d49abf481e49cd12b38b706523b6fdc871905603a5dc14842ba786920e8dcdd0770f31731f976417c35269e23321aabf48b5b899808587380575b8402d92d9c4004233619eecfc526453b5afc79c8cda7f88b481dc5d7c2d498ad655e9e428ca1635ca89832754ff080a061c173758bb4b9ef0626c5a3629a30c374dc092705a30e58d50ea927dfefa6b2269611618ebef89793744600bfbd077027faff02b99903b60f4414620a2cbb4e6b1efd6a57af66d655eac2633c5c6174161c0af79a291404a77fb7f639b7e4096b88f1089b6aa692a1fc61122b36d71ff7ae3e4f9a7790943a7686a02d4a3ab5d public exponent: 10001 ]