+ export APP_FQI=dcae@dcae.onap.org
+ APP_FQI=dcae@dcae.onap.org
+ export aaf_locate_url=https://aaf-locate.onap:8095
+ aaf_locate_url=https://aaf-locate.onap:8095
+ export aaf_locator_container=oom
+ aaf_locator_container=oom
+ export aaf_locator_container_ns=onap
+ aaf_locator_container_ns=onap
+ export aaf_locator_app_ns=org.osaaf.aaf
+ aaf_locator_app_ns=org.osaaf.aaf
+ export DEPLOY_FQI=deployer@people.osaaf.org
+ DEPLOY_FQI=deployer@people.osaaf.org
+ export 'DEPLOY_PASSWORD=demo123456!'
+ DEPLOY_PASSWORD='demo123456!'
+ export cadi_longitude=-72.0
+ cadi_longitude=-72.0
+ export cadi_latitude=38.0
+ cadi_latitude=38.0
+ export aaf_locator_fqdn=dcae
+ aaf_locator_fqdn=dcae
+ export TLS_SERVER=true
+ TLS_SERVER=true
+ ARTIFACTS=/opt/app/osaaf/local
+ TARGET=/opt/app/osaaf
+ AAFNS=org.onap.dcae
+ DUMMY_FQDN=dcae
+ rm -rf /opt/app/osaaf/local
+ rm -f '/opt/app/osaaf/*'
+ '[' true == false ']'
+ /opt/app/aaf_config/bin/agent.sh
Caller Properties Initialized
cat SSO
cadi_keyfile=/root/.aaf/keyfile
aaf_id=deployer@people.osaaf.org
aaf_password=enc:n5b4ryalOuBjd8qYeHl85N09LMxVdt3UwZDJZrxkwEn
aaf_locate_url=https://-locator.:8095
aaf_url_cm=https://AAF_LOCATE_URL/%CNS.%NS.cm:2.1
aaf_url=https://AAF_LOCATE_URL/%CNS.%NS.service:2.1
cadi_truststore=/root/.aaf/truststoreONAPall.jks
cadi_truststore_password=changeit
cadi_latitude=
cadi_longitude=
hostname=dcae
aaf_locator_fqdn=dcae
aaf_locator_container_ns=onap
aaf_locator_container=oom
aaf_locator_app_ns=org.osaaf.aaf
cadi_longitude=-72.0
cadi_latitude=38.0
aaf_locate_url=https://aaf-locate.onap:8095
Created /opt/app/osaaf/local
Existing files in /opt/app/osaaf/local
total 0
Clean up directory /opt/app/osaaf/local
Namespace is org.onap.dcae
#### Create Configuration files 
Writing to /opt/app/osaaf/local
Writing file /opt/app/osaaf/local/org.onap.dcae.keyfile
Password for dcae@dcae.onap.org (leave blank for NO password): Passed in Truststore is /root/.aaf/truststoreONAPall.jks
New Truststore is /opt/app/osaaf/local/truststoreONAPall.jks
Creating new /opt/app/osaaf/local/org.onap.dcae.cred.props
Creating new /opt/app/osaaf/local/org.onap.dcae.location.props
Creating new /opt/app/osaaf/local/org.onap.dcae.props
2022-04-17T05:13:47.289+0000: Trans Info
         REMOTE Get Configuration 1306.7238ms
 
############################################################
# Properties Generated by AT&T Certificate Manager
#   by root
#   on 2022-04-17T05:13:47.287+0000
# @copyright 2019, AT&T
############################################################
aaf_env=DEV
aaf_id=dcae@dcae.onap.org
aaf_locate_url=https://aaf-locate.onap:8095
aaf_locator_app_ns=org.osaaf.aaf
aaf_locator_container=oom
aaf_locator_container_ns=onap
aaf_locator_fqdn=dcae
aaf_oauth2_introspect_url=https://AAF_LOCATE_URL/%CNS.%AAF_NS.introspect:2.1/introspect
aaf_oauth2_token_url=https://AAF_LOCATE_URL/%CNS.%AAF_NS.token:2.1/token
aaf_url=https://AAF_LOCATE_URL/%CNS.%AAF_NS.service:2.1
aaf_url_cm=https://AAF_LOCATE_URL/%CNS.%AAF_NS.cm:2.1
aaf_url_fs=https://AAF_LOCATE_URL/%CNS.%AAF_NS.fs:2.1
aaf_url_gui=https://AAF_LOCATE_URL/%CNS.%AAF_NS.gui:2.1
aaf_url_hello=https://aaf-locate.onap:8095/locate/onap.org.osaaf.aaf.hello:2.1
aaf_url_oauth=https://AAF_LOCATE_URL/%CNS.%AAF_NS.oauth:2.1
cadi_prop_files=/opt/app/osaaf/local/org.onap.dcae.location.props:/opt/app/osaaf/local/org.onap.dcae.cred.props
cadi_protocols=TLSv1.1,TLSv1.2

#### Certificate Authorization Artifact
2022-04-17T05:13:47.652+0000 INIT [cadi] cadi_keyfile points to /opt/app/osaaf/local/org.onap.dcae.keyfile
2022-04-17T05:13:47.680+0000 INIT [cadi] https.protocols set by cadi_protocols in CADI Properties
2022-04-17T05:13:47.680+0000 INIT [cadi] jdk.tls.client.protocols set from Default Protocols
AppID:          dcae@dcae.onap.org
  Sponsor:       mmanager@osaaf.org
Machine:         dcae
CA:              local
Types:           file,jks,pkcs12,script
Namespace:       org.onap.dcae
Directory:       /opt/app/osaaf/local
O/S User:        root
Renew Days:      60
Notification     mailto:
2022-04-17T05:13:49.652+0000: Trans Info
         Read Artifact 695.96075ms
 
#### Place Certificates (by deployer)
2022-04-17T05:13:49.976+0000 INIT [cadi] cadi_keyfile points to /opt/app/osaaf/local/org.onap.dcae.keyfile
2022-04-17T05:13:49.993+0000 INIT [cadi] https.protocols set by cadi_protocols in CADI Properties
2022-04-17T05:13:49.993+0000 INIT [cadi] jdk.tls.client.protocols set from Default Protocols
Writing to /opt/app/osaaf/local
Writing file /opt/app/osaaf/local/org.onap.dcae.crt
Writing file /opt/app/osaaf/local/org.onap.dcae.key
Writing file /opt/app/osaaf/local/org.onap.dcae.jks
Writing file /opt/app/osaaf/local/org.onap.dcae.trust.jks
Writing file /opt/app/osaaf/local/org.onap.dcae.p12
Writing file /opt/app/osaaf/local/org.onap.dcae.trust.jks
Writing file /opt/app/osaaf/local/org.onap.dcae.check.sh
Writing file /opt/app/osaaf/local/org.onap.dcae.crontab.sh
Backing up /opt/app/osaaf/local/org.onap.dcae.cred.props
2022-04-17T05:13:52.622+0000: Trans Info
         REMOTE Place Artifact 1765.8577ms
        Reconstitute Private Key 0.738889ms
        Reconstitute Private Key 0.100913ms
 
Obtained Certificates
#### Validate Configuration and Certificate with live call
2022-04-17T05:13:53.043+0000 INIT [cadi] cadi_keyfile points to /opt/app/osaaf/local/org.onap.dcae.keyfile
2022-04-17T05:13:53.069+0000 INIT [cadi] https.protocols set by cadi_protocols in CADI Properties
2022-04-17T05:13:53.069+0000 INIT [cadi] jdk.tls.client.protocols set from Default Protocols
Validating Configuration...
2022-04-17T05:13:54.133+0000 INIT [cadi] X509 Chain
  0)
    Subject: C=US, O=ONAP, OU=OSAAF, OU=dcae@dcae.onap.org:DEV, CN=dcae
    Issuer : CN=intermediateCA_9, OU=OSAAF, O=ONAP, C=US
    Expires: Mon Apr 17 05:13:51 GMT 2023
  1)
    Subject: CN=intermediateCA_9, OU=OSAAF, O=ONAP, C=US
    Issuer : C=US, O=ONAP, OU=OSAAF
    Expires: Thu Aug 17 18:51:37 GMT 2023

2022-04-17T05:13:54.142+0000 INIT [cadi] https.protocols loaded from System Properties
2022-04-17T05:13:54.142+0000 INIT [cadi] jdk.tls.client.protocols loaded from System Properties
2022-04-17T05:13:54.206+0000 INIT [cadi] RegistrationProperty: default_container='oom'
2022-04-17T05:13:54.207+0000 INIT [cadi] RegistrationProperty: public_port='null'
2022-04-17T05:13:54.214+0000 INIT [cadi] RegistrationProperty: hostname='dcae-hv-ves-collector'
2022-04-17T05:13:54.215+0000 INIT [cadi] RegistrationProperty: public_fqdn='dcae-hv-ves-collector'
2022-04-17T05:13:54.215+0000 INIT [cadi] RegistrationProperty: default_name='%NS.%N'
2022-04-17T05:13:54.216+0000 INIT [cadi] RegistrationProperty: latitude='38.0'
2022-04-17T05:13:54.217+0000 INIT [cadi] RegistrationProperty: longitude='-72.0'
2022-04-17T05:13:54.217+0000 INIT [cadi] RegistrationProperty: default_fqdn='dcae'
2022-04-17T05:13:54.217+0000 INIT [cadi] RegistrationProperty: default_container_ns='onap'
2022-04-17T05:13:54.218+0000 DEBUG [cadi] RegistrationReplacement from AAFCon, source: https://AAF_LOCATE_URL/%CNS.%AAF_NS.service:2.1, dot_le: .oom, value: https://aaf-locate.onap:8095/locate/onap.org.osaaf.aaf.service:2.1
2022-04-17T05:13:54.219+0000 INFO [cadi] AAFCon has URL of https://aaf-locate.onap:8095/locate/onap.org.osaaf.aaf.service:2.1
2022-04-17T05:13:54.298+0000 DEBUG [cadi] Configured AbsAAFLocator not found"LocatorCreator is not set"Continuing Locator creation 
2022-04-17T05:13:54.299+0000 DEBUG [cadi] RegistrationReplacement from Config.loadLocator, source: https://AAF_LOCATE_URL/%CNS.%AAF_NS.service:2.1, dot_le: .oom, value: https://aaf-locate.onap:8095/locate/onap.org.osaaf.aaf.service:2.1
2022-04-17T05:13:54.299+0000 INFO [cadi] loadLocator URL is https://aaf-locate.onap:8095/locate/onap.org.osaaf.aaf.service:2.1
2022-04-17T05:13:54.303+0000 DEBUG [cadi] RegistrationReplacement from AAFLocator, source: https://AAF_LOCATE_URL, dot_le: .oom, value: https://aaf-locate.onap:8095
2022-04-17T05:13:54.303+0000 INFO [cadi] AbsAAFLocator AAF URI is https://aaf-locate.onap:8095/locate
2022-04-17T05:13:54.304+0000 DEBUG [cadi] RegistrationReplacement from AAFLocator, source: onap.org.osaaf.aaf.service:2.1, dot_le: .oom, value: onap.org.osaaf.aaf.service:2.1
2022-04-17T05:13:54.304+0000 INFO [cadi] AbsAAFLocator name is https://aaf-locate.onap:8095/locate
2022-04-17T05:13:54.345+0000 DEBUG [cadi] Root URI: https://aaf-locate.onap:8095/locate/onap.org.osaaf.aaf.service:2.1
2022-04-17T05:13:54.346+0000 INFO [cadi] AAFLocator enabled using https://aaf-locate.onap:8095
Success connecting to https://aaf-service.onap:8100
   Permissions for dcae@dcae.onap.org
	org.onap.aai.resources|*|delete
	org.onap.aai.resources|*|get
	org.onap.aai.resources|*|patch
	org.onap.aai.resources|*|post
	org.onap.aai.resources|*|put
	org.onap.aai.traversal|*|advanced
	org.onap.dcae.certman|local|request,ignoreIPs,showpass
	org.onap.dmaap-dr.feed|*|*
	org.onap.dmaap-dr.sub|*|*
	org.onap.dmaap.mr.topic|:topic.org.onap.dmaap.mr.aPnfTopic-1540492548|pub
	org.onap.dmaap.mr.topic|:topic.org.onap.dmaap.mr.aPnfTopic-1540492548|sub
	org.onap.dmaap.mr.topic|:topic.org.onap.dmaap.mr.aPnfTopic-1540492548|view
	org.onap.dmaap.mr.topic|:topic.org.onap.dmaap.mr.PM_MAPPER|pub
	org.onap.dmaap.mr.topic|:topic.org.onap.dmaap.mr.PM_MAPPER|view
	org.onap.dmaap.mr.topic|:topic.org.onap.dmaap.mr.PNF_READY|pub
	org.onap.dmaap.mr.topic|:topic.org.onap.dmaap.mr.PNF_READY|view
	org.onap.dmaap.mr.topic|:topic.org.onap.dmaap.mr.PNF_REGISTRATION|sub
	org.onap.dmaap.mr.topic|:topic.org.onap.dmaap.mr.PNF_REGISTRATION|view
	org.onap.dmaap.mr.topic|:topic.org.onap.dmaap.mr.PolandSpring1540393649|pub
	org.onap.dmaap.mr.topic|:topic.org.onap.dmaap.mr.PolandSpring1540393649|view
	org.onap.dmaap.mr.topic|:topic.org.onap.dmaap.mr.PolandSpring1540398384|pub
	org.onap.dmaap.mr.topic|:topic.org.onap.dmaap.mr.PolandSpring1540398384|view
	org.onap.dmaap.mr.topic|:topic.org.onap.dmaap.mr.PolandSpring1540398410|pub
	org.onap.dmaap.mr.topic|:topic.org.onap.dmaap.mr.PolandSpring1540398410|view
	org.onap.dmaap.mr.topic|:topic.org.onap.dmaap.mr.topic-000|pub
	org.onap.dmaap.mr.topic|:topic.org.onap.dmaap.mr.topic-000|view
	org.onap.dmaap.mr.topic|org.onap.dmaap.mr.PM_MAPPER|pub
	org.onap.dmaap.mr.topic|org.onap.dmaap.mr.PM_MAPPER|sub
Initialization complete
+ /opt/app/aaf_config/bin/agent.sh aafcli showpass dcae@dcae.onap.org dcae
+ grep cadi_keystore_password_p12
+ cut -d = -f 2-
+ tr -d '\n'
+ /opt/app/aaf_config/bin/agent.sh aafcli showpass dcae@dcae.onap.org dcae
+ grep cadi_keystore_password_jks=
+ cut -d = -f 2-
+ tr -d '\n'
+ tr -d '\n'
+ grep cadi_truststore_password=
+ cut -d = -f 2-
+ /opt/app/aaf_config/bin/agent.sh aafcli showpass dcae@dcae.onap.org dcae
+ cp /opt/app/osaaf/local/org.onap.dcae.p12 /opt/app/osaaf/cert.p12
+ cp /opt/app/osaaf/local/org.onap.dcae.jks /opt/app/osaaf/cert.jks
+ cp /opt/app/osaaf/local/org.onap.dcae.trust.jks /opt/app/osaaf/trust.jks
+ openssl pkcs12 -in /opt/app/osaaf/cert.p12 -passin file:/opt/app/osaaf/p12.pass -nodes -nokeys -out /opt/app/osaaf/cert.pem
+ openssl pkcs12 -in /opt/app/osaaf/cert.p12 -passin file:/opt/app/osaaf/p12.pass -nodes -nocerts -out /opt/app/osaaf/key.pem
+ chmod 644 /opt/app/osaaf/cert.pem /opt/app/osaaf/key.pem
+ keytool -exportcert -rfc -file /opt/app/osaaf/cacert.pem -keystore /opt/app/osaaf/local/org.onap.dcae.trust.jks -alias ca_local_0
+ echo ''
Enter keystore password:  
*****************  WARNING WARNING WARNING  *****************
* The integrity of the information stored in your keystore  *
* has NOT been verified!  In order to verify its integrity, *
* you must provide your keystore password.                  *
*****************  WARNING WARNING WARNING  *****************

Certificate stored in file </opt/app/osaaf/cacert.pem>
+ '[' true == false ']'
