From 280dcf81ea3e4f800055266c25ed22fd283e4ebb Mon Sep 17 00:00:00 2001 From: Simon Leischnig Date: Tue, 25 Aug 2020 14:27:21 +0200 Subject: [PATCH] Actually use __flexiPromoted for loadKeystore --- .../org/jcryptool/crypto/keystore/backend/KeyStoreManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/org.jcryptool.crypto.keystore/src/org/jcryptool/crypto/keystore/backend/KeyStoreManager.java b/org.jcryptool.crypto.keystore/src/org/jcryptool/crypto/keystore/backend/KeyStoreManager.java index efa6e215ec..1ad46857bb 100644 --- a/org.jcryptool.crypto.keystore/src/org/jcryptool/crypto/keystore/backend/KeyStoreManager.java +++ b/org.jcryptool.crypto.keystore/src/org/jcryptool/crypto/keystore/backend/KeyStoreManager.java @@ -182,12 +182,15 @@ private void createDefaultKeystore() { private void loadKeystore() { InputStream is = null; try { + ProviderManager2.getInstance().setProviders__flexiPromoted(); + is = new BufferedInputStream(platformKeystore.openInputStream(EFS.NONE, null)); keyStore.load(is, KEYSTORE_PASSWORD); } catch (Exception e) { LogUtil.logError(KeyStorePlugin.PLUGIN_ID, e); createDefaultKeystore(); } finally { + ProviderManager2.getInstance().setProviders__sunPromoted(); if (is != null) { try { is.close();