Merge "[COMMON] Add custom certs into AAF truststore"
authorKrzysztof Opasiak <k.opasiak@samsung.com>
Tue, 11 May 2021 12:30:14 +0000 (12:30 +0000)
committerGerrit Code Review <gerrit@onap.org>
Tue, 11 May 2021 12:30:14 +0000 (12:30 +0000)
1  2 
kubernetes/common/cert-wrapper/resources/import-custom-certs.sh

@@@ -48,17 -47,11 +48,18 @@@ for f in $CERTS_DIR/*; d
    fi
  done
  
 +for f in $MORE_CERTS_DIR/*; do
 +  if [ ${f: -4} == ".pem" ]
 +    then
 +      cp $f $WORK_DIR/.
 +  fi
 +done
 +
  # Prepare truststore output file
 -if [ "$AAF_ENABLED" == "true" ]
 +if [ "$AAF_ENABLED" = "true" ]
    then
-     mv $WORK_DIR/$ONAP_TRUSTSTORE $WORK_DIR/$TRUSTSTORE_OUTPUT_FILENAME
+     echo "AAF is enabled, use 'AAF' truststore"
+     export TRUSTSTORE_OUTPUT_FILENAME=${ONAP_TRUSTSTORE}
    else
      echo "AAF is disabled, using JRE truststore"
      cp $JRE_TRUSTSTORE $WORK_DIR/$TRUSTSTORE_OUTPUT_FILENAME