I want to access certificates in a Windows user certificate store ("Windows-MY") using a key store in java. Here is the code I'm using:
KeyStore ks = KeyStore.getInstance("Windows-MY", "SunMSCAPI");
ks.load(null, null);
Unfortunately, the execution of this code opens a pop-up window from the window, prompting the user to select a smart card.
After clicking cancel in this pop-up window (several times), the keystore is built correctly and access to certificates can be obtained.
Disabling the Smartcard service in Windows services helps, but then Smartcards can no longer be used (we use Smartcards in another use case). How can I access the Windows repository without this popup?
source
share