Java: reading certificates from Windows store

Can I write a Java program to read a single certificate (obtain the private and public key) stored in the Windows certificate store?

thanks

+4
java cryptography encryption x509certificate
source share
1 answer

If you are in Java 6, you can use the MSCAPI keystore to read it. Just open your keystore as follows:

KeyStore msCertStore = KeyStore.getInstance("Windows-MY", "SunMSCAPI"); 
+7
source share

All Articles