# Properties passed in
HOSTNAME=onap-aaf-fs-d848d979-9vtzl
aaf_locator_container=oom
aaf_release=Frankfurt
aaf_locator_container_ns=onap
aaf_locator_name=%NS.%N
aaf_locate_url=https://aaf-locate.onap:8095
cadi_longitude=-72.0
cadi_latitude=38.0
aaf_locator_public_fqdn=aaf.osaaf.org
cadi_x509_issuers=CN=intermediateCA_1,
aaf_env=DEV
aaf_locator_name.oom=%CNS.%NS.%N
Set Identities
Clean up directory /opt/app/osaaf/local
ls: /opt/app/osaaf/local: No such file or directory
bin/agent.sh: line 90: /opt/app/osaaf/local/VERSION: No such file or directory
Decode
Setup ONAP Test CAs and Signers
Bootstrap Creation of Keystore from Signer
Bootstrap AAF Certificate
bootstrap.sh: line 89: [: aaf.osaaf.org: integer expression expected
Generating a RSA private key
..........................+++++
.....................................+++++
writing new private key to '/tmp/aaf.bootstrap.key'
-----
Sign it
Using configuration from openssl.conf
Check that the request matches the signature
Signature ok
Certificate Details:
        Serial Number: 96438985873 (0x1674362491)
        Validity
            Not Before: Jan 22 04:41:33 2023 GMT
            Not After : Jan 22 04:41:33 2024 GMT
        Subject:
            countryName               = US
            organizationName          = ONAP
            organizationalUnitName    = aaf@aaf.osaaf.org
            organizationalUnitName    = OSAAF
            commonName                = aaf.osaaf.org
        X509v3 extensions:
            X509v3 Basic Constraints: 
                CA:FALSE
            Netscape Cert Type: 
                SSL Client, SSL Server
            Netscape Comment: 
                OpenSSL Generated Server Certificate
            X509v3 Subject Key Identifier: 
                D2:1C:B7:F4:9F:52:8A:29:54:D6:40:09:A6:56:95:3D:8D:0D:C0:A8
            X509v3 Authority Key Identifier: 
                keyid:81:F7:99:5B:10:B9:C8:8C:DE:F3:52:5E:EA:4E:69:A0:43:3E:AC:DD
                DirName:/OU=OSAAF/O=ONAP/C=US
                serial:07

            X509v3 Key Usage: critical
                Digital Signature, Non Repudiation, Key Encipherment
            X509v3 Extended Key Usage: 
                TLS Web Server Authentication, TLS Web Client Authentication
            X509v3 Subject Alternative Name: 
                DNS:aaf.osaaf.org, DNS:aaf.osaaf.org, DNS:service.aaf.osaaf.org, DNS:locate.aaf.osaaf.org, DNS:oauth.aaf.osaaf.org, DNS:token.aaf.osaaf.org, DNS:introspect.aaf.osaaf.org, DNS:gui.aaf.osaaf.org, DNS:cm.aaf.osaaf.org, DNS:hello.aaf.osaaf.org, DNS:aaf-service, DNS:aaf-service.onap, DNS:aaf-locate, DNS:aaf-locate.onap, DNS:aaf-oauth, DNS:aaf-oauth.onap, DNS:aaf-token, DNS:aaf-token.onap, DNS:aaf-introspect, DNS:aaf-introspect.onap, DNS:aaf-gui, DNS:aaf-gui.onap, DNS:aaf-cm, DNS:aaf-cm.onap, DNS:aaf-hello, DNS:aaf-hello.onap
Certificate is to be certified until Jan 22 04:41:33 2024 GMT (365 days)

Write out database with 1 new entries
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number: 96438985873 (0x1674362491)
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: C=US, O=ONAP, OU=OSAAF, CN=intermediateCA_9
        Validity
            Not Before: Jan 22 04:41:33 2023 GMT
            Not After : Jan 22 04:41:33 2024 GMT
        Subject: C=US, O=ONAP, OU=aaf@aaf.osaaf.org, OU=OSAAF, CN=aaf.osaaf.org
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                RSA Public-Key: (2048 bit)
                Modulus:
                    00:e0:b5:ea:24:66:96:1b:56:ab:2a:9f:2e:b3:ec:
                    63:f3:82:83:af:35:6f:fa:73:4d:bd:67:d6:5c:1b:
                    29:56:8b:1d:91:84:88:85:00:b8:45:b3:63:4f:a7:
                    e3:d9:d0:5f:ed:44:b9:3f:10:f1:ff:09:78:4c:68:
                    f2:bc:aa:70:da:75:36:38:ee:dd:e9:b5:1b:31:05:
                    16:92:d4:a0:50:7b:8d:aa:fa:a5:4d:4c:49:5c:34:
                    e7:4e:fc:3c:8f:26:86:00:3e:83:56:ab:82:c6:88:
                    f2:df:14:ea:08:a6:10:2a:a7:64:35:3f:b0:8f:33:
                    33:88:32:40:78:46:cd:a9:07:62:a3:3f:f6:eb:28:
                    32:eb:0c:8e:ef:2d:b0:6d:47:a7:80:0d:33:5a:e8:
                    8d:72:49:46:3b:4b:9f:2e:d3:f9:e7:35:31:8f:3d:
                    d7:96:f0:d3:64:84:2f:1f:6e:83:46:68:ba:0e:d6:
                    db:89:e8:6d:1d:49:44:e6:db:bc:05:dd:44:79:5f:
                    4b:54:3f:99:85:47:6e:fa:1f:fb:16:14:7d:4f:92:
                    39:8a:10:2f:d6:7e:91:58:44:73:4c:7a:3a:5b:2e:
                    d9:a3:61:7a:a5:99:e5:a3:f4:ca:13:85:bd:e9:2a:
                    45:27:a6:c8:64:d6:7e:87:0b:fc:21:2c:40:a3:d3:
                    d2:09
                Exponent: 65537 (0x10001)
        X509v3 extensions:
            X509v3 Basic Constraints: 
                CA:FALSE
            Netscape Cert Type: 
                SSL Client, SSL Server
            Netscape Comment: 
                OpenSSL Generated Server Certificate
            X509v3 Subject Key Identifier: 
                D2:1C:B7:F4:9F:52:8A:29:54:D6:40:09:A6:56:95:3D:8D:0D:C0:A8
            X509v3 Authority Key Identifier: 
                keyid:81:F7:99:5B:10:B9:C8:8C:DE:F3:52:5E:EA:4E:69:A0:43:3E:AC:DD
                DirName:/OU=OSAAF/O=ONAP/C=US
                serial:07

            X509v3 Key Usage: critical
                Digital Signature, Non Repudiation, Key Encipherment
            X509v3 Extended Key Usage: 
                TLS Web Server Authentication, TLS Web Client Authentication
            X509v3 Subject Alternative Name: 
                DNS:aaf.osaaf.org, DNS:aaf.osaaf.org, DNS:service.aaf.osaaf.org, DNS:locate.aaf.osaaf.org, DNS:oauth.aaf.osaaf.org, DNS:token.aaf.osaaf.org, DNS:introspect.aaf.osaaf.org, DNS:gui.aaf.osaaf.org, DNS:cm.aaf.osaaf.org, DNS:hello.aaf.osaaf.org, DNS:aaf-service, DNS:aaf-service.onap, DNS:aaf-locate, DNS:aaf-locate.onap, DNS:aaf-oauth, DNS:aaf-oauth.onap, DNS:aaf-token, DNS:aaf-token.onap, DNS:aaf-introspect, DNS:aaf-introspect.onap, DNS:aaf-gui, DNS:aaf-gui.onap, DNS:aaf-cm, DNS:aaf-cm.onap, DNS:aaf-hello, DNS:aaf-hello.onap
    Signature Algorithm: sha256WithRSAEncryption
         59:4d:14:79:ae:6c:a1:f7:cd:d6:45:8f:88:a7:87:27:56:f1:
         dc:d5:ab:e8:ec:d5:1b:c7:72:72:09:43:dc:ff:04:fd:5c:6d:
         46:18:2f:eb:a2:da:e2:17:b1:80:5b:cf:e9:f3:0c:3d:b6:95:
         4e:63:26:31:f5:de:fc:4e:8f:ea:44:3a:4e:25:60:7b:e1:36:
Data Base Updated
         f8:df:e6:21:b1:4b:bc:03:c6:78:a8:24:ff:b9:57:11:f6:80:
         ae:31:0e:ae:37:f9:6c:3d:ab:bb:b9:d7:c5:1d:50:70:48:08:
         a8:d6:54:1b:61:4d:30:a6:8a:44:97:4e:31:a8:2b:97:ab:8b:
         82:20:e4:8d:3b:21:31:e4:1e:80:72:04:9a:da:65:66:88:61:
         a3:20:7a:74:07:f6:11:c9:9e:8a:22:c7:0c:4f:97:97:17:06:
         43:04:1d:c7:f7:d4:d3:4f:6d:f6:df:23:e0:c6:dd:6b:3d:1e:
         5b:dc:9e:4e:c6:c1:c5:fc:23:4d:d6:94:ca:31:f0:27:21:bd:
         d5:8a:22:e0:dd:c9:8a:21:d6:6a:7a:52:7d:3e:8d:5f:13:e4:
         d9:73:bd:67:a3:01:2b:60:2b:e7:5d:2a:30:f6:11:4d:b8:b7:
         70:56:3e:a8:04:68:e4:dc:d6:d2:b5:ea:ef:d7:6e:58:ef:bf:
         32:bf:40:1e
-----BEGIN CERTIFICATE-----

3NbSterv125Y778yv0Ae
-----END CERTIFICATE-----
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number: 96438985873 (0x1674362491)
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: C=US, O=ONAP, OU=OSAAF, CN=intermediateCA_9
        Validity
            Not Before: Jan 22 04:41:33 2023 GMT
            Not After : Jan 22 04:41:33 2024 GMT
        Subject: C=US, O=ONAP, OU=aaf@aaf.osaaf.org, OU=OSAAF, CN=aaf.osaaf.org
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                RSA Public-Key: (2048 bit)
                Modulus:
                    00:e0:b5:ea:24:66:96:1b:56:ab:2a:9f:2e:b3:ec:
                    63:f3:82:83:af:35:6f:fa:73:4d:bd:67:d6:5c:1b:
                    29:56:8b:1d:91:84:88:85:00:b8:45:b3:63:4f:a7:
                    e3:d9:d0:5f:ed:44:b9:3f:10:f1:ff:09:78:4c:68:
                    f2:bc:aa:70:da:75:36:38:ee:dd:e9:b5:1b:31:05:
                    16:92:d4:a0:50:7b:8d:aa:fa:a5:4d:4c:49:5c:34:
                    e7:4e:fc:3c:8f:26:86:00:3e:83:56:ab:82:c6:88:
                    f2:df:14:ea:08:a6:10:2a:a7:64:35:3f:b0:8f:33:
                    33:88:32:40:78:46:cd:a9:07:62:a3:3f:f6:eb:28:
                    32:eb:0c:8e:ef:2d:b0:6d:47:a7:80:0d:33:5a:e8:
                    8d:72:49:46:3b:4b:9f:2e:d3:f9:e7:35:31:8f:3d:
                    d7:96:f0:d3:64:84:2f:1f:6e:83:46:68:ba:0e:d6:
                    db:89:e8:6d:1d:49:44:e6:db:bc:05:dd:44:79:5f:
                    4b:54:3f:99:85:47:6e:fa:1f:fb:16:14:7d:4f:92:
                    39:8a:10:2f:d6:7e:91:58:44:73:4c:7a:3a:5b:2e:
                    d9:a3:61:7a:a5:99:e5:a3:f4:ca:13:85:bd:e9:2a:
                    45:27:a6:c8:64:d6:7e:87:0b:fc:21:2c:40:a3:d3:
                    d2:09
                Exponent: 65537 (0x10001)
        X509v3 extensions:
            X509v3 Basic Constraints: 
                CA:FALSE
            Netscape Cert Type: 
                SSL Client, SSL Server
            Netscape Comment: 
                OpenSSL Generated Server Certificate
            X509v3 Subject Key Identifier: 
                D2:1C:B7:F4:9F:52:8A:29:54:D6:40:09:A6:56:95:3D:8D:0D:C0:A8
            X509v3 Authority Key Identifier: 
                keyid:81:F7:99:5B:10:B9:C8:8C:DE:F3:52:5E:EA:4E:69:A0:43:3E:AC:DD
                DirName:/OU=OSAAF/O=ONAP/C=US
                serial:07

            X509v3 Key Usage: critical
                Digital Signature, Non Repudiation, Key Encipherment
            X509v3 Extended Key Usage: 
                TLS Web Server Authentication, TLS Web Client Authentication
            X509v3 Subject Alternative Name: 
                DNS:aaf.osaaf.org, DNS:aaf.osaaf.org, DNS:service.aaf.osaaf.org, DNS:locate.aaf.osaaf.org, DNS:oauth.aaf.osaaf.org, DNS:token.aaf.osaaf.org, DNS:introspect.aaf.osaaf.org, DNS:gui.aaf.osaaf.org, DNS:cm.aaf.osaaf.org, DNS:hello.aaf.osaaf.org, DNS:aaf-service, DNS:aaf-service.onap, DNS:aaf-locate, DNS:aaf-locate.onap, DNS:aaf-oauth, DNS:aaf-oauth.onap, DNS:aaf-token, DNS:aaf-token.onap, DNS:aaf-introspect, DNS:aaf-introspect.onap, DNS:aaf-gui, DNS:aaf-gui.onap, DNS:aaf-cm, DNS:aaf-cm.onap, DNS:aaf-hello, DNS:aaf-hello.onap
    Signature Algorithm: sha256WithRSAEncryption
         59:4d:14:79:ae:6c:a1:f7:cd:d6:45:8f:88:a7:87:27:56:f1:
         dc:d5:ab:e8:ec:d5:1b:c7:72:72:09:43:dc:ff:04:fd:5c:6d:
         46:18:2f:eb:a2:da:e2:17:b1:80:5b:cf:e9:f3:0c:3d:b6:95:
         4e:63:26:31:f5:de:fc:4e:8f:ea:44:3a:4e:25:60:7b:e1:36:
         f8:df:e6:21:b1:4b:bc:03:c6:78:a8:24:ff:b9:57:11:f6:80:
         ae:31:0e:ae:37:f9:6c:3d:ab:bb:b9:d7:c5:1d:50:70:48:08:
         a8:d6:54:1b:61:4d:30:a6:8a:44:97:4e:31:a8:2b:97:ab:8b:
         82:20:e4:8d:3b:21:31:e4:1e:80:72:04:9a:da:65:66:88:61:
         a3:20:7a:74:07:f6:11:c9:9e:8a:22:c7:0c:4f:97:97:17:06:
         43:04:1d:c7:f7:d4:d3:4f:6d:f6:df:23:e0:c6:dd:6b:3d:1e:
         5b:dc:9e:4e:c6:c1:c5:fc:23:4d:d6:94:ca:31:f0:27:21:bd:
         d5:8a:22:e0:dd:c9:8a:21:d6:6a:7a:52:7d:3e:8d:5f:13:e4:
         d9:73:bd:67:a3:01:2b:60:2b:e7:5d:2a:30:f6:11:4d:b8:b7:
         70:56:3e:a8:04:68:e4:dc:d6:d2:b5:ea:ef:d7:6e:58:ef:bf:
         32:bf:40:1e
-----BEGIN CERTIFICATE-----

3NbSterv125Y778yv0Ae
-----END CERTIFICATE-----
Bag Attributes
    localKeyID: 02 89 19 5C 56 C9 C0 E1 F7 27 DE 36 00 72 F6 9F 85 ED 78 FA 
    friendlyName: aaf_intermediate_9
subject=C = US, O = ONAP, OU = OSAAF, CN = intermediateCA_9

issuer=OU = OSAAF, O = ONAP, C = US

-----BEGIN CERTIFICATE-----

BmMXTvouW+Flyvcw/0oTcfN0biDIt0mCkZ5CQVjfGL9DTOYteR5hw+k=
-----END CERTIFICATE-----
Generated ONAP Test AAF certs
aaf_locator_container=oom
aaf_release=Frankfurt
aaf_locator_container_ns=onap
aaf_locator_name=%NS.%N
aaf_locate_url=https://aaf-locate.onap:8095
cadi_longitude=-72.0
cadi_latitude=38.0
aaf_locator_public_fqdn=aaf.osaaf.org
cadi_x509_issuers=CN=intermediateCA_1,
aaf_env=DEV
aaf_locator_name.oom=%CNS.%NS.%N
2023-01-22T04:41:39.559+0000 INIT [cadi] https.protocols set by cadi_protocols in CADI Properties
2023-01-22T04:41:39.561+0000 INIT [cadi] jdk.tls.client.protocols set from Default Protocols
Writing to /opt/app/osaaf/local
Writing file /opt/app/osaaf/local/org.osaaf.aaf.keyfile
2023-01-22T04:41:48.558+0000 INIT [cadi] RegistrationProperty: default_container='oom'
2023-01-22T04:41:48.559+0000 INIT [cadi] RegistrationProperty: public_port='null'
2023-01-22T04:41:48.662+0000 INIT [cadi] RegistrationProperty: hostname='onap-aaf-fs-d848d979-9vtzl'
2023-01-22T04:41:48.663+0000 INIT [cadi] RegistrationProperty: public_fqdn='aaf.osaaf.org'
2023-01-22T04:41:48.663+0000 INIT [cadi] RegistrationProperty: default_name='%NS.%N'
2023-01-22T04:41:48.663+0000 INIT [cadi] RegistrationProperty: latitude='38.0'
2023-01-22T04:41:48.663+0000 INIT [cadi] RegistrationProperty: longitude='-72.0'
2023-01-22T04:41:48.664+0000 INIT [cadi] RegistrationProperty: public_hostname(overloaded by )='aaf.osaaf.org'
2023-01-22T04:41:48.664+0000 INIT [cadi] RegistrationProperty: default_fqdn='onap-aaf-fs-d848d979-9vtzl'
2023-01-22T04:41:48.664+0000 INIT [cadi] RegistrationProperty: default_container_ns='onap'
Passed in Truststore is /opt/app/osaaf/public/truststoreONAPall.jks
New Truststore is /opt/app/osaaf/local/truststoreONAPall.jks
Reading /tmp/tmp.oFiIOB
Reading /opt/app/aaf_config/local/aaf.props
Reading /opt/app/aaf_config/local/initialConfig.props
Creating new /opt/app/osaaf/local/org.osaaf.aaf.location.props
Creating new /opt/app/osaaf/local/org.osaaf.aaf.cred.props
Creating new /opt/app/osaaf/local/org.osaaf.aaf.props
2023-01-22T04:41:52.357+0000: Trans Info
         REMOTE Get Configuration 3799.6697ms
 
Created AAF Initial Configurations
Initialization Complete
