Load MSCAPI Java Keystore without loading private keys (hard token)
问题 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); 回答1: The popup is being activated from the MS-CAPI Cryptographic Service Provider (CSP) - the DLL supplied by the