Access Local Machine Certificate Store in Java?

Petey B picture Petey B · Aug 31, 2010 · Viewed 15.7k times · Source

Is it possible to access certificates stored in the Local Machine store (rather than Current User) from a Java Servlet? I've tried using the MSCAPI provider opening the "Windows-MY" and "Windows-ROOT" stores, but neither contain certificates from the Local Machine store.

Answer

Justin picture Justin · Aug 31, 2010

The default JDK implementation is fairly limited. AFAIK it will only bring back RSA keys and certificates. It is not a general purpose adapter to MSCAPI. I have been able to get some certs back using the mechanism you describe.