Skip to content

Commit

Permalink
Make KeyManagerFactory agnostic of JRE provider
Browse files Browse the repository at this point in the history
Fixes #2390
  • Loading branch information
JogoShugh authored Sep 17, 2020
1 parent 585acae commit f547914
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ abstract class AbstractFileTlsKeyManagersProvider implements TlsKeyManagersProvi

protected final KeyManager[] createKeyManagers(File storePath, String storeType, char[] password) throws CertificateException, NoSuchAlgorithmException, KeyStoreException, IOException, UnrecoverableKeyException {
KeyStore ks = createKeyStore(storePath, storeType, password);
KeyManagerFactory kmf = KeyManagerFactory.getInstance("SunX509");
KeyManagerFactory kmf = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());
kmf.init(ks, password);
return kmf.getKeyManagers();
}
Expand Down

0 comments on commit f547914

Please sign in to comment.