我目前正在安装来自Cheapssls.com的Comodo证书。I‘我得到了以下错误:
SSL库错误: 185073780错误:0B080074:x 509证书routines:X509_check_private_key:key值不匹配
我100%肯定私钥和CSR是同一代人
我使用follinwg语法:
SSLEngine on
SSLCertificateKeyFile /usr/local/apache/conf/x-x-nl-new.key
SSLCertificateFile /usr/local/apache/conf/x_x_nl.crt
SSLCertificateChainFile /usr/local/apache/conf/x_x_nl.ca-bundle我的观点是正确的。
有什么建议吗?
发布于 2013-08-16 12:34:57
你的钥匙是PEM格式的吗?
这是apache需要的:ssl.html#SSLCertificateKeyFile
PEM是一个Base64编码的证书,包含在“-开始证书-”和“-最终证书-”之间。
您可以使用一个简单的文件编辑器来检查它。
Edit1:
您也可以检查模数是否是OK,这使得Cert模数和键模数之间的差别使用这个命令。
# Change KEY and CERT by your file name
diff <(openssl rsa -in KEY -modulus -noout) <(openssl x509 -in CERT -modulus -noout)你不应该有任何输出,如果你有一些,钥匙和证书不匹配。
https://stackoverflow.com/questions/18272108
复制相似问题