From 3a2c70f1ee024dbad4dc091d3105064641908e1d Mon Sep 17 00:00:00 2001 From: Shiwei Tian Date: Tue, 6 Mar 2018 08:56:31 +0800 Subject: Change HTTP Requests into HTTPS Ones Issue-ID: HOLMES-104 Change-Id: I73d23418fbfaa23121ec825b11bbb46e55b2058c Signed-off-by: Shiwei Tian --- rulemgt-standalone/src/main/assembly/bin/run.sh | 8 ++++++++ rulemgt-standalone/src/main/assembly/conf/rulemgt.yml | 8 ++++++-- .../target/assembly/linux64/conf/holmes.keystore | Bin 0 -> 1387 bytes 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 rulemgt-standalone/target/assembly/linux64/conf/holmes.keystore (limited to 'rulemgt-standalone') diff --git a/rulemgt-standalone/src/main/assembly/bin/run.sh b/rulemgt-standalone/src/main/assembly/bin/run.sh index fc1d63f..f0beb56 100644 --- a/rulemgt-standalone/src/main/assembly/bin/run.sh +++ b/rulemgt-standalone/src/main/assembly/bin/run.sh @@ -70,6 +70,14 @@ if [ ! -z ${URL_JDBC} ] && [ `expr index $URL_JDBC :` != 0 ]; then fi echo DB_PORT=$DB_PORT +KEY_PATH="$main_path/conf/holmes.keystore" +KEY_PASSWORD="holmes" + +#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" + + ./bin/initDB.sh $JDBC_USERNAME $JDBC_PASSWORD $DB_NAME $DB_PORT "${URL_JDBC%:*}" "$JAVA" $JAVA_OPTS -classpath "$class_path" org.onap.holmes.rulemgt.RuleActiveApp server "$main_path/conf/rulemgt.yml" diff --git a/rulemgt-standalone/src/main/assembly/conf/rulemgt.yml b/rulemgt-standalone/src/main/assembly/conf/rulemgt.yml index 3c94fa7..b0a934b 100644 --- a/rulemgt-standalone/src/main/assembly/conf/rulemgt.yml +++ b/rulemgt-standalone/src/main/assembly/conf/rulemgt.yml @@ -9,12 +9,16 @@ apidescription: ZTE Holmes rule Management rest API server: type: simple - rootPath: '/api/holmes-rule-mgmt/v1/*' + rootPath: '/api/holmes-rule-mgmt/v1/*' applicationContextPath: / adminContextPath: /admin connector: - type: http + type: https port: 9101 + keyStorePath: /home/holmes/conf/holmes.keystore + keyStorePassword: holmes + validateCerts: false + validatePeers: false # Logging settings. logging: diff --git a/rulemgt-standalone/target/assembly/linux64/conf/holmes.keystore b/rulemgt-standalone/target/assembly/linux64/conf/holmes.keystore new file mode 100644 index 0000000..a6266bb Binary files /dev/null and b/rulemgt-standalone/target/assembly/linux64/conf/holmes.keystore differ -- cgit 1.2.3-korg