X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=auth%2Fsample%2Fbin%2Fservice.sh;h=c14754ae8f42f44bf6720f2c2b154e8805ec646a;hb=355b886d817295d2bca5af28f01576bf4a3ded18;hp=a4d2aba14e1057910432bc7b65828544c8551502;hpb=8748d6d6d0c654134712a26fa795520d895ca878;p=aaf%2Fauthz.git diff --git a/auth/sample/bin/service.sh b/auth/sample/bin/service.sh index a4d2aba1..c14754ae 100644 --- a/auth/sample/bin/service.sh +++ b/auth/sample/bin/service.sh @@ -33,7 +33,7 @@ echo "# Properties passed in" # Set from CAP Based PROPS, if necessary aaf_env=${aaf_env:-"${AAF_ENV}"} -aaf_release=${aaf_release:-"${VERSION}"} +aaf_deployed_version=${aaf_deployed_version:-"${VERSION}"} cadi_latitude=${cadi_latitude:-"${LATITUDE}"} cadi_longitude=${cadi_longitude:-"${LONGITUDE}"} cadi_x509_issuers=${cadi_x509_issuers:-"${CADI_X509_ISSUERS}"} @@ -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