# Properties passed in
HOSTNAME=onap-aaf-locate-6b4684649c-ktrjb
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'
-----
Using configuration from openssl.conf
Check that the request matches the signature
Signature ok
Sign it
Certificate Details:
        Serial Number: 96134968388 (0x1662173444)
        Validity
            Not Before: Sep  3 02:50:46 2022 GMT
            Not After : Sep  3 02:50:46 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: 
                8A:91:0B:2F:18:7C:73:30:A6:57:5C:11:FB:2C:12:D8:26:C6:60:19
            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 Sep  3 02:50:46 2023 GMT (365 days)

Write out database with 1 new entries
Data Base Updated
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number: 96134968388 (0x1662173444)
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: C=US, O=ONAP, OU=OSAAF, CN=intermediateCA_9
        Validity
            Not Before: Sep  3 02:50:46 2022 GMT
            Not After : Sep  3 02:50:46 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:ba:f6:b3:48:b3:f3:f0:e1:64:6c:58:55:9e:05:
                    7f:ff:47:a6:f5:79:f5:9a:30:8a:8d:d0:27:8c:55:
                    93:7a:af:83:0f:3c:ee:68:60:30:6a:b1:4c:a2:44:
                    dd:83:e7:9b:6e:40:3b:b8:bf:9c:a2:cc:9c:ea:6d:
                    67:b9:ef:0b:af:66:8e:07:df:40:40:65:40:99:d8:
                    eb:5b:ba:a5:ac:25:93:a0:90:16:f8:13:6b:d7:bd:
                    93:19:45:86:8c:6e:04:d5:55:1d:08:9b:da:b9:77:
                    af:bc:ad:e6:82:eb:0a:21:42:26:72:33:bd:fd:09:
                    c0:75:7b:ee:f4:42:ea:8a:bc:95:59:15:65:8d:33:
                    07:c9:63:c4:bf:a8:8b:fe:e9:e6:3b:7e:1b:12:d9:
                    c8:ac:72:28:05:50:98:87:39:8e:54:16:8f:f1:cd:
                    7d:5e:70:26:50:32:cf:6f:02:d1:a6:96:0d:90:22:
                    fa:6a:e4:a1:04:dd:c8:ab:d9:94:c4:22:e0:63:cb:
                    a4:cf:92:78:17:2a:e6:66:55:47:22:4a:8b:a1:1f:
                    4f:cb:a2:7f:83:18:54:c0:d6:11:e8:c7:b2:98:59:
                    fd:dc:94:c1:e9:45:fb:70:5e:65:ca:90:41:00:f1:
                    55:ad:a0:ed:f5:05:ce:47:dc:cc:9f:85:dd:3e:e4:
                    9c:c3
                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: 
                8A:91:0B:2F:18:7C:73:30:A6:57:5C:11:FB:2C:12:D8:26:C6:60:19
            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
         97:8d:0a:31:84:86:bf:27:0c:93:84:d5:00:55:58:09:fe:45:
         0c:13:75:d9:02:1d:55:b7:e7:85:6a:02:f5:fc:07:40:b8:77:
         67:58:9b:8d:dd:be:d3:89:72:a4:cf:bd:d4:f6:08:7d:f7:72:
         1b:1a:dd:31:60:c8:8a:32:ac:e5:a1:ed:df:6c:43:6b:48:ff:
         66:31:2e:9a:60:6f:ce:40:cf:db:4f:14:47:6a:74:ce:d6:c2:
         59:ea:32:6f:ce:c0:31:68:2a:5b:fe:a8:d8:a3:00:d3:e8:96:
         c0:75:2a:85:86:f3:93:9b:69:e8:fd:fe:12:c8:bf:5d:93:50:
         07:74:d9:a3:2e:43:84:b3:1f:5c:3a:e3:c1:39:42:86:51:d8:
         98:69:6e:cb:67:9d:5b:b9:ac:36:b4:67:4e:35:e5:f6:e1:eb:
         50:71:17:ec:86:b6:e2:4e:dd:4c:f1:26:4a:a0:4c:ff:83:59:
         f8:75:2b:99:f4:2f:dc:d6:be:b4:d7:45:58:28:4f:38:78:b1:
         ee:58:40:f3:37:34:ad:1c:18:2b:c3:8a:b7:6e:cc:ff:5c:cf:
         5d:4f:e4:4f:db:ad:48:16:c3:48:19:f1:b0:96:30:93:dd:65:
         43:fc:29:3f:38:41:a9:51:57:10:7d:59:db:a3:78:9f:3c:1c:
         be:92:aa:d2
-----BEGIN CERTIFICATE-----

UVcQfVnbo3ifPBy+kqrS
-----END CERTIFICATE-----
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number: 96134968388 (0x1662173444)
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: C=US, O=ONAP, OU=OSAAF, CN=intermediateCA_9
        Validity
            Not Before: Sep  3 02:50:46 2022 GMT
            Not After : Sep  3 02:50:46 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:ba:f6:b3:48:b3:f3:f0:e1:64:6c:58:55:9e:05:
                    7f:ff:47:a6:f5:79:f5:9a:30:8a:8d:d0:27:8c:55:
                    93:7a:af:83:0f:3c:ee:68:60:30:6a:b1:4c:a2:44:
                    dd:83:e7:9b:6e:40:3b:b8:bf:9c:a2:cc:9c:ea:6d:
                    67:b9:ef:0b:af:66:8e:07:df:40:40:65:40:99:d8:
                    eb:5b:ba:a5:ac:25:93:a0:90:16:f8:13:6b:d7:bd:
                    93:19:45:86:8c:6e:04:d5:55:1d:08:9b:da:b9:77:
                    af:bc:ad:e6:82:eb:0a:21:42:26:72:33:bd:fd:09:
                    c0:75:7b:ee:f4:42:ea:8a:bc:95:59:15:65:8d:33:
                    07:c9:63:c4:bf:a8:8b:fe:e9:e6:3b:7e:1b:12:d9:
                    c8:ac:72:28:05:50:98:87:39:8e:54:16:8f:f1:cd:
                    7d:5e:70:26:50:32:cf:6f:02:d1:a6:96:0d:90:22:
                    fa:6a:e4:a1:04:dd:c8:ab:d9:94:c4:22:e0:63:cb:
                    a4:cf:92:78:17:2a:e6:66:55:47:22:4a:8b:a1:1f:
                    4f:cb:a2:7f:83:18:54:c0:d6:11:e8:c7:b2:98:59:
                    fd:dc:94:c1:e9:45:fb:70:5e:65:ca:90:41:00:f1:
                    55:ad:a0:ed:f5:05:ce:47:dc:cc:9f:85:dd:3e:e4:
                    9c:c3
                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: 
                8A:91:0B:2F:18:7C:73:30:A6:57:5C:11:FB:2C:12:D8:26:C6:60:19
            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
         97:8d:0a:31:84:86:bf:27:0c:93:84:d5:00:55:58:09:fe:45:
         0c:13:75:d9:02:1d:55:b7:e7:85:6a:02:f5:fc:07:40:b8:77:
         67:58:9b:8d:dd:be:d3:89:72:a4:cf:bd:d4:f6:08:7d:f7:72:
         1b:1a:dd:31:60:c8:8a:32:ac:e5:a1:ed:df:6c:43:6b:48:ff:
         66:31:2e:9a:60:6f:ce:40:cf:db:4f:14:47:6a:74:ce:d6:c2:
         59:ea:32:6f:ce:c0:31:68:2a:5b:fe:a8:d8:a3:00:d3:e8:96:
         c0:75:2a:85:86:f3:93:9b:69:e8:fd:fe:12:c8:bf:5d:93:50:
         07:74:d9:a3:2e:43:84:b3:1f:5c:3a:e3:c1:39:42:86:51:d8:
         98:69:6e:cb:67:9d:5b:b9:ac:36:b4:67:4e:35:e5:f6:e1:eb:
         50:71:17:ec:86:b6:e2:4e:dd:4c:f1:26:4a:a0:4c:ff:83:59:
         f8:75:2b:99:f4:2f:dc:d6:be:b4:d7:45:58:28:4f:38:78:b1:
         ee:58:40:f3:37:34:ad:1c:18:2b:c3:8a:b7:6e:cc:ff:5c:cf:
         5d:4f:e4:4f:db:ad:48:16:c3:48:19:f1:b0:96:30:93:dd:65:
         43:fc:29:3f:38:41:a9:51:57:10:7d:59:db:a3:78:9f:3c:1c:
         be:92:aa:d2
-----BEGIN CERTIFICATE-----

UVcQfVnbo3ifPBy+kqrS
-----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-09-03T02:50:52.948+0000 INIT [cadi] https.protocols set by cadi_protocols in CADI Properties
2022-09-03T02:50:52.950+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-09-03T02:51:01.550+0000 INIT [cadi] RegistrationProperty: default_container='oom'
2022-09-03T02:51:01.550+0000 INIT [cadi] RegistrationProperty: public_port='null'
2022-09-03T02:51:01.656+0000 INIT [cadi] RegistrationProperty: hostname='onap-aaf-locate-6b4684649c-ktrjb'
2022-09-03T02:51:01.657+0000 INIT [cadi] RegistrationProperty: public_fqdn='aaf.osaaf.org'
2022-09-03T02:51:01.657+0000 INIT [cadi] RegistrationProperty: default_name='%NS.%N'
2022-09-03T02:51:01.657+0000 INIT [cadi] RegistrationProperty: latitude='38.0'
2022-09-03T02:51:01.657+0000 INIT [cadi] RegistrationProperty: longitude='-72.0'
2022-09-03T02:51:01.658+0000 INIT [cadi] RegistrationProperty: public_hostname(overloaded by )='aaf.osaaf.org'
2022-09-03T02:51:01.658+0000 INIT [cadi] RegistrationProperty: default_fqdn='onap-aaf-locate-6b4684649c-ktrjb'
2022-09-03T02:51:01.658+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.epboGO
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-09-03T02:51:04.946+0000: Trans Info
         REMOTE Get Configuration 3301.9646ms
 
Created AAF Initial Configurations
Initialization Complete
