以编程方式获取证书详细信息
我有一个自签名的 JAR 文件。我希望它能够:
- 检查它是否已签名;
- 获取并输出其签名所用证书的详细信息。
jar 不需要通过服务器检查或验证证书。
任何帮助将不胜感激。谢谢! :)
I have a self-signed JAR file. I would like for it to be able to:
- Check if it is signed;
- Get and output the details of the certificate it was signed with.
The jar does not need to check or verify the certificate with a server.
Any help would be appreciated. Thanks! :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用
CodeSource# getCertificates()
。Use
CodeSource#getCertificates()
.