Java: Read certificates from windows store

风格不统一 提交于 2019-12-12 12:18:33

问题


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

Thanks


回答1:


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");


来源:https://stackoverflow.com/questions/3024442/java-read-certificates-from-windows-store

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!