From ce7c41d9cd2512faad4d6802ce276675279e0087 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Mu=CC=88ltin?= Date: Thu, 23 Jul 2020 17:33:56 +0100 Subject: [PATCH] Replaced a hard-coded keystore for the EVCC with the value given in the GlobalValues file (GlobalValues.EVCC_KEYSTORE_FILEPATH) --- .../java/com/v2gclarity/risev2g/shared/utils/SecurityUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RISE-V2G-Shared/src/main/java/com/v2gclarity/risev2g/shared/utils/SecurityUtils.java b/RISE-V2G-Shared/src/main/java/com/v2gclarity/risev2g/shared/utils/SecurityUtils.java index 76e22328..0552dfe0 100644 --- a/RISE-V2G-Shared/src/main/java/com/v2gclarity/risev2g/shared/utils/SecurityUtils.java +++ b/RISE-V2G-Shared/src/main/java/com/v2gclarity/risev2g/shared/utils/SecurityUtils.java @@ -1008,7 +1008,7 @@ public static boolean saveContractCertificateChain( getCertificateChain(contractCertChain)); // Save the keystore persistently - try(FileOutputStream fos = new FileOutputStream("evccKeystore.jks")){ + try(FileOutputStream fos = new FileOutputStream(GlobalValues.EVCC_KEYSTORE_FILEPATH.toString())){ keyStore.store(fos, GlobalValues.PASSPHRASE_FOR_CERTIFICATES_AND_KEYS.toString().toCharArray()); }