# Properties passed in
HOSTNAME=onap-aaf-gui-c4676b95c-b9jz2
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: 96191478147 (0x1665757983)
        Validity
            Not Before: Oct 14 14:33:04 2022 GMT
            Not After : Oct 14 14:33: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: 
                98:2F:BE:9A:29:09:EF:7F:5D:EC:59:58:3E:A6:CB:B9:98:FD:49:B1
            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 Oct 14 14:33:04 2023 GMT (365 days)

Write out database with 1 new entries
Data Base Updated
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number: 96191478147 (0x1665757983)
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: C=US, O=ONAP, OU=OSAAF, CN=intermediateCA_9
        Validity
            Not Before: Oct 14 14:33:04 2022 GMT
            Not After : Oct 14 14:33: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:cc:7c:60:52:68:05:ca:a0:77:e0:61:6b:dc:1a:
                    a3:17:4b:5f:a7:0d:4b:75:72:d5:2c:6d:c5:04:d5:
                    54:d3:91:70:b3:5e:23:fe:8b:12:6b:3c:58:52:11:
                    26:60:f9:f4:65:17:88:63:93:a2:2e:f0:0b:45:a7:
                    9a:ba:08:e4:4d:a2:b1:c0:5a:28:aa:02:bd:d1:02:
                    8f:a8:cc:ac:7d:2e:f7:ea:d2:e9:7a:06:50:2b:6e:
                    9c:a1:02:c2:b6:f0:5c:02:e6:3c:e7:13:6b:ca:79:
                    a4:bc:f0:25:c0:e5:f9:a7:bb:2e:97:a7:9f:38:1c:
                    96:44:f5:3b:c6:f5:c8:57:64:f3:ab:e0:dd:29:fd:
                    83:10:08:ff:18:58:19:2e:a6:86:f9:de:d7:24:42:
                    de:3e:71:31:f8:c0:6a:66:b3:91:e7:1e:30:04:41:
                    a7:2d:34:bb:4a:0d:45:04:fc:96:a6:fe:d0:44:48:
                    e0:81:2b:ed:8e:ae:4b:ea:2e:92:95:f0:02:31:5d:
                    a5:f2:65:05:a6:d4:49:3b:83:33:35:41:97:9b:c6:
                    82:aa:4a:f1:6f:e3:a1:5c:e7:6c:c5:e4:0f:49:bf:
                    86:66:d5:f7:ef:69:ad:6a:94:43:f8:82:11:b8:81:
                    06:91:d1:e8:37:5b:cb:84:6c:8a:1f:87:fc:c9:eb:
                    fd:9b
                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: 
                98:2F:BE:9A:29:09:EF:7F:5D:EC:59:58:3E:A6:CB:B9:98:FD:49:B1
            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:c0:3b:0a:37:d8:34:26:0f:28:2e:ea:ed:d6:3a:8f:af:40:
         eb:63:71:43:94:6d:16:64:0a:a6:41:a6:f7:84:2e:37:ab:6f:
         dc:db:25:1d:7f:4c:d4:2e:e9:73:8a:d5:0e:40:71:5f:50:b3:
         16:30:bb:96:98:eb:fb:06:f0:45:0e:4f:cc:4f:18:76:c4:3d:
         b7:e5:31:73:7e:19:23:cd:8d:bc:0a:ca:22:f4:49:ee:39:28:
         29:46:ac:d0:37:21:1c:ef:32:f1:1e:d2:a6:eb:32:d2:56:a5:
         9a:36:95:84:97:12:00:34:2a:26:02:77:22:52:65:9a:6b:b2:
         d9:7c:fc:90:f7:4a:ec:53:c1:ee:29:96:5f:8b:86:8f:22:be:
         d0:fa:66:f4:8b:bc:34:73:5c:4a:3d:49:3b:f9:43:f2:fd:7d:
         d7:e0:44:86:3b:47:1d:37:3c:cd:02:c2:a4:88:9b:6d:60:1d:
         6f:2d:9b:34:54:41:33:07:c2:ae:03:8b:7a:47:51:76:85:04:
         cd:c8:81:3a:06:50:ac:3c:90:66:aa:73:3b:b1:3a:6f:59:d3:
         14:0a:3b:64:b7:91:0c:8e:20:d0:35:38:41:47:85:a7:0b:e4:
         19:d4:37:e8:2c:ab:ba:a7:6d:9f:0a:fe:c1:31:48:41:e4:37:
         a3:a4:f5:6e
-----BEGIN CERTIFICATE-----

p22fCv7BMUhB5DejpPVu
-----END CERTIFICATE-----
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number: 96191478147 (0x1665757983)
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: C=US, O=ONAP, OU=OSAAF, CN=intermediateCA_9
        Validity
            Not Before: Oct 14 14:33:04 2022 GMT
            Not After : Oct 14 14:33: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:cc:7c:60:52:68:05:ca:a0:77:e0:61:6b:dc:1a:
                    a3:17:4b:5f:a7:0d:4b:75:72:d5:2c:6d:c5:04:d5:
                    54:d3:91:70:b3:5e:23:fe:8b:12:6b:3c:58:52:11:
                    26:60:f9:f4:65:17:88:63:93:a2:2e:f0:0b:45:a7:
                    9a:ba:08:e4:4d:a2:b1:c0:5a:28:aa:02:bd:d1:02:
                    8f:a8:cc:ac:7d:2e:f7:ea:d2:e9:7a:06:50:2b:6e:
                    9c:a1:02:c2:b6:f0:5c:02:e6:3c:e7:13:6b:ca:79:
                    a4:bc:f0:25:c0:e5:f9:a7:bb:2e:97:a7:9f:38:1c:
                    96:44:f5:3b:c6:f5:c8:57:64:f3:ab:e0:dd:29:fd:
                    83:10:08:ff:18:58:19:2e:a6:86:f9:de:d7:24:42:
                    de:3e:71:31:f8:c0:6a:66:b3:91:e7:1e:30:04:41:
                    a7:2d:34:bb:4a:0d:45:04:fc:96:a6:fe:d0:44:48:
                    e0:81:2b:ed:8e:ae:4b:ea:2e:92:95:f0:02:31:5d:
                    a5:f2:65:05:a6:d4:49:3b:83:33:35:41:97:9b:c6:
                    82:aa:4a:f1:6f:e3:a1:5c:e7:6c:c5:e4:0f:49:bf:
                    86:66:d5:f7:ef:69:ad:6a:94:43:f8:82:11:b8:81:
                    06:91:d1:e8:37:5b:cb:84:6c:8a:1f:87:fc:c9:eb:
                    fd:9b
                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: 
                98:2F:BE:9A:29:09:EF:7F:5D:EC:59:58:3E:A6:CB:B9:98:FD:49:B1
            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:c0:3b:0a:37:d8:34:26:0f:28:2e:ea:ed:d6:3a:8f:af:40:
         eb:63:71:43:94:6d:16:64:0a:a6:41:a6:f7:84:2e:37:ab:6f:
         dc:db:25:1d:7f:4c:d4:2e:e9:73:8a:d5:0e:40:71:5f:50:b3:
         16:30:bb:96:98:eb:fb:06:f0:45:0e:4f:cc:4f:18:76:c4:3d:
         b7:e5:31:73:7e:19:23:cd:8d:bc:0a:ca:22:f4:49:ee:39:28:
         29:46:ac:d0:37:21:1c:ef:32:f1:1e:d2:a6:eb:32:d2:56:a5:
         9a:36:95:84:97:12:00:34:2a:26:02:77:22:52:65:9a:6b:b2:
         d9:7c:fc:90:f7:4a:ec:53:c1:ee:29:96:5f:8b:86:8f:22:be:
         d0:fa:66:f4:8b:bc:34:73:5c:4a:3d:49:3b:f9:43:f2:fd:7d:
         d7:e0:44:86:3b:47:1d:37:3c:cd:02:c2:a4:88:9b:6d:60:1d:
         6f:2d:9b:34:54:41:33:07:c2:ae:03:8b:7a:47:51:76:85:04:
         cd:c8:81:3a:06:50:ac:3c:90:66:aa:73:3b:b1:3a:6f:59:d3:
         14:0a:3b:64:b7:91:0c:8e:20:d0:35:38:41:47:85:a7:0b:e4:
         19:d4:37:e8:2c:ab:ba:a7:6d:9f:0a:fe:c1:31:48:41:e4:37:
         a3:a4:f5:6e
-----BEGIN CERTIFICATE-----

p22fCv7BMUhB5DejpPVu
-----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-10-14T14:33:11.086+0000 INIT [cadi] https.protocols set by cadi_protocols in CADI Properties
2022-10-14T14:33:11.088+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-10-14T14:33:21.587+0000 INIT [cadi] RegistrationProperty: default_container='oom'
2022-10-14T14:33:21.588+0000 INIT [cadi] RegistrationProperty: public_port='null'
2022-10-14T14:33:21.786+0000 INIT [cadi] RegistrationProperty: hostname='onap-aaf-gui-c4676b95c-b9jz2'
2022-10-14T14:33:21.786+0000 INIT [cadi] RegistrationProperty: public_fqdn='aaf.osaaf.org'
2022-10-14T14:33:21.787+0000 INIT [cadi] RegistrationProperty: default_name='%NS.%N'
2022-10-14T14:33:21.787+0000 INIT [cadi] RegistrationProperty: latitude='38.0'
2022-10-14T14:33:21.788+0000 INIT [cadi] RegistrationProperty: longitude='-72.0'
2022-10-14T14:33:21.788+0000 INIT [cadi] RegistrationProperty: public_hostname(overloaded by )='aaf.osaaf.org'
2022-10-14T14:33:21.788+0000 INIT [cadi] RegistrationProperty: default_fqdn='onap-aaf-gui-c4676b95c-b9jz2'
2022-10-14T14:33:21.789+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.ciiffJ
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-10-14T14:33:27.485+0000: Trans Info
         REMOTE Get Configuration 5994.7866ms
 
Created AAF Initial Configurations
Initialization Complete
