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.
我有一个用于数字签名的小程序。我也有 PKCS ♯12 上的证书,该证书已导入浏览器。 如何使用小程序从浏览器获取此证书?
你想要这样的东西:
KeyStore ks = KeyStore.getInstance("Windows-MY"); ks.load(null, null); Certificate cert = ks.getCertificate(alias);
有关更多信息,请查看文档。