瀏覽代碼

Replaced a hard-coded keystore for the EVCC with the value given in the GlobalValues file (GlobalValues.EVCC_KEYSTORE_FILEPATH)

Marc Mültin 5 年之前
父節點
當前提交
ce7c41d9cd
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      RISE-V2G-Shared/src/main/java/com/v2gclarity/risev2g/shared/utils/SecurityUtils.java

+ 1 - 1
RISE-V2G-Shared/src/main/java/com/v2gclarity/risev2g/shared/utils/SecurityUtils.java

@@ -1008,7 +1008,7 @@ public final class SecurityUtils {
 						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());
 				}