2022-04-21 05:10:15,049 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-04-21 05:10:16,046 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-04-21 05:10:16.850 [32m INFO[m [35m1[m [           main] [36mo.s.b.SpringApplication                 [m : No active profile set, falling back to default profiles: default
Apr 21, 2022 5:10:18 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"]
Apr 21, 2022 5:10:18 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service [Tomcat]
Apr 21, 2022 5:10:18 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet engine: [Apache Tomcat/9.0.56]
Apr 21, 2022 5:10:18 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring embedded WebApplicationContext
2022-04-21 05:10:19.460 [32mDEBUG[m [35m1[m [           main] [36mo.j.l.LoggerProviders                   [m : Logging Provider: org.jboss.logging.Log4j2LoggerProvider
2022-04-21 05:10:19.746 [32m INFO[m [35m1[m [           main] [36mo.o.o.c.c.c.CmpServersConfig            [m : Loading initial configuration
2022-04-21 05:10:19.901 [32m INFO[m [35m1[m [           main] [36mo.o.o.c.c.c.CmpServersConfig            [m : CMP Servers configuration successfully loaded from file /etc/onap/oom/certservice/cmpServers.json
2022-04-21 05:10:20.604 [32mDEBUG[m [35m1[m [           main] [36mo.s.w.s.h.AbstractHandlerMethodMapping  [m : 
	o.o.o.c.a.ReloadConfigController:
	{GET [/reload], produces [application/json]}: reloadConfiguration()
2022-04-21 05:10:20.607 [32mDEBUG[m [35m1[m [           main] [36mo.s.w.s.h.AbstractHandlerMethodMapping  [m : 
	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-04-21 05:10:20.608 [32mDEBUG[m [35m1[m [           main] [36mo.s.w.s.h.AbstractHandlerMethodMapping  [m : 
	o.o.o.c.a.ReadinessController:
	{GET [/ready], produces [application/json]}: checkReady()
2022-04-21 05:10:20.612 [32mDEBUG[m [35m1[m [           main] [36mo.s.w.s.h.AbstractHandlerMethodMapping  [m : 
	o.s.b.a.w.s.e.BasicErrorController:
	{ [/error]}: error(HttpServletRequest)
	{ [/error], produces [text/html]}: errorHtml(HttpServletRequest,HttpServletResponse)
2022-04-21 05:10:20.655 [32mDEBUG[m [35m1[m [           main] [36mo.s.w.s.h.AbstractHandlerMethodMapping  [m : 
	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-04-21 05:10:20.658 [32mDEBUG[m [35m1[m [           main] [36mo.s.w.s.h.AbstractHandlerMethodMapping  [m : 
	o.s.u.SwaggerWelcome:
	{GET [/docs]}: redirectToUi(HttpServletRequest)
	{GET [/v3/api-docs/swagger-config], produces [application/json]}: openapiYaml(HttpServletRequest)
2022-04-21 05:10:20.788 [32mDEBUG[m [35m1[m [           main] [36mw.s.h.AbstractDetectingUrlHandlerMapping[m : 'beanNameHandlerMapping' {}
2022-04-21 05:10:21.462 [32mDEBUG[m [35m1[m [           main] [36mo.s.w.s.h.SimpleUrlHandlerMapping       [m : '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/]]}
Apr 21, 2022 5:10:22 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["https-jsse-nio-8443"]
2022-04-21 05:10:22.411 [32m INFO[m [35m1[m [           main] [36mo.s.b.StartupInfoLogger                 [m : Started CertServiceApplication in 8.28 seconds (JVM running for 10.204)
Apr 21, 2022 5:10:51 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring DispatcherServlet 'dispatcherServlet'
2022-04-21 05:11:40.010 [32m INFO[m [35m1[m [nio-8443-exec-4] [36mo.o.o.c.a.CertificationController       [m : Received certificate initialization request for CA named: RA
2022-04-21 05:11:40.019 [32mDEBUG[m [35m1[m [nio-8443-exec-4] [36m.c.c.c.Pkcs10CertificationRequestFactory[m : Creating certification request from pem object
2022-04-21 05:11:40.060 [32mDEBUG[m [35m1[m [nio-8443-exec-4] [36m.o.c.c.CertificationResponseModelFactory[m : 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-04-21 05:11:40.064 [32mDEBUG[m [35m1[m [nio-8443-exec-4] [36m.o.c.c.CertificationResponseModelFactory[m : 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-04-21 05:11:40.085 [32m INFO[m [35m1[m [nio-8443-exec-4] [36m.o.c.c.CertificationResponseModelFactory[m : 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-04-21 05:11:40.088 [32m INFO[m [35m1[m [nio-8443-exec-4] [36mo.o.o.c.c.v.CmpCertificationValidator   [m : Validate before creating Certificate Request for CA: RA
2022-04-21 05:11:40.089 [32m INFO[m [35m1[m [nio-8443-exec-4] [36mo.o.o.c.c.v.CmpCertificationValidator   [m : Validation completed successfully.
2022-04-21 05:11:40.091 [32mDEBUG[m [35m1[m [nio-8443-exec-4] [36mo.o.o.c.c.i.CmpUtil                     [m : Generating random integer
2022-04-21 05:11:40.092 [32mDEBUG[m [35m1[m [nio-8443-exec-4] [36mo.o.o.c.c.i.CmpUtil                     [m : Generating random array of bytes
2022-04-21 05:11:40.096 [32mDEBUG[m [35m1[m [nio-8443-exec-4] [36mo.o.o.c.c.i.CmpUtil                     [m : Generating random integer
2022-04-21 05:11:40.103 [32mDEBUG[m [35m1[m [nio-8443-exec-4] [36mo.o.o.c.c.i.CmpMessageHelper            [m : Generating Extensions from Subject Alternative Names
2022-04-21 05:11:40.106 [32mDEBUG[m [35m1[m [nio-8443-exec-4] [36mo.o.o.c.c.i.CmpMessageHelper            [m : Generating Optional Validity from Date objects
2022-04-21 05:11:40.141 [32mDEBUG[m [35m1[m [nio-8443-exec-4] [36mo.o.o.c.c.i.CmpUtil                     [m : Generating a Pki Header Builder
2022-04-21 05:11:40.147 [32mDEBUG[m [35m1[m [nio-8443-exec-4] [36mo.o.o.c.c.i.CmpUtil                     [m : Generating random array of bytes
2022-04-21 05:11:40.147 [32mDEBUG[m [35m1[m [nio-8443-exec-4] [36mo.o.o.c.c.i.CmpUtil                     [m : Generating random array of bytes
2022-04-21 05:11:40.152 [32mDEBUG[m [35m1[m [nio-8443-exec-4] [36mo.o.o.c.c.i.CmpUtil                     [m : Generating array of bytes representing PkiHeader and PkiBody
2022-04-21 05:11:40.877 [32m INFO[m [35m1[m [nio-8443-exec-4] [36mo.o.o.c.c.i.CmpClientImpl               [m : Received response from Server
2022-04-21 05:11:40.880 [32m INFO[m [35m1[m [nio-8443-exec-4] [36mo.o.o.c.c.i.CmpResponseHelper           [m : Response type is: INIT_REP 
2022-04-21 05:11:40.881 [32mDEBUG[m [35m1[m [nio-8443-exec-4] [36mo.o.o.c.c.v.CmpCertificationValidator   [m : Verifying signature of the response.
2022-04-21 05:11:40.887 [32mDEBUG[m [35m1[m [nio-8443-exec-4] [36mo.o.o.c.c.i.CmpUtil                     [m : Generating array of bytes representing PkiHeader and PkiBody
2022-04-21 05:11:40.900 [32m INFO[m [35m1[m [nio-8443-exec-4] [36mo.o.o.c.c.v.CmpCertificationValidator   [m : Response status code: 0
2022-04-21 05:11:40.902 [32m INFO[m [35m1[m [nio-8443-exec-4] [36mo.o.o.c.c.i.CmpClientImpl               [m : Verifying certificates returned as part of CertResponse.
2022-04-21 05:11:40.903 [32mDEBUG[m [35m1[m [nio-8443-exec-4] [36mo.o.o.c.c.i.CmpResponseHelper           [m : Retrieving certificate of type class java.security.cert.X509Certificate from byte array.
2022-04-21 05:11:40.904 [32mDEBUG[m [35m1[m [nio-8443-exec-4] [36mo.o.o.c.c.i.CmpResponseHelper           [m : Parsing X509Certificate from bytes with provider BC
2022-04-21 05:11:40.905 [32mDEBUG[m [35m1[m [nio-8443-exec-4] [36mo.o.o.c.c.i.CmpResponseHelper           [m : Creating certificate Factory to generate certificate using provider BC
2022-04-21 05:11:40.921 [32mDEBUG[m [35m1[m [nio-8443-exec-4] [36mo.o.o.c.c.i.CmpResponseHelper           [m : Retrieving certificate of type class java.security.cert.X509Certificate from byte array.
2022-04-21 05:11:40.921 [32mDEBUG[m [35m1[m [nio-8443-exec-4] [36mo.o.o.c.c.i.CmpResponseHelper           [m : Parsing X509Certificate from bytes with provider BC
2022-04-21 05:11:40.922 [32mDEBUG[m [35m1[m [nio-8443-exec-4] [36mo.o.o.c.c.i.CmpResponseHelper           [m : Creating certificate Factory to generate certificate using provider BC
2022-04-21 05:11:40.928 [32mDEBUG[m [35m1[m [nio-8443-exec-4] [36mo.o.o.c.c.i.CmpResponseHelper           [m : Retrieving certificate of type class java.security.cert.X509Certificate from byte array.
2022-04-21 05:11:40.929 [32mDEBUG[m [35m1[m [nio-8443-exec-4] [36mo.o.o.c.c.i.CmpResponseHelper           [m : Parsing X509Certificate from bytes with provider BC
2022-04-21 05:11:40.929 [32mDEBUG[m [35m1[m [nio-8443-exec-4] [36mo.o.o.c.c.i.CmpResponseHelper           [m : Creating certificate Factory to generate certificate using provider BC
2022-04-21 05:11:40.931 [32mDEBUG[m [35m1[m [nio-8443-exec-4] [36mo.o.o.c.c.i.CmpResponseHelper           [m : 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-04-21 05:11:40.969 [32mDEBUG[m [35m1[m [nio-8443-exec-4] [36mo.o.o.c.c.i.CmpResponseHelper           [m : Certificate verify result:PKIXCertPathValidatorResult: [
  Trust Anchor: [
  Trusted CA cert:   [0]         Version: 3
         SerialNumber: 286432292505457424059737179981453301356585554028
             IssuerDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart
           Start Date: Thu Apr 21 05:06:42 UTC 2022
           Final Date: Tue Apr 20 05:06:41 UTC 2032
            SubjectDN: UID=12345,CN=ManagementCA,O=EJBCA Container Quickstart
           Public Key: RSA Public Key [31:1b:0b:bc:39:f5:c9:f3:6a:e1:7a:81:be:fe:c7:a3:5b:3e:a3:a1]
            modulus: c7665250fd8504a34a725cd72827ce92437e90f6e1df8455d3e18206aa32e24fffa9ceb77e8e5b871fcda5ee0c0019d8efef9a98f81ba4a0396599f6c2576e57b593be7853bb2e37aab22e8b2c916ed9a88b697bb2c29c138e8af9f14861c6d21587ce694deb897f829cc96334577e536f8b6b8c99a076b7162a973597a9e6384f60ffe5832c3e74796f50a8edee35fec117b0a21e7f8ff776c5c170633a369eb8d7af9570fdad13a44f6a5dd078d60f7e95e4f50446836ad260723ba40506e6cd95f4331be48bdbfcebcd5913c8d441881f9831bbb3426c4b0a58bf8ab53de5220954253639462e2d93bf86e6287168e06edf71ae04562558f8a627fe57c50fc03e216b861fbf441707e6478e63eb59d04a0423d8bc94815417fa08791b60797e7f5f42ba69d2462eb07c319ecfb9c4dc67528e84396e22eb701c296915fc50344effc7f6c8808a67369a82c991df86e7475568e5e6744a44a58895d45aa5b9b25bf1bf2d3268d096dc4759284f23bf48cc002f1744d03df0596f77e46562bf
    public exponent: 10001

  Signature Algorithm: SHA256WITHRSA
            Signature: 66df760fe613166331a4dd9845189779ce52543c
                       a968f0a500564233cef9365412b7b14759d47ef4
                       f17c685bc21bc1b81a3fcaccbe40efd71dfb9d85
                       4865822565e785228377a568565d155aad0a3c43
                       3d9d43951fe974cc202069fa1870609446f3e05d
                       3d1481c6b16290b0a6fdac5c4a13f823664ff5ed
                       edbacfdb342acf277721fd3afc9eab986d238962
                       c57f6a6c2cb08c9446b3b0e80a7974c7f100b2cf
                       970adf3c6a3747a6c1e0d2ca4cf98e1bf3faa8a8
                       6be398e9bb19b0209232236d8ded66b841336e79
                       ba0f0fc68456e2f876efb917759981d02f4dcc35
                       7764a56b8d59bb274ea5e5d6fc3efc4f2e12f0a0
                       9e2b2819ffd9c4449c2d2dea2197ebd580dbb5c6
                       6a57eef5186b86146ecd954bdd6b30a91c1da073
                       3652aa27e41ae19594f40c7e0cc7ac9e17483174
                       4e2ee332636659d0a00fe416a5e0b4d9263b3a9f
                       6f9f3e7fa1b3665cca2e759de945ab5367a9cf0b
                       eddd342b08506313fa3f4b78c142ed0f70c73851
                       c622b03fbcf14d5e93357e9b2973ee57a7ebb742
                       0d6e3fde
       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 [e7:b9:b2:c9:0a:17:1a:e4:d1:64:e4:9e:fc:42:d8:74:07:77:6f:4e]
            modulus: e6ce1ccca3514cc05a2b83c66c9d919bd9d1703a6963723ad51b9a95f5ce8916d324d05d86f023f93e4c9cf6735a469e65ad65e2426624473750f1a4bbd48b64d9aa6ccb090c80b0a849fbdca36bf0022076eb5280c74c53a344b400927a889dc57a60604e4f80ca6e531b58f5a5a17797c6406645765ea9c5f3f626dd17540df892e8a540200b532a775d059b5646558d2c7f21b9e4c79544c041d6328bc38e6867f73ef90e997bd07382663b9d08eed57ef75f4fbf5f421fefa605112b98e1a6fdabef852ad0d0400215c7725bf48ebeb3dc45b6de8b2d087ed6eb76ec88e689d1f3b65e8bf900d416c80dcc9bf2c458a656893ff52e400bdadb8b740021bb
    public exponent: 10001

] 
