I would like to load a MSCAPI keystore
within Java and examine available certificates in the MY store. However some keys for those certificates reside on hardware tokens and a popup asks for the token during load.
Is there a way to defer loading the private keys when loading the Windows keystore?
keyStore = KeyStore.getInstance("Windows-MY", "SunMSCAPI");
keystore.load(null,null);
This issue has been solved in JDK 9.
https://bugs.openjdk.java.net/browse/JDK-8153438
http://hg.openjdk.java.net/jdk9/dev/jdk/rev/e7f78523d41d
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With