Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以编写一个 Java 程序来读取存储在 Windows 证书存储中的一个证书(获取私钥和公钥)?
谢谢
如果您使用的是 Java 6,则可以使用 MSCAPI 密钥库来读取它。像这样打开你的密钥库,
KeyStore msCertStore = KeyStore.getInstance("Windows-MY", "SunMSCAPI");