Browse Source

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

Marc Mültin 5 years ago
parent
commit
ce7c41d9cd

+ 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());
 				}