Skip to content

Commit c9c45b9

Browse files
committed
Fix issue where loaded keystore password wasn't returned for fs keystores
1 parent 9d35bce commit c9c45b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proxybase/src/main/java/com/dajudge/proxybase/certs/FileSystemKeyStoreLoader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ private char[] getEffectiveKeyStorePassword() throws IOException {
6060

6161
private char[] getEffectivePassword(final String path, final char[] password) throws IOException {
6262
if (path != null) {
63-
new String(filesystem.readFile(path), StandardCharsets.UTF_8);
63+
return new String(filesystem.readFile(path), StandardCharsets.UTF_8).toCharArray();
6464
}
6565
return password;
6666
}

0 commit comments

Comments
 (0)