# Properties passed in
HOSTNAME=onap-aaf-service-65b576ff8b-tmslq
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: 95924207717 (0x1655874065)
        Validity
            Not Before: Jun 22 05:01:07 2022 GMT
            Not After : Jun 22 05:01:07 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: 
                E6:47:6F:81:54:9E:92:DF:A5:76:CC:12:0B:32:FE:26:37:51:FA:37
            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 Jun 22 05:01:07 2023 GMT (365 days)

Write out database with 1 new entries
Data Base Updated
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number: 95924207717 (0x1655874065)
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: C=US, O=ONAP, OU=OSAAF, CN=intermediateCA_9
        Validity
            Not Before: Jun 22 05:01:07 2022 GMT
            Not After : Jun 22 05:01:07 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:be:44:a4:6a:61:77:64:69:1c:3b:fc:b1:a2:f3:
                    03:ff:82:76:1a:4a:fb:37:c2:8d:b1:65:ff:9d:67:
                    ed:19:e9:2b:01:1e:1b:5f:18:ab:68:99:f8:43:eb:
                    2d:ae:08:5f:0f:af:6f:95:15:12:67:1a:7c:3f:73:
                    83:aa:ef:e9:e8:f3:cd:89:da:c3:2e:58:89:1d:80:
                    50:29:5e:c1:7e:1b:a9:8b:d1:bc:46:16:b4:11:73:
                    4a:98:da:ae:4c:45:15:a1:8c:03:38:5f:ce:65:64:
                    d3:cc:7c:f2:72:89:43:22:b1:f7:79:54:9c:9b:ca:
                    6c:e1:3e:d7:6e:14:52:10:5e:c1:56:9b:fe:b3:03:
                    58:ea:18:dc:5a:91:6a:9b:d3:e9:47:99:f1:e5:f0:
                    d2:6c:51:72:5d:1e:0f:32:ce:a6:ca:85:59:86:ee:
                    3f:92:7c:9b:96:72:ab:69:a0:8d:62:c3:2e:00:65:
                    77:ea:85:f3:16:54:fc:d0:2b:6c:25:4a:e7:ad:4c:
                    73:b6:77:92:68:05:3a:27:a3:54:8f:2e:6d:4d:cf:
                    f8:38:21:6f:fa:e0:f2:ae:4e:55:24:5b:30:30:12:
                    d6:e1:d1:f5:90:38:bd:d0:e6:24:37:d2:f5:fd:bb:
                    54:fc:56:3e:d9:da:99:7c:90:3a:66:87:29:84:f1:
                    d5:7b
                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: 
                E6:47:6F:81:54:9E:92:DF:A5:76:CC:12:0B:32:FE:26:37:51:FA:37
            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
         0d:07:ce:91:90:ed:6c:70:76:9d:a7:cb:d7:a6:ae:cf:d0:7b:
         49:aa:b1:ee:80:eb:12:83:99:d9:de:f4:58:a1:84:ff:38:3f:
         6c:0e:65:a1:a9:84:6b:04:f7:b6:28:e9:d9:51:fd:cc:7b:d7:
         53:61:e5:e7:80:8d:1b:52:30:e4:10:b7:ae:49:73:48:13:48:
         82:53:ef:c6:c0:72:48:f2:68:c5:c4:da:d5:84:7f:50:32:95:
         79:07:fb:ba:ea:e3:00:a2:5f:ad:c1:7c:fa:38:bd:12:64:85:
         37:ea:59:36:f6:cd:f2:ca:92:c8:5d:1e:94:6f:f8:b7:73:29:
         d3:72:44:01:14:be:3d:c5:fa:10:72:48:4b:5a:19:5f:f6:68:
         99:eb:ff:27:3f:8f:72:1a:b0:7c:e7:c1:d7:f1:03:56:77:8a:
         99:40:be:13:59:90:f3:7f:13:dc:98:98:fe:3a:ce:1a:95:79:
         79:1f:87:f0:31:d9:2a:91:ec:8e:47:53:64:8e:b5:f2:13:e1:
         63:b3:9b:c6:12:c0:66:c0:91:32:77:f1:8a:68:82:72:21:a2:
         8f:ca:81:69:90:23:5f:61:90:f8:42:b7:59:9b:5e:be:52:26:
         6d:a6:7a:20:c2:fe:73:80:61:da:16:e8:32:85:f4:38:68:d6:
         ed:6a:32:c6
-----BEGIN CERTIFICATE-----

gGHaFugyhfQ4aNbtajLG
-----END CERTIFICATE-----
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number: 95924207717 (0x1655874065)
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: C=US, O=ONAP, OU=OSAAF, CN=intermediateCA_9
        Validity
            Not Before: Jun 22 05:01:07 2022 GMT
            Not After : Jun 22 05:01:07 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:be:44:a4:6a:61:77:64:69:1c:3b:fc:b1:a2:f3:
                    03:ff:82:76:1a:4a:fb:37:c2:8d:b1:65:ff:9d:67:
                    ed:19:e9:2b:01:1e:1b:5f:18:ab:68:99:f8:43:eb:
                    2d:ae:08:5f:0f:af:6f:95:15:12:67:1a:7c:3f:73:
                    83:aa:ef:e9:e8:f3:cd:89:da:c3:2e:58:89:1d:80:
                    50:29:5e:c1:7e:1b:a9:8b:d1:bc:46:16:b4:11:73:
                    4a:98:da:ae:4c:45:15:a1:8c:03:38:5f:ce:65:64:
                    d3:cc:7c:f2:72:89:43:22:b1:f7:79:54:9c:9b:ca:
                    6c:e1:3e:d7:6e:14:52:10:5e:c1:56:9b:fe:b3:03:
                    58:ea:18:dc:5a:91:6a:9b:d3:e9:47:99:f1:e5:f0:
                    d2:6c:51:72:5d:1e:0f:32:ce:a6:ca:85:59:86:ee:
                    3f:92:7c:9b:96:72:ab:69:a0:8d:62:c3:2e:00:65:
                    77:ea:85:f3:16:54:fc:d0:2b:6c:25:4a:e7:ad:4c:
                    73:b6:77:92:68:05:3a:27:a3:54:8f:2e:6d:4d:cf:
                    f8:38:21:6f:fa:e0:f2:ae:4e:55:24:5b:30:30:12:
                    d6:e1:d1:f5:90:38:bd:d0:e6:24:37:d2:f5:fd:bb:
                    54:fc:56:3e:d9:da:99:7c:90:3a:66:87:29:84:f1:
                    d5:7b
                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: 
                E6:47:6F:81:54:9E:92:DF:A5:76:CC:12:0B:32:FE:26:37:51:FA:37
            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
         0d:07:ce:91:90:ed:6c:70:76:9d:a7:cb:d7:a6:ae:cf:d0:7b:
         49:aa:b1:ee:80:eb:12:83:99:d9:de:f4:58:a1:84:ff:38:3f:
         6c:0e:65:a1:a9:84:6b:04:f7:b6:28:e9:d9:51:fd:cc:7b:d7:
         53:61:e5:e7:80:8d:1b:52:30:e4:10:b7:ae:49:73:48:13:48:
         82:53:ef:c6:c0:72:48:f2:68:c5:c4:da:d5:84:7f:50:32:95:
         79:07:fb:ba:ea:e3:00:a2:5f:ad:c1:7c:fa:38:bd:12:64:85:
         37:ea:59:36:f6:cd:f2:ca:92:c8:5d:1e:94:6f:f8:b7:73:29:
         d3:72:44:01:14:be:3d:c5:fa:10:72:48:4b:5a:19:5f:f6:68:
         99:eb:ff:27:3f:8f:72:1a:b0:7c:e7:c1:d7:f1:03:56:77:8a:
         99:40:be:13:59:90:f3:7f:13:dc:98:98:fe:3a:ce:1a:95:79:
         79:1f:87:f0:31:d9:2a:91:ec:8e:47:53:64:8e:b5:f2:13:e1:
         63:b3:9b:c6:12:c0:66:c0:91:32:77:f1:8a:68:82:72:21:a2:
         8f:ca:81:69:90:23:5f:61:90:f8:42:b7:59:9b:5e:be:52:26:
         6d:a6:7a:20:c2:fe:73:80:61:da:16:e8:32:85:f4:38:68:d6:
         ed:6a:32:c6
-----BEGIN CERTIFICATE-----

gGHaFugyhfQ4aNbtajLG
-----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-06-22T05:01:15.148+0000 INIT [cadi] https.protocols set by cadi_protocols in CADI Properties
2022-06-22T05:01:15.149+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-06-22T05:01:26.047+0000 INIT [cadi] RegistrationProperty: default_container='oom'
2022-06-22T05:01:26.048+0000 INIT [cadi] RegistrationProperty: public_port='null'
2022-06-22T05:01:26.153+0000 INIT [cadi] RegistrationProperty: hostname='onap-aaf-service-65b576ff8b-tmslq'
2022-06-22T05:01:26.154+0000 INIT [cadi] RegistrationProperty: public_fqdn='aaf.osaaf.org'
2022-06-22T05:01:26.246+0000 INIT [cadi] RegistrationProperty: default_name='%NS.%N'
2022-06-22T05:01:26.246+0000 INIT [cadi] RegistrationProperty: latitude='38.0'
2022-06-22T05:01:26.247+0000 INIT [cadi] RegistrationProperty: longitude='-72.0'
2022-06-22T05:01:26.247+0000 INIT [cadi] RegistrationProperty: public_hostname(overloaded by )='aaf.osaaf.org'
2022-06-22T05:01:26.248+0000 INIT [cadi] RegistrationProperty: default_fqdn='onap-aaf-service-65b576ff8b-tmslq'
2022-06-22T05:01:26.248+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.bFKeJh
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-06-22T05:01:30.347+0000: Trans Info
         REMOTE Get Configuration 4397.628ms
 
Created AAF Initial Configurations
Initialization Complete
