summaryrefslogtreecommitdiffstats
path: root/packages/apex-pdp-package-full/src/main/package/scripts/apexApps.bat
diff options
context:
space:
mode:
authorliamfallon <liam.fallon@est.tech>2019-05-03 12:08:27 +0000
committerliamfallon <liam.fallon@est.tech>2019-05-03 12:08:27 +0000
commit728f9132fa2c774ad5e6e5ec3c32dbd1bfd4bbfa (patch)
tree26923ffc5cda5f53ba95e05f7df3c326e053523d /packages/apex-pdp-package-full/src/main/package/scripts/apexApps.bat
parent62bc4a162b169971349bce415f97ace15c15eeef (diff)
Fix HTTPS configuration on PDP-A
This review enables HTTPS for health check on PDP-A Issue-ID: POLICY-1732 Change-Id: I139a4c3ba043f978d1a75ae560037f713def1c1f Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'packages/apex-pdp-package-full/src/main/package/scripts/apexApps.bat')
-rw-r--r--packages/apex-pdp-package-full/src/main/package/scripts/apexApps.bat10
1 files changed, 9 insertions, 1 deletions
diff --git a/packages/apex-pdp-package-full/src/main/package/scripts/apexApps.bat b/packages/apex-pdp-package-full/src/main/package/scripts/apexApps.bat
index 9798fa545..ad176ce0a 100644
--- a/packages/apex-pdp-package-full/src/main/package/scripts/apexApps.bat
+++ b/packages/apex-pdp-package-full/src/main/package/scripts/apexApps.bat
@@ -50,12 +50,20 @@ if defined APEX_HOME (
exit /b
)
+:: Environment variables for HTTPS
+set KEYSTORE=%APEX_HOME%/etc/ssl/policy-keystore"
+set KEYSTORE_PASSWD="Pol1cy_0nap"
+set TRUSTSTORE=%APEX_HOME%/etc/ssl/policy-truststore"
+set TRUSTSTORE_PASSWD="Pol1cy_0nap"
+
+:: HTTPS parameters
+set HTTPS_PARAMETERS=-Djavax.net.ssl.keyStore=%KEYSTORE% -Djavax.net.ssl.keyStorePassword=%KEYSTORE_PASSWD% -Djavax.net.ssl.trustStore=%TRUSTSTORE% -Djavax.net.ssl.trustStorePassword=%TRUSTSTORE_PASSWD%
:: script name for output
set MOD_SCRIPT_NAME=apexApps
:: config for CP apps
-SET _CONFIG=-Dlogback.configurationFile=%APEX_HOME%\etc\logback.xml -Dhazelcast.config=%APEX_HOME%\etc\hazelcast.xml -Dhazelcast.mancenter.enabled=false
+SET _CONFIG=%HTTPS_PARAMETERS% -Dlogback.configurationFile=%APEX_HOME%\etc\logback.xml -Dhazelcast.config=%APEX_HOME%\etc\hazelcast.xml -Dhazelcast.mancenter.enabled=false
:: Maven/APEX version
set /p _VERSION=<%APEX_HOME%\etc\app-version.txt