# Properties passed in
HOSTNAME=onap-aaf-service-65b576ff8b-zd5gb
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: 96134967360 (0x1662173040)
        Validity
            Not Before: Sep  3 02:44:04 2022 GMT
            Not After : Sep  3 02:44:04 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: 
                86:08:28:96:D4:5D:B0:BD:94:B6:6E:3A:53:EF:C0:B4:C9:17:8A:F8
            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:44:04 2023 GMT (365 days)

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

bh59u+I89/9PTnW1iEua
-----END CERTIFICATE-----
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number: 96134967360 (0x1662173040)
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: C=US, O=ONAP, OU=OSAAF, CN=intermediateCA_9
        Validity
            Not Before: Sep  3 02:44:04 2022 GMT
            Not After : Sep  3 02:44:04 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:a3:0d:06:8f:b5:68:0f:ad:53:90:44:6f:ce:7e:
                    6e:6e:2e:10:ab:7b:39:d6:69:b2:d3:81:8a:b6:f4:
                    f0:c2:be:32:c3:68:1a:cf:5c:27:c3:78:6c:6a:46:
                    ec:2d:34:98:64:db:67:48:71:94:8e:fe:f6:42:ec:
                    db:69:03:14:f7:3a:d5:c9:e3:67:e7:1b:21:97:83:
                    55:a5:79:94:6b:81:62:17:a7:9c:c3:bb:f2:98:12:
                    f8:0b:07:6a:20:5d:82:55:e3:d5:64:a7:ca:de:20:
                    3d:6c:3f:e6:96:87:4b:3f:04:21:da:ba:66:69:7f:
                    22:57:aa:a3:60:cd:19:9c:59:9b:f7:93:b5:ff:85:
                    ad:fe:41:ef:e7:85:db:a3:df:24:e0:83:4a:4c:f7:
                    b2:b2:fc:b2:80:f1:1d:1e:a6:05:3f:d9:78:ac:09:
                    05:c7:c4:ca:18:ad:86:d0:fd:26:4b:ba:d9:a0:f5:
                    5c:db:24:dc:61:65:f3:4f:84:3a:d8:c6:70:67:a4:
                    20:07:6e:da:a0:50:28:8c:9e:06:e9:33:cf:ec:cd:
                    0b:fb:21:82:99:3d:79:94:44:1c:d0:b1:83:24:c3:
                    6d:62:e2:c5:3f:46:a2:c0:f9:3d:46:2e:36:51:7e:
                    b4:e7:5a:5e:13:43:5a:2e:43:92:f7:a4:d8:50:88:
                    a9:df
                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: 
                86:08:28:96:D4:5D:B0:BD:94:B6:6E:3A:53:EF:C0:B4:C9:17:8A:F8
            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
         54:b1:23:41:34:04:57:68:40:86:80:41:85:aa:e9:84:b3:e2:
         48:d7:d3:07:5f:ef:ac:1f:50:a2:67:5b:b8:bf:eb:4a:e4:1d:
         0b:ba:93:58:e5:3d:86:37:0c:5c:86:37:1b:61:8a:2a:2a:9e:
         fa:8b:be:0f:d8:47:63:84:94:14:f4:f3:ff:8a:c4:a2:b5:f9:
         bc:d3:22:49:e3:ec:05:b4:d0:01:dc:dc:cf:6e:d6:99:b0:22:
         0b:5b:37:5c:a5:d4:80:8b:ca:dc:9c:0c:a3:6d:90:49:5a:8f:
         6f:34:98:72:76:62:27:35:cd:33:44:9b:cb:81:73:63:e1:52:
         1d:23:68:b1:5f:1d:bd:b5:70:10:09:7d:64:61:36:fe:0b:03:
         49:70:64:89:71:a2:86:30:1b:ec:e2:23:de:89:e8:ea:ca:a3:
         18:de:d7:c6:3c:15:fb:fa:38:34:74:c8:74:81:49:61:15:0e:
         51:38:c3:03:41:f3:2e:2f:38:3d:1a:eb:5a:c8:01:9b:1f:27:
         b7:df:5d:77:f2:cb:0a:e1:39:53:fd:cf:94:61:59:55:0f:a8:
         70:af:28:4f:1d:08:7f:c7:3b:30:57:6f:1e:83:41:ef:62:8f:
         5d:c7:ee:17:32:f8:33:6e:1e:7d:bb:e2:3c:f7:ff:4f:4e:75:
         b5:88:4b:9a
-----BEGIN CERTIFICATE-----

bh59u+I89/9PTnW1iEua
-----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:44:16.609+0000 INIT [cadi] https.protocols set by cadi_protocols in CADI Properties
2022-09-03T02:44:16.612+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:44:35.702+0000 INIT [cadi] RegistrationProperty: default_container='oom'
2022-09-03T02:44:35.703+0000 INIT [cadi] RegistrationProperty: public_port='null'
2022-09-03T02:44:35.908+0000 INIT [cadi] RegistrationProperty: hostname='onap-aaf-service-65b576ff8b-zd5gb'
2022-09-03T02:44:35.908+0000 INIT [cadi] RegistrationProperty: public_fqdn='aaf.osaaf.org'
2022-09-03T02:44:36.001+0000 INIT [cadi] RegistrationProperty: default_name='%NS.%N'
2022-09-03T02:44:36.002+0000 INIT [cadi] RegistrationProperty: latitude='38.0'
2022-09-03T02:44:36.003+0000 INIT [cadi] RegistrationProperty: longitude='-72.0'
2022-09-03T02:44:36.003+0000 INIT [cadi] RegistrationProperty: public_hostname(overloaded by )='aaf.osaaf.org'
2022-09-03T02:44:36.004+0000 INIT [cadi] RegistrationProperty: default_fqdn='onap-aaf-service-65b576ff8b-zd5gb'
2022-09-03T02:44:36.004+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.FHoDBO
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:44:42.504+0000: Trans Info
         REMOTE Get Configuration 7015.8633ms
 
Created AAF Initial Configurations
Initialization Complete
