Skip to content

Commit

Permalink
0004228: Recreate keystore if missing
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Jan 3, 2020
1 parent d3605f9 commit 3fcb138
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ protected void checkThatKeystoreFileExists() throws KeyStoreException, NoSuchAlg
String keyStoreType = System.getProperty(SecurityConstants.SYSPROP_KEYSTORE_TYPE,
SecurityConstants.KEYSTORE_TYPE);
KeyStore ks = KeyStore.getInstance(keyStoreType);
ks.load(null, getKeyStorePassword().toCharArray());
FileOutputStream os = new FileOutputStream(keyStoreLocation);
ks.store(os, getKeyStorePassword().toCharArray());
os.close();
Expand Down

0 comments on commit 3fcb138

Please sign in to comment.