summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuangrongFu <fu.guangrong@zte.com.cn>2021-03-25 10:34:22 +0800
committerGuangrongFu <fu.guangrong@zte.com.cn>2021-04-13 08:17:10 +0800
commit67476a350ab41a9ae8a15f50010056cadc7c64ab (patch)
treee1281d0848cb01104a692a8088a60d51be7fd7a9
parent912b2fb1aadd640c3ff3c98eeeda5bb50fd9b8a3 (diff)
Use the cert generated by AAF
Change-Id: Ib6b41df36a56a3abddda75ae7d95653fc42ba604 Issue-ID: HOLMES-426 Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
-rw-r--r--engine-d-standalone/src/main/assembly/bin/run.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/engine-d-standalone/src/main/assembly/bin/run.sh b/engine-d-standalone/src/main/assembly/bin/run.sh
index b0cfe18..83b5275 100644
--- a/engine-d-standalone/src/main/assembly/bin/run.sh
+++ b/engine-d-standalone/src/main/assembly/bin/run.sh
@@ -81,6 +81,15 @@ echo ENABLE_ENCRYPT=$ENABLE_ENCRYPT
KEY_PATH="/opt/onap/conf/holmes.keystore"
KEY_PASSWORD="holmes"
+
+if [ -f "/opt/app/osaaf/local/org.onap.holmes-engine-mgmt.p12" ]; then
+ KEY_PATH="/opt/app/osaaf/local/org.onap.holmes-engine-mgmt.p12"
+ KEY_PASSWORD=`head -n1 "/opt/app/osaaf/local/mycreds.prop" | cut -d= -f2`
+fi
+
+echo "KEY_PATH=$KEY_PATH"
+echo "KEY_PASS=$KEY_PASSWORD"
+
#HTTPS Configurations
sed -i "s|keyStorePath:.*|keyStorePath: $KEY_PATH|" "$main_path/conf/engine-d.yml"
sed -i "s|keyStorePassword:.*|keyStorePassword: $KEY_PASSWORD|" "$main_path/conf/engine-d.yml"