Zé Carlos
Zé Carlos

Reputation: 3807

Java: Read certificates from windows store

It is possible to write a Java program to read one certificate (getting private and public key) stored in windows certificate store ?

Thanks

Upvotes: 5

Views: 6335

Answers (1)

ZZ Coder
ZZ Coder

Reputation: 75456

If you are on Java 6, you can use the MSCAPI keystore to read it. Just open your keystore like this,

      KeyStore msCertStore = KeyStore.getInstance("Windows-MY", "SunMSCAPI");

Upvotes: 8

Related Questions