# Properties passed in
HOSTNAME=onap-aaf-locate-85f9974475-kl88f
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: 95968848008 (0x1658306888)
        Validity
            Not Before: Jul 20 08:48:11 2022 GMT
            Not After : Jul 20 08:48: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: 
                39:78:51:3C:94:F4:D7:FE:AB:7C:E5:21:2E:EC:57:78:86:E7:9A:F0
            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 Jul 20 08:48:11 2023 GMT (365 days)

Write out database with 1 new entries
Data Base Updated
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number: 95968848008 (0x1658306888)
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: C=US, O=ONAP, OU=OSAAF, CN=intermediateCA_9
        Validity
            Not Before: Jul 20 08:48:11 2022 GMT
            Not After : Jul 20 08:48: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:bd:c4:93:b7:72:91:78:95:12:9a:7b:5f:93:c2:
                    20:8e:0b:14:6c:28:b1:af:66:75:53:5b:22:28:91:
                    3d:80:08:31:bb:3b:84:6c:cd:4e:99:65:21:11:d6:
                    a0:3d:31:0b:13:d7:90:b1:36:0b:de:8c:a9:b2:d9:
                    a0:81:c4:46:d2:4b:30:20:98:10:00:04:72:df:f0:
                    df:5b:12:6d:a2:6a:9a:c9:19:82:06:1f:f6:97:91:
                    e3:04:8a:81:04:83:47:73:63:6f:af:af:79:ee:6b:
                    0d:ee:e1:5f:d5:96:af:a7:d3:b6:96:c6:6f:cc:d6:
                    2c:ff:3f:fe:2e:1a:0d:ca:69:bb:4e:54:83:d4:bc:
                    55:47:c6:03:7a:ff:f8:04:3c:7f:58:4e:1f:f4:49:
                    cd:8b:76:ed:b3:30:fe:32:77:6e:27:0c:91:11:55:
                    40:b5:9e:8f:5f:06:95:ba:af:dc:e6:9d:9b:7e:95:
                    4e:03:14:8c:a2:76:0e:59:3c:f5:1f:a9:61:1c:41:
                    87:47:38:ab:99:e4:df:33:ff:1f:fa:93:59:62:33:
                    71:2d:41:7a:49:e9:cd:33:6c:b1:b8:3f:e1:15:9e:
                    e5:99:5c:8b:ae:89:69:91:fe:e7:44:33:f0:9a:8e:
                    42:6b:91:bb:58:3e:a2:5e:18:3d:a5:82:8b:00:41:
                    08:5f
                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: 
                39:78:51:3C:94:F4:D7:FE:AB:7C:E5:21:2E:EC:57:78:86:E7:9A:F0
            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
         11:e3:20:b6:6f:7e:ce:30:f7:cc:74:03:c0:80:c0:6b:7e:17:
         fd:2f:6d:ad:87:41:c0:6a:d6:14:5d:29:f7:fb:db:65:fa:7f:
         db:c6:3b:85:a3:ad:cf:07:a0:6e:96:b7:6a:ac:85:74:0d:2f:
         8a:03:5b:46:25:32:cb:5b:18:0b:3c:8c:99:2e:11:33:28:f2:
         2c:4a:d0:2d:7f:58:e5:b6:e5:79:91:a7:d6:21:b9:f6:f2:f4:
         7d:ca:df:ff:22:9e:17:e7:13:da:7c:09:52:75:39:38:7f:3b:
         91:7c:34:7c:79:90:4a:df:13:79:95:9b:52:96:c3:cb:73:69:
         68:65:7e:61:2c:d3:7e:aa:e6:2a:83:e8:53:e8:96:ab:03:48:
         fe:36:fb:27:a5:99:17:6e:19:4c:5f:18:33:b9:f8:93:bf:3b:
         1d:15:2e:24:9b:bb:df:b0:58:af:ed:b0:1b:15:91:11:0f:72:
         52:09:15:6b:8c:26:a5:72:d6:c3:aa:f7:a3:df:da:34:1a:05:
         0b:03:6e:53:6b:ab:a9:f1:5b:41:94:17:b9:0f:64:25:fb:fb:
         88:4b:cf:6a:04:cc:1a:d4:ac:53:b5:48:b6:4d:06:24:c7:c7:
         ad:ea:cc:b1:0b:a4:ea:d1:8d:f7:eb:9f:e8:e0:1a:8e:3e:18:
         1f:0d:e8:fc
-----BEGIN CERTIFICATE-----

0Y3365/o4BqOPhgfDej8
-----END CERTIFICATE-----
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number: 95968848008 (0x1658306888)
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: C=US, O=ONAP, OU=OSAAF, CN=intermediateCA_9
        Validity
            Not Before: Jul 20 08:48:11 2022 GMT
            Not After : Jul 20 08:48: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:bd:c4:93:b7:72:91:78:95:12:9a:7b:5f:93:c2:
                    20:8e:0b:14:6c:28:b1:af:66:75:53:5b:22:28:91:
                    3d:80:08:31:bb:3b:84:6c:cd:4e:99:65:21:11:d6:
                    a0:3d:31:0b:13:d7:90:b1:36:0b:de:8c:a9:b2:d9:
                    a0:81:c4:46:d2:4b:30:20:98:10:00:04:72:df:f0:
                    df:5b:12:6d:a2:6a:9a:c9:19:82:06:1f:f6:97:91:
                    e3:04:8a:81:04:83:47:73:63:6f:af:af:79:ee:6b:
                    0d:ee:e1:5f:d5:96:af:a7:d3:b6:96:c6:6f:cc:d6:
                    2c:ff:3f:fe:2e:1a:0d:ca:69:bb:4e:54:83:d4:bc:
                    55:47:c6:03:7a:ff:f8:04:3c:7f:58:4e:1f:f4:49:
                    cd:8b:76:ed:b3:30:fe:32:77:6e:27:0c:91:11:55:
                    40:b5:9e:8f:5f:06:95:ba:af:dc:e6:9d:9b:7e:95:
                    4e:03:14:8c:a2:76:0e:59:3c:f5:1f:a9:61:1c:41:
                    87:47:38:ab:99:e4:df:33:ff:1f:fa:93:59:62:33:
                    71:2d:41:7a:49:e9:cd:33:6c:b1:b8:3f:e1:15:9e:
                    e5:99:5c:8b:ae:89:69:91:fe:e7:44:33:f0:9a:8e:
                    42:6b:91:bb:58:3e:a2:5e:18:3d:a5:82:8b:00:41:
                    08:5f
                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: 
                39:78:51:3C:94:F4:D7:FE:AB:7C:E5:21:2E:EC:57:78:86:E7:9A:F0
            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
         11:e3:20:b6:6f:7e:ce:30:f7:cc:74:03:c0:80:c0:6b:7e:17:
         fd:2f:6d:ad:87:41:c0:6a:d6:14:5d:29:f7:fb:db:65:fa:7f:
         db:c6:3b:85:a3:ad:cf:07:a0:6e:96:b7:6a:ac:85:74:0d:2f:
         8a:03:5b:46:25:32:cb:5b:18:0b:3c:8c:99:2e:11:33:28:f2:
         2c:4a:d0:2d:7f:58:e5:b6:e5:79:91:a7:d6:21:b9:f6:f2:f4:
         7d:ca:df:ff:22:9e:17:e7:13:da:7c:09:52:75:39:38:7f:3b:
         91:7c:34:7c:79:90:4a:df:13:79:95:9b:52:96:c3:cb:73:69:
         68:65:7e:61:2c:d3:7e:aa:e6:2a:83:e8:53:e8:96:ab:03:48:
         fe:36:fb:27:a5:99:17:6e:19:4c:5f:18:33:b9:f8:93:bf:3b:
         1d:15:2e:24:9b:bb:df:b0:58:af:ed:b0:1b:15:91:11:0f:72:
         52:09:15:6b:8c:26:a5:72:d6:c3:aa:f7:a3:df:da:34:1a:05:
         0b:03:6e:53:6b:ab:a9:f1:5b:41:94:17:b9:0f:64:25:fb:fb:
         88:4b:cf:6a:04:cc:1a:d4:ac:53:b5:48:b6:4d:06:24:c7:c7:
         ad:ea:cc:b1:0b:a4:ea:d1:8d:f7:eb:9f:e8:e0:1a:8e:3e:18:
         1f:0d:e8:fc
-----BEGIN CERTIFICATE-----

0Y3365/o4BqOPhgfDej8
-----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-07-20T08:48:20.900+0000 INIT [cadi] https.protocols set by cadi_protocols in CADI Properties
2022-07-20T08:48:20.903+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-07-20T08:48:36.399+0000 INIT [cadi] RegistrationProperty: default_container='oom'
2022-07-20T08:48:36.400+0000 INIT [cadi] RegistrationProperty: public_port='null'
2022-07-20T08:48:36.698+0000 INIT [cadi] RegistrationProperty: hostname='onap-aaf-locate-85f9974475-kl88f'
2022-07-20T08:48:36.699+0000 INIT [cadi] RegistrationProperty: public_fqdn='aaf.osaaf.org'
2022-07-20T08:48:36.699+0000 INIT [cadi] RegistrationProperty: default_name='%NS.%N'
2022-07-20T08:48:36.700+0000 INIT [cadi] RegistrationProperty: latitude='38.0'
2022-07-20T08:48:36.700+0000 INIT [cadi] RegistrationProperty: longitude='-72.0'
2022-07-20T08:48:36.701+0000 INIT [cadi] RegistrationProperty: public_hostname(overloaded by )='aaf.osaaf.org'
2022-07-20T08:48:36.701+0000 INIT [cadi] RegistrationProperty: default_fqdn='onap-aaf-locate-85f9974475-kl88f'
2022-07-20T08:48:36.702+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.djcBIP
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-07-20T08:48:42.299+0000: Trans Info
         REMOTE Get Configuration 5909.914ms
 
Created AAF Initial Configurations
Initialization Complete
