2023-01-21 05:11:44,696 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. 2023-01-21 05:11:45,960 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) 2023-01-21 05:11:46.709  INFO 1 [ main] o.s.b.SpringApplication  : No active profile set, falling back to default profiles: default Jan 21, 2023 5:11:48 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"] Jan 21, 2023 5:11:48 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] Jan 21, 2023 5:11:48 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.56] Jan 21, 2023 5:11:48 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext 2023-01-21 05:11:49.166 DEBUG 1 [ main] o.j.l.LoggerProviders  : Logging Provider: org.jboss.logging.Log4j2LoggerProvider 2023-01-21 05:11:49.437  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : Loading initial configuration 2023-01-21 05:11:49.605  INFO 1 [ main] o.o.o.c.c.c.CmpServersConfig  : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json 2023-01-21 05:11:50.258 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReloadConfigController: {GET [/reload], produces [application/json]}: reloadConfiguration() 2023-01-21 05:11:50.261 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) 2023-01-21 05:11:50.262 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.o.o.c.a.ReadinessController: {GET [/ready], produces [application/json]}: checkReady() 2023-01-21 05:11:50.265 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) 2023-01-21 05:11:50.303 DEBUG 1 [ main] o.s.w.s.h.AbstractHandlerMethodMapping  : o.s.a.OpenApiResource: {GET [/v3/api-docs.yaml], produces [application/vnd.oai.openapi]}: openapiYaml(HttpServletRequest,String) {GET [/v3/api-docs], produces [application/json]}: openapiJson(HttpServletRequest,String) 2023-01-21 05:11:50.306 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) 2023-01-21 05:11:50.425 DEBUG 1 [ main] w.s.h.AbstractDetectingUrlHandlerMapping : 'beanNameHandlerMapping' {} 2023-01-21 05:11:51.016 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/]]} Jan 21, 2023 5:11:51 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["https-jsse-nio-8443"] 2023-01-21 05:11:51.876  INFO 1 [ main] o.s.b.StartupInfoLogger  : Started CertServiceApplication in 7.952 seconds (JVM running for 9.602) Jan 21, 2023 5:12:13 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring DispatcherServlet 'dispatcherServlet' 2023-01-21 05:12:34.849  INFO 1 [nio-8443-exec-9] o.o.o.c.a.CertificationController  : Received certificate initialization request for CA named: RA 2023-01-21 05:12:34.857 DEBUG 1 [nio-8443-exec-9] .c.c.c.Pkcs10CertificationRequestFactory : Creating certification request from pem object 2023-01-21 05:12:34.897 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] } 2023-01-21 05:12:34.900 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'} 2023-01-21 05:12:34.916  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] } 2023-01-21 05:12:34.918  INFO 1 [nio-8443-exec-9] o.o.o.c.c.v.CmpCertificationValidator  : Validate before creating Certificate Request for CA: RA 2023-01-21 05:12:34.919  INFO 1 [nio-8443-exec-9] o.o.o.c.c.v.CmpCertificationValidator  : Validation completed successfully. 2023-01-21 05:12:34.920 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random integer 2023-01-21 05:12:34.921 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2023-01-21 05:12:34.924 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random integer 2023-01-21 05:12:34.933 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpMessageHelper  : Generating Extensions from Subject Alternative Names 2023-01-21 05:12:34.936 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpMessageHelper  : Generating Optional Validity from Date objects 2023-01-21 05:12:34.986 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating a Pki Header Builder 2023-01-21 05:12:34.993 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2023-01-21 05:12:34.993 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating random array of bytes 2023-01-21 05:12:34.996 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2023-01-21 05:12:35.670  INFO 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpClientImpl  : Received response from Server 2023-01-21 05:12:35.673  INFO 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Response type is: INIT_REP 2023-01-21 05:12:35.673 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.v.CmpCertificationValidator  : Verifying signature of the response. 2023-01-21 05:12:35.674 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpUtil  : Generating array of bytes representing PkiHeader and PkiBody 2023-01-21 05:12:35.683  INFO 1 [nio-8443-exec-9] o.o.o.c.c.v.CmpCertificationValidator  : Response status code: 0 2023-01-21 05:12:35.684  INFO 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpClientImpl  : Verifying certificates returned as part of CertResponse. 2023-01-21 05:12:35.685 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. 2023-01-21 05:12:35.685 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2023-01-21 05:12:35.686 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2023-01-21 05:12:35.704 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. 2023-01-21 05:12:35.704 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2023-01-21 05:12:35.705 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2023-01-21 05:12:35.711 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. 2023-01-21 05:12:35.711 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Parsing X509Certificate from bytes with provider BC 2023-01-21 05:12:35.712 DEBUG 1 [nio-8443-exec-9] o.o.o.c.c.i.CmpResponseHelper  : Creating certificate Factory to generate certificate using provider BC 2023-01-21 05:12:35.713 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 2023-01-21 05:12:35.747 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: 559506165462563634341717311238627344864815806441 IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Start Date: Sat Jan 21 05:08:36 UTC 2023 Final Date: Thu Jan 20 05:08:35 UTC 2033 SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart Public Key: RSA Public Key [1d:1b:1e:40:60:7f:e3:7b:92:10:8c:c3:b1:95:51:3a:cd:10:1c:96],[56:66:d1:a4] modulus: b3c61493e246943f00649f891840d985c9cb6108fc37e903278754985c8ffab4c5c7fd11e0007e755167981f04aa7f2579946694eeebeac94e501b57c84a2d333f8cefbf3756e383e849f1d5772bc584d6d7618bc3f91307dad9d1292fdceaaf5930d6dddbc7315fd84d801ee9959b17dc6a4289be3e39c0099fdb89fdfe35bcebc7df470917a4fd931adb0f25026d08a6271c33418862761430ec6a8a130d315c4465372b0aef0a8d20fd03e8f2a0e7b10b6f69305141ec7bd0564f61a0b22d610892a38c9105f5e6244a1939d8105ec2e632bb9e0e266f73f7a8993ebe131f0105f1054d24101a42ba63b02cf1314ede6b8e0376aa21c2a043cb153d2290085f4d32476169919f68d8dd8f9f705946c1d93399be224fc48ce3c01694c0ef217130fb4ebd9bd6e17a8edf71be00e78659109374d3cc39c4a50845fbdfe1e883d720aeae9b33832723806aeeb7d198d12171360d3fe84c776f70267f34a9562d5967bbfc886e2dbe595e65122c423c28e2a458284a11fcbb8f90509e4ff26d9b public exponent: 10001 Signature Algorithm: SHA256WITHRSA Signature: 04521e9fada73deadc16805d9cfd43598a4cc65d aeea4f041694655a6e3433a0483025adb1fc60b4 9e7c7a674f4a40a4bfc595bfe0f24bf4842082f6 197158895854771e21fd0c0bba7badffb37ae349 6f2bfcaf1b4143b1542ca72605f173e1e25705ad 0a11556a6a070a13c8f8b1ffefc6b979cf1b9271 2502c244aa216ebd93b86c7b328a8629743c4013 a91bb89d3d32d1d9c33e969626e27e4b285fcbdd cf5e567beef742785b9b49c8ec6c4042bf9bee1c 8ed0288d212792bbd591f36e3d45dd437b822cac 932fec2cdb739f295ce7c33a40c4bc097d392457 4be466ba8e5d11424a29c2a7ac1abdc5da07a257 5e7fdc3acd583905c523ff002bae9a6745b9a50d c2cbf3bc0cfb698452301abe31e1878d4d905e83 5ded6c7463aaa304ab27e353a77b6a28853b627a 69c85a9913002df4efbec2952d94271eac1d0572 22ffca4430e0659807231a73944ea5d182eaa585 3f18c9b4e1427daa989248c1488e18c1f1d856de b3704065c47eac6100288a8678d9a65891934d4a 099d6b6b Extensions: critical(true) BasicConstraints: isCa(true) critical(false) 2.5.29.35 value = Sequence Tagged [CONTEXT 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 [21:71:1b:44:43:41:a7:36:9d:b8:4f:57:3f:5a:fd:0c:89:a8:31:04],[56:66:d1:a4] modulus: c7c33030ca6242ca527427352cf3b6b1bfe076884ae8d775c2240db5d5fc38bfae96482cce3f902a8c1d55d6bfa0c5ec25d93e12241647c2c9bbb6229595cf2f81982bf99ba82a5cf4dee3a48eb659f5b7672201085d5018e3db01115e0bc76f559ab55b5a9fae854a9ea36db0697c342cc36b10679db0756cb1e4b83a09854d93f7c323661e8d69e7945404f51f8106f34f1a2721bf017922464bedba4ce3902b87cae21fb04203b37a1e66b6d0fbdb7a07b6006a1d81d75d5026496ee976e158ce3db350cfad24494d917e1278eb7e6072d0a695fea4b8600cbd8b1773f2454d926c795d6a7d561cfddb5ef7afbde43d148b08a7694e5e994e3982247b80e7 public exponent: 10001 ]