diff options
author | GuangrongFu <fu.guangrong@zte.com.cn> | 2021-03-25 10:31:40 +0800 |
---|---|---|
committer | GuangrongFu <fu.guangrong@zte.com.cn> | 2021-03-25 10:31:40 +0800 |
commit | 161284df434fdff3264e1c41b9d179e971560a65 (patch) | |
tree | 1a27958cb0f98691dd7522d77fe7c7c141f7acee /rulemgt-standalone/src/main/assembly/bin | |
parent | e55711e1485de2f8cbddff135eea239c06bc8104 (diff) |
Use the cert generated by AAF
Change-Id: I99a21dfab3aa47d0a7223ef9369e63bf6aa526ce
Issue-ID: HOLMES-426
Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'rulemgt-standalone/src/main/assembly/bin')
-rw-r--r-- | rulemgt-standalone/src/main/assembly/bin/run.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rulemgt-standalone/src/main/assembly/bin/run.sh b/rulemgt-standalone/src/main/assembly/bin/run.sh index 49ffc53..6594eaf 100644 --- a/rulemgt-standalone/src/main/assembly/bin/run.sh +++ b/rulemgt-standalone/src/main/assembly/bin/run.sh @@ -81,6 +81,15 @@ echo ENABLE_ENCRYPT=${ENABLE_ENCRYPT} KEY_PATH="$main_path/conf/holmes.keystore" KEY_PASSWORD="holmes" + +if [ -f "/opt/app/osaaf/local/org.onap.holmes-rule-mgmt.p12" ]; then + KEY_PATH="/opt/app/osaaf/local/org.onap.holmes-rule-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/rulemgt.yml" sed -i "s|keyStorePassword:.*|keyStorePassword: $KEY_PASSWORD|" "$main_path/conf/rulemgt.yml" |