# Properties passed in
HOSTNAME=onap-aaf-gui-7747cd878c-k27hp
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: 95924151878 (0x1655866646)
        Validity
            Not Before: Jun 22 02:57:27 2022 GMT
            Not After : Jun 22 02:57:27 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: 
                71:81:03:A6:63:A6:98:CF:2D:09:68:74:31:FF:1E:27:C1:85:89:99
            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 02:57:27 2023 GMT (365 days)

Write out database with 1 new entries
Data Base Updated
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number: 95924151878 (0x1655866646)
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: C=US, O=ONAP, OU=OSAAF, CN=intermediateCA_9
        Validity
            Not Before: Jun 22 02:57:27 2022 GMT
            Not After : Jun 22 02:57:27 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:b3:7f:47:9e:d5:3b:b4:5f:a8:81:91:b6:f2:db:
                    2e:1b:03:95:4e:94:67:22:fa:95:67:a3:34:dd:b2:
                    ef:53:41:49:6d:5f:da:24:c1:d8:db:88:ab:a2:b6:
                    91:7b:55:6b:f7:7a:cb:c4:53:d0:e2:b7:ad:68:f7:
                    01:42:a1:9d:f8:9f:15:97:e6:59:db:ba:b5:d7:ae:
                    86:4e:6f:39:61:cd:24:c8:0e:e2:ac:49:fa:3f:85:
                    82:c4:be:e2:4c:18:c5:b2:2c:8a:ff:1a:81:6e:af:
                    43:cc:15:ac:34:9e:2f:88:ec:c4:c7:d7:23:23:4e:
                    d8:11:55:1d:f1:87:6f:a7:b4:83:db:16:c9:a8:39:
                    6d:0a:cd:b5:76:5c:e1:84:50:f7:a3:60:0d:2f:90:
                    1a:c4:ab:17:48:10:ac:01:ed:c3:cc:be:20:70:ba:
                    67:da:a2:fc:af:1e:09:f1:41:83:8e:96:24:ce:57:
                    91:da:60:8c:75:6f:68:39:2f:26:78:b9:fd:c9:e4:
                    26:8b:f1:7b:c3:7a:a2:8e:b7:cf:c3:80:b5:51:72:
                    2e:a2:53:8e:cf:53:13:d0:e2:6f:41:a6:aa:c1:d3:
                    91:8e:24:2d:a3:3d:dc:a4:21:7f:13:f2:29:31:a9:
                    2a:db:e2:1f:32:03:26:b5:42:90:62:c4:b6:73:42:
                    0e:d1
                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: 
                71:81:03:A6:63:A6:98:CF:2D:09:68:74:31:FF:1E:27:C1:85:89:99
            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
         16:c0:d4:e5:a0:5c:65:b0:88:06:ad:fd:ce:26:a6:8e:bc:47:
         c1:fe:c3:f1:29:99:a3:1f:0b:2c:50:55:1b:53:e1:d3:b7:42:
         16:36:3c:5c:50:a5:d9:d9:eb:2d:46:d9:67:d4:da:87:ec:34:
         b5:31:88:ba:82:cb:3a:10:4a:17:16:5f:9d:cb:85:7a:b9:0a:
         d1:a4:b2:85:69:9c:ee:3e:7a:34:4b:f7:ef:03:9d:d4:da:5e:
         2e:44:93:c1:2c:ee:f9:7b:5b:9f:27:c5:cc:e8:c0:6e:15:35:
         49:7d:8c:10:ea:7d:36:27:01:ff:ea:58:b6:c2:59:f6:2a:4a:
         52:3d:ea:88:62:9c:4c:92:77:73:a3:25:fd:d8:2c:51:da:94:
         70:c5:09:21:67:9a:72:46:16:39:3c:51:87:9e:a7:9f:6e:3d:
         34:c6:37:31:2c:06:dd:9d:0c:bd:1b:a0:1a:2d:83:a8:64:9f:
         0f:63:27:8a:af:4f:33:10:32:43:a7:78:ae:e2:88:26:f9:9a:
         4b:00:3a:0d:dc:7a:8c:85:e7:90:bd:20:52:0e:e9:fc:7d:ad:
         f2:1f:cd:1c:a6:6f:42:90:c8:27:9c:75:5e:7b:e9:a2:d8:f5:
         09:12:3f:a8:33:39:e6:9f:2e:c6:38:23:be:94:21:cb:77:81:
         6c:ec:49:5c
-----BEGIN CERTIFICATE-----

ny7GOCO+lCHLd4Fs7Elc
-----END CERTIFICATE-----
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number: 95924151878 (0x1655866646)
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: C=US, O=ONAP, OU=OSAAF, CN=intermediateCA_9
        Validity
            Not Before: Jun 22 02:57:27 2022 GMT
            Not After : Jun 22 02:57:27 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:b3:7f:47:9e:d5:3b:b4:5f:a8:81:91:b6:f2:db:
                    2e:1b:03:95:4e:94:67:22:fa:95:67:a3:34:dd:b2:
                    ef:53:41:49:6d:5f:da:24:c1:d8:db:88:ab:a2:b6:
                    91:7b:55:6b:f7:7a:cb:c4:53:d0:e2:b7:ad:68:f7:
                    01:42:a1:9d:f8:9f:15:97:e6:59:db:ba:b5:d7:ae:
                    86:4e:6f:39:61:cd:24:c8:0e:e2:ac:49:fa:3f:85:
                    82:c4:be:e2:4c:18:c5:b2:2c:8a:ff:1a:81:6e:af:
                    43:cc:15:ac:34:9e:2f:88:ec:c4:c7:d7:23:23:4e:
                    d8:11:55:1d:f1:87:6f:a7:b4:83:db:16:c9:a8:39:
                    6d:0a:cd:b5:76:5c:e1:84:50:f7:a3:60:0d:2f:90:
                    1a:c4:ab:17:48:10:ac:01:ed:c3:cc:be:20:70:ba:
                    67:da:a2:fc:af:1e:09:f1:41:83:8e:96:24:ce:57:
                    91:da:60:8c:75:6f:68:39:2f:26:78:b9:fd:c9:e4:
                    26:8b:f1:7b:c3:7a:a2:8e:b7:cf:c3:80:b5:51:72:
                    2e:a2:53:8e:cf:53:13:d0:e2:6f:41:a6:aa:c1:d3:
                    91:8e:24:2d:a3:3d:dc:a4:21:7f:13:f2:29:31:a9:
                    2a:db:e2:1f:32:03:26:b5:42:90:62:c4:b6:73:42:
                    0e:d1
                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: 
                71:81:03:A6:63:A6:98:CF:2D:09:68:74:31:FF:1E:27:C1:85:89:99
            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
         16:c0:d4:e5:a0:5c:65:b0:88:06:ad:fd:ce:26:a6:8e:bc:47:
         c1:fe:c3:f1:29:99:a3:1f:0b:2c:50:55:1b:53:e1:d3:b7:42:
         16:36:3c:5c:50:a5:d9:d9:eb:2d:46:d9:67:d4:da:87:ec:34:
         b5:31:88:ba:82:cb:3a:10:4a:17:16:5f:9d:cb:85:7a:b9:0a:
         d1:a4:b2:85:69:9c:ee:3e:7a:34:4b:f7:ef:03:9d:d4:da:5e:
         2e:44:93:c1:2c:ee:f9:7b:5b:9f:27:c5:cc:e8:c0:6e:15:35:
         49:7d:8c:10:ea:7d:36:27:01:ff:ea:58:b6:c2:59:f6:2a:4a:
         52:3d:ea:88:62:9c:4c:92:77:73:a3:25:fd:d8:2c:51:da:94:
         70:c5:09:21:67:9a:72:46:16:39:3c:51:87:9e:a7:9f:6e:3d:
         34:c6:37:31:2c:06:dd:9d:0c:bd:1b:a0:1a:2d:83:a8:64:9f:
         0f:63:27:8a:af:4f:33:10:32:43:a7:78:ae:e2:88:26:f9:9a:
         4b:00:3a:0d:dc:7a:8c:85:e7:90:bd:20:52:0e:e9:fc:7d:ad:
         f2:1f:cd:1c:a6:6f:42:90:c8:27:9c:75:5e:7b:e9:a2:d8:f5:
         09:12:3f:a8:33:39:e6:9f:2e:c6:38:23:be:94:21:cb:77:81:
         6c:ec:49:5c
-----BEGIN CERTIFICATE-----

ny7GOCO+lCHLd4Fs7Elc
-----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-22T02:57:33.822+0000 INIT [cadi] https.protocols set by cadi_protocols in CADI Properties
2022-06-22T02:57:33.823+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-22T02:57:42.119+0000 INIT [cadi] RegistrationProperty: default_container='oom'
2022-06-22T02:57:42.120+0000 INIT [cadi] RegistrationProperty: public_port='null'
2022-06-22T02:57:42.316+0000 INIT [cadi] RegistrationProperty: hostname='onap-aaf-gui-7747cd878c-k27hp'
2022-06-22T02:57:42.316+0000 INIT [cadi] RegistrationProperty: public_fqdn='aaf.osaaf.org'
2022-06-22T02:57:42.317+0000 INIT [cadi] RegistrationProperty: default_name='%NS.%N'
2022-06-22T02:57:42.317+0000 INIT [cadi] RegistrationProperty: latitude='38.0'
2022-06-22T02:57:42.317+0000 INIT [cadi] RegistrationProperty: longitude='-72.0'
2022-06-22T02:57:42.317+0000 INIT [cadi] RegistrationProperty: public_hostname(overloaded by )='aaf.osaaf.org'
2022-06-22T02:57:42.318+0000 INIT [cadi] RegistrationProperty: default_fqdn='onap-aaf-gui-7747cd878c-k27hp'
2022-06-22T02:57:42.318+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.dEHFCK
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-22T02:57:45.818+0000: Trans Info
         REMOTE Get Configuration 3797.2021ms
 
Created AAF Initial Configurations
Initialization Complete
