0

Anyone knows of any equivalent to ASP.NET X509Certificate2UI in JAVA?

Need to develop a java applet that needs to access the local windows certificates store.

Thanks,

1 Answers1

0

You can access the Windows certificate stores in Java using specific KeyStore types:

The system certificate store alias "Windows-Root" and user certificate store alias "Windows-MY":

KeyStore ks = KeyStore.getInstance("Windows-MY");
Certificate c = ks.getCertificate(aliasKey);

For more code samples see:

Community
  • 1
  • 1
Robert
  • 39,162
  • 17
  • 99
  • 152
  • For the GUI, I guess you could take dialogs from [Portecle](http://portecle.sourceforge.net/) together with above information. I don't think there is a specific standalone dialog anywhere in standard Java API (although it may be present for some tool or other). – Maarten Bodewes Jan 25 '15 at 02:36