SSL:错误:0B080074:x509证书例程:X509_check_private_key:键值不匹配 [英] SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
问题描述
我无法设置SSL。我有谷歌,我发现了一些解决方案,但没有一个为我工作。我需要一些帮助...
I'm not able to setup SSL. I've Googled and I found a few solutions but none of them worked for me. I need some help please...
这是我尝试重新启动nginx时出现的错误:
Here's the error I get when I attempt to restart nginx:
root@s17925268:~# service nginx restart
Restarting nginx: nginx: [emerg] SSL_CTX_use_PrivateKey_file("/etc/nginx/conf.d/ssl/ssl.key") failed (SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch)
nginx: configuration file /etc/nginx/nginx.conf test failed
我的证书来自StartSSL,有效期为1年。
My certificate is from StartSSL and is valid for 1 year.
这是我测试的:
- 证书和私钥没有尾随空格。
- 我没有使用默认的server.key文件
- 我检查了nginx.conf和
指令指向正确的私钥和证书。
我也检查了模数,我得到一个不同的密钥和证书的模数。
I also checked the modulus, and I get a different modulus for both key and certificate.
感谢您的帮助。 :
推荐答案
我有一个MD5哈希值, p>
I got a MD5 hash with different results for both key and certificate.
这就是一切。您的密钥和凭证之间不一致。
This says it all. You have a mismatch between your key and certificate.
模数应该匹配。请确保您有正确的密钥。
The modulus should match. Make sure you have correct key.
这篇关于SSL:错误:0B080074:x509证书例程:X509_check_private_key:键值不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!