diff options
author | Shiwei Tian <tian.shiwei@zte.com.cn> | 2018-03-06 10:01:38 +0800 |
---|---|---|
committer | Shiwei Tian <tian.shiwei@zte.com.cn> | 2018-03-06 10:01:38 +0800 |
commit | 5b3f8b279725c337de6988e703cca418b3e53826 (patch) | |
tree | 42fe75020eb407a6cc20c7b04447506345687184 /engine-d-standalone/src | |
parent | 3b822dd0c43d656cf4cb9b3f37633300b963e120 (diff) |
Change HTTP Requests into HTTPS Ones
Issue-ID: HOLMES-104
Change-Id: I535050f7dcacc2caa75d9a8941d93000fd91c361
Signed-off-by: Shiwei Tian <tian.shiwei@zte.com.cn>
Diffstat (limited to 'engine-d-standalone/src')
-rw-r--r-- | engine-d-standalone/src/main/assembly/bin/run.sh | 7 | ||||
-rw-r--r-- | engine-d-standalone/src/main/assembly/conf/engine-d.yml | 6 | ||||
-rw-r--r-- | engine-d-standalone/src/main/assembly/conf/holmes.keystore | bin | 0 -> 1387 bytes |
3 files changed, 12 insertions, 1 deletions
diff --git a/engine-d-standalone/src/main/assembly/bin/run.sh b/engine-d-standalone/src/main/assembly/bin/run.sh index dab4cbc..d3d5348 100644 --- a/engine-d-standalone/src/main/assembly/bin/run.sh +++ b/engine-d-standalone/src/main/assembly/bin/run.sh @@ -70,6 +70,13 @@ fi #ActiveMQ IP Configurations sed -i "s|brokerIp:.*|brokerIp: $SERVICE_IP|" "$main_path/conf/engine-d.yml" +KEY_PATH="$main_path/conf/holmes.keystore" +KEY_PASSWORD="holmes" + +#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" + cat "$main_path/conf/engine-d.yml" diff --git a/engine-d-standalone/src/main/assembly/conf/engine-d.yml b/engine-d-standalone/src/main/assembly/conf/engine-d.yml index ff3201b..c5a750a 100644 --- a/engine-d-standalone/src/main/assembly/conf/engine-d.yml +++ b/engine-d-standalone/src/main/assembly/conf/engine-d.yml @@ -19,8 +19,12 @@ server: applicationContextPath: /
adminContextPath: /admin
connector:
- type: http
+ type: https
port: 9102
+ keyStorePath: /home/holmes/conf/holmes.keystore
+ keyStorePassword: holmes
+ validateCerts: false
+ validatePeers: false
# Logging settings.
diff --git a/engine-d-standalone/src/main/assembly/conf/holmes.keystore b/engine-d-standalone/src/main/assembly/conf/holmes.keystore Binary files differnew file mode 100644 index 0000000..a6266bb --- /dev/null +++ b/engine-d-standalone/src/main/assembly/conf/holmes.keystore |