我正在和Redhat6合作Apache2。
我在我的*.example.com服务器上安装了一个*.example.com通配符证书。我将其导出到PFX,将其移动到Linux服务器,并使用openssl将其转换为key和cert。
在重新启动httpd服务之前,我使用SSL配置了VirtualHost,如下所示:
<IfModule mod_ssl.c>
SSLEngine on
SSLCertificateChainFile /etc/ssl/certs/ca-bundle.crt
SSLCertificateFile /etc/ssl/certs/example.cer
SSLCertificateKeyFile /etc/ssl/certs/example.key
</IfModule>当我尝试浏览网站时,会发现以下错误:
The security certificate presented by this website was not issued by a trusted certificate authority.
The security certificate presented by this website was issued for a different website's address.当我从Chrome查看证书信息时,它说发行人是Linux服务器,没有提到实际的域名。看起来它正在加载一个完全不同的证书。
有什么想法吗?
发布于 2013-10-05 05:01:10
问题是,我忘记在虚拟主机配置文件中包含NameVirtualHost *:443指令,以及将*:443绑定添加到现有虚拟主机。
https://serverfault.com/questions/543934
复制相似问题