[COMMON] Add custom certs into AAF truststore 44/120644/1
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Mon, 19 Apr 2021 13:32:44 +0000 (15:32 +0200)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Mon, 19 Apr 2021 13:32:44 +0000 (15:32 +0200)
Instead of creating a truststore nobody is using when using AAF, let's
reuse AAF truststore and onboard certs in it.

Issue-ID: OOM-2730
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: Idb1af0357e286d9536c5d16f592068b61f885b0a

kubernetes/common/cert-wrapper/resources/import-custom-certs.sh

index 87e584c..b5a1d57 100755 (executable)
@@ -50,7 +50,8 @@ done
 # Prepare truststore output file
 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