gpt4 book ai didi

mysql - OpenSSL - 0 深度查找时出现错误 18 :self signed certificate

转载 作者:IT老高 更新时间:2023-10-28 23:47:05 27 4
gpt4 key购买 nike

我正在尝试创建一个 SSL 证书以用于 MySQL,如下所述:http://dev.mysql.com/doc/refman/5.5/en/creating-ssl-certs.html

验证证书时出现以下错误

  # openssl verify -CAfile ca-cert.pem server-cert.pem client-cert.pem
server-cert.pem: C = IN, ST = KERALA, L = COCHIN, O = ABCD, OU = OPERATIONAL, CN = SATHISH, emailAddress = sathish@abcd.com
error 18 at 0 depth lookup:self signed certificate
OK
client-cert.pem: C = IN, ST = KERALA, L = COCHIN, O = ABCD, OU = OPERATIONAL, CN = sathish, emailAddress = sathish@abcd.com
error 18 at 0 depth lookup:self signed certificate
OK

有人可以根据上面链接中的文档帮助我生成 key 而不会出现任何错误。

最佳答案

我认为您错过了这部分说明:

Whatever method you use to generate the certificate and key files, the Common Name value used for the server and client certificates/keys must each differ from the Common Name value used for the CA certificate. Otherwise, the certificate and key files will not work for servers compiled using OpenSSL.

当 OpenSSL 提示您输入每个证书的通用名称时,请使用不同的名称。

关于mysql - OpenSSL - 0 深度查找时出现错误 18 :self signed certificate,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19726138/

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