# Properties passed in
HOSTNAME=onap-aaf-fs-d4dc6c549-klnmv
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: 96139972624 (0x1662639010)
        Validity
            Not Before: Sep  8 12:10:11 2022 GMT
            Not After : Sep  8 12:10:11 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: 
                53:E5:58:9E:0E:E5:1A:9E:3B:B1:1E:12:DB:CE:1F:A5:4D:32:6F:CF
            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  8 12:10:11 2023 GMT (365 days)

Write out database with 1 new entries
Data Base Updated
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number: 96139972624 (0x1662639010)
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: C=US, O=ONAP, OU=OSAAF, CN=intermediateCA_9
        Validity
            Not Before: Sep  8 12:10:11 2022 GMT
            Not After : Sep  8 12:10:11 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:af:ea:bb:6e:cb:d7:ac:92:f7:9d:09:13:d3:98:
                    8e:2f:ee:6b:0d:b6:ef:98:b8:ba:bb:50:b6:8a:29:
                    d4:c1:70:90:36:6a:90:52:2c:6e:86:96:ca:25:07:
                    45:d7:1e:48:a5:82:ee:07:85:33:ba:95:71:ea:0c:
                    d6:02:d3:df:a6:eb:cc:17:9a:5b:01:ab:72:46:b0:
                    59:0e:9e:dc:68:ee:6d:2e:ae:7a:24:98:d5:32:41:
                    8d:e2:50:fa:9d:b8:ad:cd:63:63:25:2e:be:6d:3e:
                    1c:75:a8:6f:45:47:42:83:98:65:e7:3e:41:1c:f6:
                    3d:88:73:28:5a:39:13:a9:d7:c7:84:87:d9:27:58:
                    47:15:6f:fa:35:87:7f:1e:4f:f4:78:5a:6d:59:73:
                    80:8e:9e:fb:31:46:69:07:9d:3e:4a:37:7f:56:26:
                    2f:5d:3d:2f:7c:e8:31:63:7a:ca:24:5d:1f:0f:91:
                    80:7e:87:90:33:05:c1:c0:52:45:95:25:70:19:2e:
                    6f:d7:29:b5:a4:9b:55:bb:74:f8:46:e7:b8:f1:ee:
                    64:82:1b:ba:5a:2d:81:bb:a6:b7:31:f2:9e:5b:d8:
                    93:d9:6f:00:1f:88:a1:56:a1:40:6c:a3:f9:4a:27:
                    58:6f:bc:a6:a9:17:7b:76:49:6b:55:4a:a6:22:da:
                    88:b7
                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: 
                53:E5:58:9E:0E:E5:1A:9E:3B:B1:1E:12:DB:CE:1F:A5:4D:32:6F:CF
            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
         73:b9:fa:96:37:85:b6:ff:f6:39:3e:c8:0e:a5:39:78:f9:de:
         98:05:62:d7:6c:8d:77:f2:25:23:e6:e2:c6:f7:f2:ca:cf:3b:
         54:0a:6d:af:44:81:6b:41:1d:55:05:e3:ec:96:c1:12:09:3e:
         c9:07:34:ce:2b:8d:98:89:ea:b5:2f:01:80:44:fc:01:55:fb:
         00:eb:45:57:51:07:70:1f:5c:e9:e1:1a:1b:6a:c9:e9:a3:83:
         c8:07:e8:5c:d7:54:fd:da:61:67:a4:06:8a:bf:34:ea:4e:99:
         44:88:ec:1d:ae:d9:49:31:79:52:88:8b:fe:24:6f:d9:f1:6d:
         88:dc:49:46:00:be:8c:9b:75:7d:0f:9c:5b:32:86:cb:a0:e5:
         f7:79:0d:55:48:f3:08:3c:6a:51:22:bb:5e:40:d2:61:9b:8c:
         f3:e1:ef:37:a1:5b:92:42:1a:91:75:a3:b7:51:ee:ef:1a:3e:
         4b:7d:c3:92:b9:0f:2f:e1:38:b5:6d:a8:87:f9:82:1f:a7:eb:
         21:84:89:ac:87:75:4d:41:8f:3d:d7:b6:57:b3:be:64:37:c5:
         34:f5:03:c1:05:ac:86:75:ee:cf:0e:4d:88:c4:f0:43:c2:3c:
         5a:61:b6:2a:19:ac:ae:4c:7d:d7:a0:60:81:90:c3:d4:71:56:
         a5:2f:cd:36
-----BEGIN CERTIFICATE-----

TH3XoGCBkMPUcValL802
-----END CERTIFICATE-----
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number: 96139972624 (0x1662639010)
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: C=US, O=ONAP, OU=OSAAF, CN=intermediateCA_9
        Validity
            Not Before: Sep  8 12:10:11 2022 GMT
            Not After : Sep  8 12:10:11 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:af:ea:bb:6e:cb:d7:ac:92:f7:9d:09:13:d3:98:
                    8e:2f:ee:6b:0d:b6:ef:98:b8:ba:bb:50:b6:8a:29:
                    d4:c1:70:90:36:6a:90:52:2c:6e:86:96:ca:25:07:
                    45:d7:1e:48:a5:82:ee:07:85:33:ba:95:71:ea:0c:
                    d6:02:d3:df:a6:eb:cc:17:9a:5b:01:ab:72:46:b0:
                    59:0e:9e:dc:68:ee:6d:2e:ae:7a:24:98:d5:32:41:
                    8d:e2:50:fa:9d:b8:ad:cd:63:63:25:2e:be:6d:3e:
                    1c:75:a8:6f:45:47:42:83:98:65:e7:3e:41:1c:f6:
                    3d:88:73:28:5a:39:13:a9:d7:c7:84:87:d9:27:58:
                    47:15:6f:fa:35:87:7f:1e:4f:f4:78:5a:6d:59:73:
                    80:8e:9e:fb:31:46:69:07:9d:3e:4a:37:7f:56:26:
                    2f:5d:3d:2f:7c:e8:31:63:7a:ca:24:5d:1f:0f:91:
                    80:7e:87:90:33:05:c1:c0:52:45:95:25:70:19:2e:
                    6f:d7:29:b5:a4:9b:55:bb:74:f8:46:e7:b8:f1:ee:
                    64:82:1b:ba:5a:2d:81:bb:a6:b7:31:f2:9e:5b:d8:
                    93:d9:6f:00:1f:88:a1:56:a1:40:6c:a3:f9:4a:27:
                    58:6f:bc:a6:a9:17:7b:76:49:6b:55:4a:a6:22:da:
                    88:b7
                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: 
                53:E5:58:9E:0E:E5:1A:9E:3B:B1:1E:12:DB:CE:1F:A5:4D:32:6F:CF
            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
         73:b9:fa:96:37:85:b6:ff:f6:39:3e:c8:0e:a5:39:78:f9:de:
         98:05:62:d7:6c:8d:77:f2:25:23:e6:e2:c6:f7:f2:ca:cf:3b:
         54:0a:6d:af:44:81:6b:41:1d:55:05:e3:ec:96:c1:12:09:3e:
         c9:07:34:ce:2b:8d:98:89:ea:b5:2f:01:80:44:fc:01:55:fb:
         00:eb:45:57:51:07:70:1f:5c:e9:e1:1a:1b:6a:c9:e9:a3:83:
         c8:07:e8:5c:d7:54:fd:da:61:67:a4:06:8a:bf:34:ea:4e:99:
         44:88:ec:1d:ae:d9:49:31:79:52:88:8b:fe:24:6f:d9:f1:6d:
         88:dc:49:46:00:be:8c:9b:75:7d:0f:9c:5b:32:86:cb:a0:e5:
         f7:79:0d:55:48:f3:08:3c:6a:51:22:bb:5e:40:d2:61:9b:8c:
         f3:e1:ef:37:a1:5b:92:42:1a:91:75:a3:b7:51:ee:ef:1a:3e:
         4b:7d:c3:92:b9:0f:2f:e1:38:b5:6d:a8:87:f9:82:1f:a7:eb:
         21:84:89:ac:87:75:4d:41:8f:3d:d7:b6:57:b3:be:64:37:c5:
         34:f5:03:c1:05:ac:86:75:ee:cf:0e:4d:88:c4:f0:43:c2:3c:
         5a:61:b6:2a:19:ac:ae:4c:7d:d7:a0:60:81:90:c3:d4:71:56:
         a5:2f:cd:36
-----BEGIN CERTIFICATE-----

TH3XoGCBkMPUcValL802
-----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-08T12:10:17.461+0000 INIT [cadi] https.protocols set by cadi_protocols in CADI Properties
2022-09-08T12:10:17.557+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-08T12:10:25.358+0000 INIT [cadi] RegistrationProperty: default_container='oom'
2022-09-08T12:10:25.359+0000 INIT [cadi] RegistrationProperty: public_port='null'
2022-09-08T12:10:25.459+0000 INIT [cadi] RegistrationProperty: hostname='onap-aaf-fs-d4dc6c549-klnmv'
2022-09-08T12:10:25.459+0000 INIT [cadi] RegistrationProperty: public_fqdn='aaf.osaaf.org'
2022-09-08T12:10:25.459+0000 INIT [cadi] RegistrationProperty: default_name='%NS.%N'
2022-09-08T12:10:25.459+0000 INIT [cadi] RegistrationProperty: latitude='38.0'
2022-09-08T12:10:25.460+0000 INIT [cadi] RegistrationProperty: longitude='-72.0'
2022-09-08T12:10:25.460+0000 INIT [cadi] RegistrationProperty: public_hostname(overloaded by )='aaf.osaaf.org'
2022-09-08T12:10:25.460+0000 INIT [cadi] RegistrationProperty: default_fqdn='onap-aaf-fs-d4dc6c549-klnmv'
2022-09-08T12:10:25.460+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.Ocabcm
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-08T12:10:28.461+0000: Trans Info
         REMOTE Get Configuration 3201.694ms
 
Created AAF Initial Configurations
Initialization Complete
