ssl - 对照其根 CA 验证 CRL 签名

标签 ssl openssl

我当前正在尝试验证从 URL 下载的 CRL 是否是由相应证书颁发机构签名的有效文件。

使用 OpenSSL,您可以按如下方式执行此操作:

https://www.openssl.org/docs/manmaster/apps/crl.html

CertEurope 颁发的 CRL 示例:

openssl crl -in certeurope_v3.crl -inform der -CAfile certeurope_advanced_v3.cer

(CRL文件和CA文件从此URL下载:https://www.certeurope.fr/chaine-de-confiance)

不幸的是,OpenSSL 收到一个错误,该命令行显示:

"Error getting CRL issuer certificate"

关于此链接:https://www.openssl.org/docs/manmaster/apps/verify.html 原因似乎是这样的:

20 X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY: unable to get local issuer certificate the issuer certificate could not be found: this occurs if the issuer certificate of an untrusted certificate cannot be found.

这是因为 CA 文件不是用于签署 CRL 文件的文件吗?是否有其他方法可以验证我下载的 CRL 文件是否有效?

最佳答案

dave_thompson_085 的回答解决了我的问题。您需要 PEM 证书来检查 CRL 有效性。再次感谢。

关于ssl - 对照其根 CA 验证 CRL 签名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34284375/

相关文章:

tomcat不会将http重定向到https

asp.net - 在 SSL 终止反向代理后面运行时如何在 IIS 上创建重定向响应?

ssl - 无法使用 spring 云网关从 http 请求路由到 https 请求

ubuntu - 尽管干净重启,Ubuntu 14.04 上的 Stunnel

ssl - SSL 证书可以免费制作吗?有哪些高级选项可以获得?

c++ - SSLSniff错误: "SSL Accept Failed"

android - 无法在 Windows/Cygwin 上为 Android NDK 构建外部 OpenSSL 库

OpenSSL 在 aes 加密中填充 key ?

c - 以 DER 格式编写私钥/公钥

c - 使用 EVP 工具使用 RSA 加密 key 解密 AES 加密消息