X-Git-Url: https://git.pterodactylus.net/?p=jkeytool.git;a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Fjkeytool%2Fcore%2FCore.java;h=e1900150d2ceb235e33f2175dcac5721abe51879;hp=7579fbfabb24c620c4f064a2a22aa1e1e028c98d;hb=62bcabc3fedcf410ab013375010e062da64d596c;hpb=a472334662c884abba8d2c1d47bed9f0c11525d3 diff --git a/src/net/pterodactylus/jkeytool/core/Core.java b/src/net/pterodactylus/jkeytool/core/Core.java index 7579fbf..e190015 100644 --- a/src/net/pterodactylus/jkeytool/core/Core.java +++ b/src/net/pterodactylus/jkeytool/core/Core.java @@ -83,9 +83,16 @@ public class Core { public void createKeyStore(String keyStoreType) { try { KeyStore keyStore = KeyStore.getInstance(keyStoreType); + keyStore.load(null, null); coreListenerSupport.fireKeyStoreCreated(keyStore); } catch (KeyStoreException kse1) { coreListenerSupport.fireKeyStoreNotCreated(keyStoreType, kse1); + } catch (NoSuchAlgorithmException nsae1) { + coreListenerSupport.fireKeyStoreNotCreated(keyStoreType, nsae1); + } catch (CertificateException ce1) { + coreListenerSupport.fireKeyStoreNotCreated(keyStoreType, ce1); + } catch (IOException ioe1) { + coreListenerSupport.fireKeyStoreNotCreated(keyStoreType, ioe1); } }