summaryrefslogtreecommitdiffstats
path: root/auth/sample/bin
diff options
context:
space:
mode:
authorInstrumental <jonathan.gathman@att.com>2019-05-01 13:35:47 -0500
committerInstrumental <jonathan.gathman@att.com>2019-05-01 13:35:52 -0500
commit513471c517baae37437dca2d1af6d2bdb31ab128 (patch)
tree0ca8ca58ebbfa21c4d989793fee1ba2fe9ac09c6 /auth/sample/bin
parent8748d6d6d0c654134712a26fa795520d895ca878 (diff)
Initialization issues
Issue-ID: AAF-822 Change-Id: I34b2e1cb73667238c1c0561ff47b76cbdd7af2e3 Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'auth/sample/bin')
-rw-r--r--auth/sample/bin/service.sh21
1 files changed, 11 insertions, 10 deletions
diff --git a/auth/sample/bin/service.sh b/auth/sample/bin/service.sh
index a4d2aba1..29d9f967 100644
--- a/auth/sample/bin/service.sh
+++ b/auth/sample/bin/service.sh
@@ -81,6 +81,14 @@ if [ ! -e $FILE ]; then
INITIALIZED="true"
fi
+# Should we clean up?
+if [ ! -e "${LOCAL}/VERSION" ] || [ "${VERSION}" != "$(cat ${LOCAL}/VERSION)" ]; then
+ echo "Clean up directory ${LOCAL}"
+ rm -Rf ${LOCAL}/org.osaaf.aaf.*props ${LOCAL}/org.osaaf.aaf.p12
+ ls ${LOCAL}
+fi
+echo "${VERSION}" > $LOCAL/VERSION
+
# Load up Cert/X509 Artifacts
# echo "Check Signer Keyfile"
FILE="$LOCAL/org.osaaf.aaf.signer.p12"
@@ -99,19 +107,11 @@ if [ ! -e $FILE ]; then
ln -s $PUBLIC/truststoreONAPall.jks $LOCAL
cp $CONFIG/cert/AAF_RootCA.cer $PUBLIC
CM_TRUST_CAS="$PUBLIC/AAF_RootCA.cer"
- echo "cadi_keystore_password=something easy" >> $CONFIG/local/aaf.props
echo "Setup ONAP Test CAs and Signers"
INITIALIZED="true"
fi
fi
-# Should we clean up?
-if [ "${VERSION}" != "$(cat ${LOCAL}/VERSION)" ]; then
- echo "Clean up directory ${LOCAL}"
- rm -Rf ${LOCAL}/*
-fi
-echo "${VERSION}" > $LOCAL/VERSION
-
FILE="$LOCAL/org.osaaf.aaf.p12"
if [ ! -e $FILE ]; then
if [ -e $CONFIG/cert/org.osaaf.aaf.p12 ]; then
@@ -122,8 +122,9 @@ if [ ! -e $FILE ]; then
echo "Bootstrap Creation of Keystore from Signer"
cd $CONFIG/CA
- # Remove this after Casablanca
- CADI_X509_ISSUERS="CN=intermediateCA_1, OU=OSAAF, O=ONAP, C=US:CN=intermediateCA_7, OU=OSAAF, O=ONAP, C=US"
+ # Redo all of this after Dublin
+ export cadi_x509_issuers="CN=intermediateCA_1, OU=OSAAF, O=ONAP, C=US:CN=intermediateCA_7, OU=OSAAF, O=ONAP, C=US"
+ export signer_subj="/CN=intermediateCA_9/OU=OSAAF/O=ONAP/C=US"
bash bootstrap.sh $LOCAL/org.osaaf.aaf.signer.p12 'something easy'
cp aaf.bootstrap.p12 $FILE
if [ -n "$CADI_X509_ISSUERS" ]; then