Apache 中的 SSL 证书更改(无法可靠地确定服务器的完全限定域名)
我的一台服务器上的 SSL 证书已过期,我从 godaddy 订购了一个新证书。 但如果我替换 server.crt ,链证书和 server.key (用于生成 csr 文件的密钥)最终会出现错误
无法可靠地确定 服务器的完全限定域名
注意:
- 我没有对任何配置文件进行任何更改。
- 我只是用新的证书和密钥替换了旧的证书和密钥。我检查了密钥 和证书相匹配。
- 我在 Windows 2003 服务器版本上使用 Apache 2.2。我正在重新启动服务器 改变后。
- 如果我恢复到旧证书,服务器启动正常。
可能是什么问题,我不知道 SSL 证书如何导致此错误。
An SSL certificate expired on one of my servers and I ordered a new one from godaddy.
But if i replace the server.crt , the chain certificate and the server.key (the key used to generate the csr file) end up getting the ERROR
Could not reliably determine the
server's fully qualified domain name
Note :
- I have not made any changes in any configuration files.
- I simply replaced the old certificates and key with the new one.I checked the key
andcertificate matched. - I am using Apache 2.2 on Windows 2003 server edition. I am restarting the server
after the change. - The server starts up fine if I revert back to the old certificates.
What could be the problem,I dont know how SSL certificates could result in this error.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您必须编辑 /etc/apache2/apache2.conf 并在文件末尾添加:
将您的服务器名称替换为 myserver。
另请检查此文件:
/etc/hosts
确保它与您的主机名匹配。还要确保首先列出完全限定的域名。即:
127.0.0.1 localhost.localdomain localhost
you have to edit the /etc/apache2/apache2.conf and, at the end of the file, add:
place your server name in place of myserver.
also check this file:
/etc/hosts
make sure it matches your hostname. also make sure the fully qualified domain name is listed first. i.e.:
127.0.0.1 localhost.localdomain localhost
问题在于组合
1.服务器.crt
2. server.key(用于生成用于创建证书的.csr的私钥。
3. ca.crt(链证书)
我验证了使用本文颁发的私钥 http://helpdesk.wisc.edu/middleware/page.php?id=4064 ,但我没有使用链证书。然而 Apache 中的错误确实含糊不清,导致了进一步的混乱。
The problem was in the combination of
1. server.crt
2. server.key (the private key used for generating the .csr used in creating the certificate.
3. ca.crt (the chain certificate)
I verified the private key issued using this article http://helpdesk.wisc.edu/middleware/page.php?id=4064 , But I was not using the chain certificate. However the error in Apache was really ambiguous which led to further confusion.