【问题标题】:Certificate chain - is my Intermediate correct证书链 - 我的中级是否正确
【发布时间】:2018-06-26 09:22:16
【问题描述】:

有一件事我找不到。我刚刚收到来自客户端的 Comodo ssl 证书(.crt 文件和密钥)以安装在网络服务器上。虽然我没有收到中级。证书CN为:

Extended Validation Secure Server CA

我确实在 Comodo 网站上找到了这个中级:

https://support.comodo.com/index.php?/Knowledgebase/Article/View/931/91/intermediate-2-comodo-ev-secure-server-ca

如何检查此特定证书是否已通过此中间体验证?

我在尝试

openssl verify -verbose -purpose sslserver -CAfile comodoextendedvalidationsecureserverca.crt my_certificate.crt 

但出现此错误:

error 20 at 0 depth lookup:unable to get local issuer certificate

如果验证失败,我会期望。但令人惊讶的是,我在证书/中间对上尝试此命令时遇到了类似的错误 (error 2 at 1 depth lookup:unable to get issuer certificate),我确信这是正确的。

我想确定,在我开始唠叨我的客户之前,我找不到合适的中间人。

【问题讨论】:

  • 中间CA应该在-untrusted选项之后传递给openssl verify命令。

标签: ssl openssl certificate


【解决方案1】:

正如帕特里克建议的那样:

openssl verify -purpose sslserver -untrusted <Intermediate_file.crt> <cerificate_file.crt>

是个好方法。谢谢

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-06-06
    • 2013-09-13
    • 2020-07-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-01-29
    • 1970-01-01
    相关资源
    最近更新 更多