# Properties passed in
HOSTNAME=onap-aaf-service-df9c94fd8-kp82f
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: 96403989590 (0x1672202456)
        Validity
            Not Before: Dec 28 04:40:58 2022 GMT
            Not After : Dec 28 04:40:58 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: 
                62:AF:5C:84:12:59:DC:4E:1A:24:08:F3:D0:FA:17:ED:F6:90:17:E0
            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 Dec 28 04:40:58 2023 GMT (365 days)

Write out database with 1 new entries
Data Base Updated
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number: 96403989590 (0x1672202456)
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: C=US, O=ONAP, OU=OSAAF, CN=intermediateCA_9
        Validity
            Not Before: Dec 28 04:40:58 2022 GMT
            Not After : Dec 28 04:40:58 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:ca:dd:f3:5a:e0:fc:54:3b:7c:68:f3:bd:d6:e6:
                    90:da:b6:c3:48:f8:75:3a:5d:30:7b:ff:9e:4a:86:
                    74:82:97:6c:3e:bd:4a:8d:9b:07:46:94:40:35:47:
                    2b:2e:01:a6:b9:08:99:dd:45:65:46:a7:1b:be:99:
                    59:13:ea:58:14:03:db:42:28:e4:16:34:5a:b8:85:
                    cb:c7:1b:92:84:e8:bc:8a:19:62:ef:e8:a8:35:86:
                    2e:cb:33:37:bf:09:54:62:f4:85:fe:88:bd:63:ea:
                    53:a4:db:47:02:0d:aa:54:73:c1:24:cb:8f:f2:ac:
                    bd:4d:3d:4a:c7:19:e3:05:8c:4b:e9:ab:e2:ca:16:
                    cb:2e:f8:01:15:e7:06:25:fd:9c:25:e4:2f:91:c1:
                    3a:5a:df:7d:00:42:cc:8c:57:d0:60:6f:d9:aa:c8:
                    ba:b1:24:90:3c:99:af:13:9b:91:6b:4b:63:50:39:
                    63:7c:66:08:86:bb:47:cf:94:d8:c7:e4:e9:b3:ac:
                    de:d2:0c:22:fa:84:9b:c5:54:ea:90:c4:6a:86:7b:
                    d7:a9:1c:a4:ea:45:dd:ea:ae:42:3d:9c:0c:19:7f:
                    6a:60:8a:55:d5:49:c3:68:b7:25:46:bf:37:1e:22:
                    e8:aa:51:7b:12:63:03:a2:06:cd:47:b8:7d:c6:ae:
                    1d:9d
                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: 
                62:AF:5C:84:12:59:DC:4E:1A:24:08:F3:D0:FA:17:ED:F6:90:17:E0
            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
         77:e5:85:24:e6:42:31:6f:0c:84:4b:f5:b9:ad:d4:27:e1:27:
         85:61:66:9d:ed:71:51:fa:b0:0f:12:10:e4:ed:92:50:52:52:
         da:83:74:6d:61:79:f0:53:87:a7:c6:6b:03:e0:31:5e:e9:3d:
         2c:42:7f:06:89:a3:b1:a2:ad:46:79:29:1e:f8:57:fc:5e:7c:
         bc:6f:82:c6:f6:0c:09:ba:12:29:c1:aa:6b:66:69:ca:bc:80:
         ae:16:fe:3a:0c:40:e4:1c:2b:4e:e0:c2:81:80:7d:c2:af:3c:
         f7:76:05:11:54:c7:5a:13:51:f7:22:ea:86:a9:8e:f3:40:f3:
         17:dd:38:7e:84:58:68:4a:48:00:4a:33:75:91:e8:d2:38:4a:
         6b:02:38:c8:ed:b6:32:ef:9e:47:3a:20:75:cf:3b:53:29:92:
         c0:04:c9:0b:48:ca:4a:7c:36:1e:30:da:06:99:3c:a2:eb:ba:
         10:93:7a:66:64:81:e9:36:5a:9b:0d:5d:06:99:53:96:74:a2:
         8a:5a:f2:97:1e:60:38:9e:6c:7e:57:48:91:09:17:4c:f5:2e:
         f8:d2:fa:e8:53:e6:53:d6:1d:c9:94:e4:d0:eb:c6:68:80:a5:
         ff:48:38:01:18:26:aa:61:30:89:52:f6:51:23:67:d3:8e:45:
         10:fc:dd:7d
-----BEGIN CERTIFICATE-----

YTCJUvZRI2fTjkUQ/N19
-----END CERTIFICATE-----
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number: 96403989590 (0x1672202456)
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: C=US, O=ONAP, OU=OSAAF, CN=intermediateCA_9
        Validity
            Not Before: Dec 28 04:40:58 2022 GMT
            Not After : Dec 28 04:40:58 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:ca:dd:f3:5a:e0:fc:54:3b:7c:68:f3:bd:d6:e6:
                    90:da:b6:c3:48:f8:75:3a:5d:30:7b:ff:9e:4a:86:
                    74:82:97:6c:3e:bd:4a:8d:9b:07:46:94:40:35:47:
                    2b:2e:01:a6:b9:08:99:dd:45:65:46:a7:1b:be:99:
                    59:13:ea:58:14:03:db:42:28:e4:16:34:5a:b8:85:
                    cb:c7:1b:92:84:e8:bc:8a:19:62:ef:e8:a8:35:86:
                    2e:cb:33:37:bf:09:54:62:f4:85:fe:88:bd:63:ea:
                    53:a4:db:47:02:0d:aa:54:73:c1:24:cb:8f:f2:ac:
                    bd:4d:3d:4a:c7:19:e3:05:8c:4b:e9:ab:e2:ca:16:
                    cb:2e:f8:01:15:e7:06:25:fd:9c:25:e4:2f:91:c1:
                    3a:5a:df:7d:00:42:cc:8c:57:d0:60:6f:d9:aa:c8:
                    ba:b1:24:90:3c:99:af:13:9b:91:6b:4b:63:50:39:
                    63:7c:66:08:86:bb:47:cf:94:d8:c7:e4:e9:b3:ac:
                    de:d2:0c:22:fa:84:9b:c5:54:ea:90:c4:6a:86:7b:
                    d7:a9:1c:a4:ea:45:dd:ea:ae:42:3d:9c:0c:19:7f:
                    6a:60:8a:55:d5:49:c3:68:b7:25:46:bf:37:1e:22:
                    e8:aa:51:7b:12:63:03:a2:06:cd:47:b8:7d:c6:ae:
                    1d:9d
                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: 
                62:AF:5C:84:12:59:DC:4E:1A:24:08:F3:D0:FA:17:ED:F6:90:17:E0
            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
         77:e5:85:24:e6:42:31:6f:0c:84:4b:f5:b9:ad:d4:27:e1:27:
         85:61:66:9d:ed:71:51:fa:b0:0f:12:10:e4:ed:92:50:52:52:
         da:83:74:6d:61:79:f0:53:87:a7:c6:6b:03:e0:31:5e:e9:3d:
         2c:42:7f:06:89:a3:b1:a2:ad:46:79:29:1e:f8:57:fc:5e:7c:
         bc:6f:82:c6:f6:0c:09:ba:12:29:c1:aa:6b:66:69:ca:bc:80:
         ae:16:fe:3a:0c:40:e4:1c:2b:4e:e0:c2:81:80:7d:c2:af:3c:
         f7:76:05:11:54:c7:5a:13:51:f7:22:ea:86:a9:8e:f3:40:f3:
         17:dd:38:7e:84:58:68:4a:48:00:4a:33:75:91:e8:d2:38:4a:
         6b:02:38:c8:ed:b6:32:ef:9e:47:3a:20:75:cf:3b:53:29:92:
         c0:04:c9:0b:48:ca:4a:7c:36:1e:30:da:06:99:3c:a2:eb:ba:
         10:93:7a:66:64:81:e9:36:5a:9b:0d:5d:06:99:53:96:74:a2:
         8a:5a:f2:97:1e:60:38:9e:6c:7e:57:48:91:09:17:4c:f5:2e:
         f8:d2:fa:e8:53:e6:53:d6:1d:c9:94:e4:d0:eb:c6:68:80:a5:
         ff:48:38:01:18:26:aa:61:30:89:52:f6:51:23:67:d3:8e:45:
         10:fc:dd:7d
-----BEGIN CERTIFICATE-----

YTCJUvZRI2fTjkUQ/N19
-----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-12-28T04:41:05.206+0000 INIT [cadi] https.protocols set by cadi_protocols in CADI Properties
2022-12-28T04:41:05.305+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-12-28T04:41:15.408+0000 INIT [cadi] RegistrationProperty: default_container='oom'
2022-12-28T04:41:15.408+0000 INIT [cadi] RegistrationProperty: public_port='null'
2022-12-28T04:41:15.608+0000 INIT [cadi] RegistrationProperty: hostname='onap-aaf-service-df9c94fd8-kp82f'
2022-12-28T04:41:15.608+0000 INIT [cadi] RegistrationProperty: public_fqdn='aaf.osaaf.org'
2022-12-28T04:41:15.608+0000 INIT [cadi] RegistrationProperty: default_name='%NS.%N'
2022-12-28T04:41:15.609+0000 INIT [cadi] RegistrationProperty: latitude='38.0'
2022-12-28T04:41:15.609+0000 INIT [cadi] RegistrationProperty: longitude='-72.0'
2022-12-28T04:41:15.609+0000 INIT [cadi] RegistrationProperty: public_hostname(overloaded by )='aaf.osaaf.org'
2022-12-28T04:41:15.610+0000 INIT [cadi] RegistrationProperty: default_fqdn='onap-aaf-service-df9c94fd8-kp82f'
2022-12-28T04:41:15.703+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.hFHonB
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-12-28T04:41:19.108+0000: Trans Info
         REMOTE Get Configuration 3799.4543ms
 
Created AAF Initial Configurations
Initialization Complete
