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-03-25 10:34:22 +0800
commitf422d8f40e37d532bfbc152346e9c6c3b9fa9969 (patch)
treee1281d0848cb01104a692a8088a60d51be7fd7a9
parent483cb1bb26b8c95275cf4923a485a12b45bf10e0 (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"