Use BouncyCastle as provider for JKS keystore
Fixes an issue where KeyStoreBuilder fails to handle elliptic-curve crypto on older versions of OpenJDK
@@ -11,7 +11,7 @@ import java.security.KeyStoreException;
public enum KeyStoreType {
JKS {
KeyStore createKeystore() throws KeyStoreException {
- return KeyStore.getInstance("JKS");
+ return KeyStore.getInstance("BKS", BouncyCastleProviderHolder.getInstance());
}
},
PKCS12 {
