diff options
author | 2017-02-14 15:12:08 +0000 | |
---|---|---|
committer | 2017-02-14 15:12:10 +0000 | |
commit | a84b847a3409df445482674feffa2872a8cbae83 (patch) | |
tree | a4f2dcaef92e0fb09402f2f28f793928d0a16bfd /dcae-controller-core/dcae-controller-core-utils/src/main/server/bin/setup_https.sh | |
parent | e6bca17737d1897675e6403e196fc2a61f335651 (diff) |
Init dcae.controller
Change-Id: I460f09494faa84b55d9c5d54112e098b0e74d007
Signed-off-by: lj1412 <lji@research.att.com>
Diffstat (limited to 'dcae-controller-core/dcae-controller-core-utils/src/main/server/bin/setup_https.sh')
-rw-r--r-- | dcae-controller-core/dcae-controller-core-utils/src/main/server/bin/setup_https.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/dcae-controller-core/dcae-controller-core-utils/src/main/server/bin/setup_https.sh b/dcae-controller-core/dcae-controller-core-utils/src/main/server/bin/setup_https.sh new file mode 100644 index 0000000..6559251 --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-utils/src/main/server/bin/setup_https.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +FILE=$1 + +JKS=/opt/app/dcae-certificate/keystore.jks +PW=/opt/app/dcae-certificate/.password + +sed -i /server.keyStore/d $FILE +sed -i /server.keyManagerPassword/d $FILE + +if [ ! -e $JKS ]; then exit; fi +if [ ! -e $PW ]; then exit; fi + +echo server.keyStore=$JKS >> $FILE +echo server.keyStorePassword=$(cat $PW) >> $FILE +echo server.keyManagerPassword=$(cat $PW) >> $FILE + |