从公钥获取证书详细信息?

发布于 2024-09-12 14:20:00 字数 75 浏览 1 评论 0原文

有什么方法可以从公钥获取证书详细信息吗?我不得不使用 Bouncy Castle jar 来解决这个问题,但不知何故我无法解决这个问题。

Is there any way to get certificate detail from public key? I had to use Bouncy Castle jar for this but somehow I can't solve this problem.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

赏烟花じ飞满天 2024-09-19 14:20:00

您可以使用 openssl 工具包检查证书:

$ openssl x509 -in /usr/share/ca-certificates/cacert.org/cacert.org.crt -text
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number: 0 (0x0)
        Signature Algorithm: md5WithRSAEncryption
...

如果您需要其他环境中的结果,您可能需要提供更多详细信息。

You can use the openssl toolkit to inspect certificates:

$ openssl x509 -in /usr/share/ca-certificates/cacert.org/cacert.org.crt -text
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number: 0 (0x0)
        Signature Algorithm: md5WithRSAEncryption
...

If you need the results in another environment, you may need to give more details.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文