I need to retrieve the list of certificates available in the windows keystore without the user having to enter his password in each certificate manager.
A simple example: when you want to sign a PDF document with Adobe Reader, Adobe Reader first displays the list of certificates available in the keystore, the user chooses the certificate he wants to sign with, and then the certificate manager asks the user for his password.
keyStore = KeyStore.getInstance("Windows-MY", "SunMSCAPI");
keyStore.load(null, null);
This is the code I wrote in Java to read the certificates available in the Windows keystore.
Read the available certificates, and that it is when using a certificate that the certificate manager asks for the password.