From 5b3f8b279725c337de6988e703cca418b3e53826 Mon Sep 17 00:00:00 2001 From: Shiwei Tian Date: Tue, 6 Mar 2018 10:01:38 +0800 Subject: Change HTTP Requests into HTTPS Ones Issue-ID: HOLMES-104 Change-Id: I535050f7dcacc2caa75d9a8941d93000fd91c361 Signed-off-by: Shiwei Tian --- engine-d-standalone/src/main/assembly/bin/run.sh | 7 +++++++ engine-d-standalone/src/main/assembly/conf/engine-d.yml | 6 +++++- .../src/main/assembly/conf/holmes.keystore | Bin 0 -> 1387 bytes 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 engine-d-standalone/src/main/assembly/conf/holmes.keystore (limited to 'engine-d-standalone/src/main/assembly') 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 new file mode 100644 index 0000000..a6266bb Binary files /dev/null and b/engine-d-standalone/src/main/assembly/conf/holmes.keystore differ -- cgit 1.2.3-korg