gpt4 book ai didi

linux - RedHat Linux 8 中的 openssl 证书验证失败

转载 作者:太空宇宙 更新时间:2023-11-04 11:48:49 28 4
gpt4 key购买 nike

对于相同的 cacert.pem openssl 返回不同的结果。

证书在Redhat linux 8中校验失败,在Redhat linux 7.5中校验成功

[rhel8]: openssl verify cacert.pem
C = NO, L = Asker, O = E1, OU = ETO TER, CN = ETO Opto Certificate Authority
error 18 at 0 depth lookup: self signed certificate
error cacert.pem: verification failed

RHEL 7.5:

[rhel7.5]: openssl verify cacert.pem
ca-certs.pem: C = NO, L = Asker, O = E1, OU = ETO TER, CN = ETO Opto Certificate Authority
error 18 at 0 depth lookup:self signed certificate
OK

最佳答案

在您的情况下(自签名证书),openssl 的 2 个版本不会返回相同的代码。

  • OpenSSL 1.0.2 返回 0
  • OpenSSL 1.1.1 返回 2

这记录在变更日志中:

Changes between 1.0.2h and 1.1.0 [25 Aug 2016]

[...]

*) Make openssl verify return errors.

您的版本 1.0.2k 在分支 1.0.2 上,其行为与 1.0.2h 中的一样。

关于linux - RedHat Linux 8 中的 openssl 证书验证失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56753484/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com