Skip to content

Commit f547914

Browse files
authored
Make KeyManagerFactory agnostic of JRE provider
Fixes #2390
1 parent 585acae commit f547914

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws-java-sdk-core/src/main/java/com/amazonaws/http/AbstractFileTlsKeyManagersProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ abstract class AbstractFileTlsKeyManagersProvider implements TlsKeyManagersProvi
4040

4141
protected final KeyManager[] createKeyManagers(File storePath, String storeType, char[] password) throws CertificateException, NoSuchAlgorithmException, KeyStoreException, IOException, UnrecoverableKeyException {
4242
KeyStore ks = createKeyStore(storePath, storeType, password);
43-
KeyManagerFactory kmf = KeyManagerFactory.getInstance("SunX509");
43+
KeyManagerFactory kmf = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());
4444
kmf.init(ks, password);
4545
return kmf.getKeyManagers();
4646
}

0 commit comments

Comments
 (0)