# Properties passed in
HOSTNAME=onap-aaf-locate-996bb5854-4qhdc
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: 96254204020 (0x1669329874)
        Validity
            Not Before: Nov 24 22:44:40 2022 GMT
            Not After : Nov 24 22:44:40 2023 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: 
                4B:6E:79:EE:AE:85:E2:DD:E2:A4:9F:66:60:D6:72:21:E7:52:E5:BF
            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 Nov 24 22:44:40 2023 GMT (365 days)

Write out database with 1 new entries
Data Base Updated
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number: 96254204020 (0x1669329874)
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: C=US, O=ONAP, OU=OSAAF, CN=intermediateCA_9
        Validity
            Not Before: Nov 24 22:44:40 2022 GMT
            Not After : Nov 24 22:44:40 2023 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:9a:49:f0:22:63:67:f0:22:03:5f:1f:da:92:6f:
                    fc:fa:ed:1a:b6:15:00:1d:d2:55:e1:16:58:df:49:
                    c4:6d:2e:90:c6:e4:59:0b:cd:b8:5d:7d:44:26:1d:
                    cb:ed:34:1d:5a:f4:a8:3f:da:a3:fd:a4:7a:36:f9:
                    f8:ef:1b:1d:25:0e:7c:d4:7a:92:65:c2:a3:2f:b2:
                    0a:83:b1:b6:56:26:42:aa:5e:e2:73:6e:b2:36:1d:
                    23:1f:49:b2:12:ec:ab:e8:2d:43:4c:9c:75:1e:dc:
                    e0:00:5c:89:5a:19:a7:b7:8a:91:46:ff:09:8a:11:
                    b6:91:2f:d6:ba:d8:fe:9a:3e:55:29:3c:11:29:2d:
                    c6:8e:a6:ab:45:8c:5a:cc:73:9c:95:e7:20:05:42:
                    6b:bd:cd:ab:93:60:59:95:10:03:f3:9a:92:c2:90:
                    bf:a0:33:67:97:48:ee:02:e1:38:a4:fd:5d:21:a4:
                    fb:66:b4:bb:9d:98:0c:7b:a7:1d:e1:69:db:a2:45:
                    c2:25:5d:af:60:52:78:a5:19:e0:9e:98:a6:82:33:
                    f6:c2:e4:4f:d2:0f:d6:54:49:c5:cb:3e:7c:8c:c8:
                    ba:8e:9e:14:19:27:12:eb:42:4d:1c:97:26:11:19:
                    93:2d:41:4c:8c:d4:de:93:1f:af:40:85:f5:03:bd:
                    93:77
                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: 
                4B:6E:79:EE:AE:85:E2:DD:E2:A4:9F:66:60:D6:72:21:E7:52:E5:BF
            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
         81:f5:af:60:82:aa:ba:75:5c:ff:a2:f1:e2:c8:8f:f1:01:46:
         ca:db:a9:f1:a4:6b:59:a6:44:65:35:84:4b:90:f3:0c:d6:ce:
         7b:19:f1:a9:bd:56:9f:2a:b7:05:87:a9:3b:a9:ed:1d:bc:f6:
         6d:a9:9f:56:cb:0b:3b:26:fc:20:2c:1e:de:bd:1c:33:c5:85:
         44:38:db:82:45:8e:91:67:57:e4:ec:aa:b8:49:6a:3b:63:5f:
         8b:d9:ae:88:e3:22:22:39:ed:0d:cd:0a:be:4f:b9:a1:7f:67:
         4a:a9:38:57:11:4c:b1:8b:4d:02:45:05:da:54:aa:e3:e5:d4:
         3e:12:14:37:ac:a5:5a:f4:cd:e0:e7:26:aa:12:a0:3b:63:a7:
         30:97:a8:02:9d:99:79:37:59:ed:ad:4e:4d:d7:eb:eb:c7:70:
         3a:cb:25:27:c8:44:52:24:72:e8:ee:6d:a1:76:1c:ac:ed:de:
         21:11:34:ec:a0:79:85:5a:a3:f2:21:50:d5:43:92:19:fc:3a:
         61:7c:1e:5f:fa:c5:85:e5:ec:32:d9:a8:7f:ce:e0:c0:4b:cd:
         34:38:79:e1:99:58:40:0d:f4:03:b0:36:73:81:30:ed:ee:13:
         39:75:f0:86:59:78:b7:a7:55:91:40:13:02:00:3a:af:b3:a1:
         03:3c:38:6d
-----BEGIN CERTIFICATE-----

p1WRQBMCADqvs6EDPDht
-----END CERTIFICATE-----
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number: 96254204020 (0x1669329874)
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: C=US, O=ONAP, OU=OSAAF, CN=intermediateCA_9
        Validity
            Not Before: Nov 24 22:44:40 2022 GMT
            Not After : Nov 24 22:44:40 2023 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:9a:49:f0:22:63:67:f0:22:03:5f:1f:da:92:6f:
                    fc:fa:ed:1a:b6:15:00:1d:d2:55:e1:16:58:df:49:
                    c4:6d:2e:90:c6:e4:59:0b:cd:b8:5d:7d:44:26:1d:
                    cb:ed:34:1d:5a:f4:a8:3f:da:a3:fd:a4:7a:36:f9:
                    f8:ef:1b:1d:25:0e:7c:d4:7a:92:65:c2:a3:2f:b2:
                    0a:83:b1:b6:56:26:42:aa:5e:e2:73:6e:b2:36:1d:
                    23:1f:49:b2:12:ec:ab:e8:2d:43:4c:9c:75:1e:dc:
                    e0:00:5c:89:5a:19:a7:b7:8a:91:46:ff:09:8a:11:
                    b6:91:2f:d6:ba:d8:fe:9a:3e:55:29:3c:11:29:2d:
                    c6:8e:a6:ab:45:8c:5a:cc:73:9c:95:e7:20:05:42:
                    6b:bd:cd:ab:93:60:59:95:10:03:f3:9a:92:c2:90:
                    bf:a0:33:67:97:48:ee:02:e1:38:a4:fd:5d:21:a4:
                    fb:66:b4:bb:9d:98:0c:7b:a7:1d:e1:69:db:a2:45:
                    c2:25:5d:af:60:52:78:a5:19:e0:9e:98:a6:82:33:
                    f6:c2:e4:4f:d2:0f:d6:54:49:c5:cb:3e:7c:8c:c8:
                    ba:8e:9e:14:19:27:12:eb:42:4d:1c:97:26:11:19:
                    93:2d:41:4c:8c:d4:de:93:1f:af:40:85:f5:03:bd:
                    93:77
                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: 
                4B:6E:79:EE:AE:85:E2:DD:E2:A4:9F:66:60:D6:72:21:E7:52:E5:BF
            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
         81:f5:af:60:82:aa:ba:75:5c:ff:a2:f1:e2:c8:8f:f1:01:46:
         ca:db:a9:f1:a4:6b:59:a6:44:65:35:84:4b:90:f3:0c:d6:ce:
         7b:19:f1:a9:bd:56:9f:2a:b7:05:87:a9:3b:a9:ed:1d:bc:f6:
         6d:a9:9f:56:cb:0b:3b:26:fc:20:2c:1e:de:bd:1c:33:c5:85:
         44:38:db:82:45:8e:91:67:57:e4:ec:aa:b8:49:6a:3b:63:5f:
         8b:d9:ae:88:e3:22:22:39:ed:0d:cd:0a:be:4f:b9:a1:7f:67:
         4a:a9:38:57:11:4c:b1:8b:4d:02:45:05:da:54:aa:e3:e5:d4:
         3e:12:14:37:ac:a5:5a:f4:cd:e0:e7:26:aa:12:a0:3b:63:a7:
         30:97:a8:02:9d:99:79:37:59:ed:ad:4e:4d:d7:eb:eb:c7:70:
         3a:cb:25:27:c8:44:52:24:72:e8:ee:6d:a1:76:1c:ac:ed:de:
         21:11:34:ec:a0:79:85:5a:a3:f2:21:50:d5:43:92:19:fc:3a:
         61:7c:1e:5f:fa:c5:85:e5:ec:32:d9:a8:7f:ce:e0:c0:4b:cd:
         34:38:79:e1:99:58:40:0d:f4:03:b0:36:73:81:30:ed:ee:13:
         39:75:f0:86:59:78:b7:a7:55:91:40:13:02:00:3a:af:b3:a1:
         03:3c:38:6d
-----BEGIN CERTIFICATE-----

p1WRQBMCADqvs6EDPDht
-----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
2022-11-24T22:44:47.066+0000 INIT [cadi] https.protocols set by cadi_protocols in CADI Properties
2022-11-24T22:44:47.067+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
2022-11-24T22:44:57.068+0000 INIT [cadi] RegistrationProperty: default_container='oom'
2022-11-24T22:44:57.068+0000 INIT [cadi] RegistrationProperty: public_port='null'
2022-11-24T22:44:57.273+0000 INIT [cadi] RegistrationProperty: hostname='onap-aaf-locate-996bb5854-4qhdc'
2022-11-24T22:44:57.363+0000 INIT [cadi] RegistrationProperty: public_fqdn='aaf.osaaf.org'
2022-11-24T22:44:57.363+0000 INIT [cadi] RegistrationProperty: default_name='%NS.%N'
2022-11-24T22:44:57.364+0000 INIT [cadi] RegistrationProperty: latitude='38.0'
2022-11-24T22:44:57.364+0000 INIT [cadi] RegistrationProperty: longitude='-72.0'
2022-11-24T22:44:57.364+0000 INIT [cadi] RegistrationProperty: public_hostname(overloaded by )='aaf.osaaf.org'
2022-11-24T22:44:57.364+0000 INIT [cadi] RegistrationProperty: default_fqdn='onap-aaf-locate-996bb5854-4qhdc'
2022-11-24T22:44:57.365+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.OIhbhM
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
2022-11-24T22:45:01.164+0000: Trans Info
         REMOTE Get Configuration 4098.4043ms
 
Created AAF Initial Configurations
Initialization Complete
