我正在使用Apache2处理Redhat6。
我在我的IIS7服务器上安装了* .example.com的通配证书。 我把它导出到PFX,把它移到Linux服务器上,把它转换成密钥并用openssl证书。
在重新启动httpd服务之前,我使用SSLconfiguration了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服务器,并没有提到实际的域名。 看起来它正在加载一个不同的证书。
有任何想法吗?
原来的问题是,我忘了在虚拟主机configuration文件中包含NameVirtualHost *:443指令,并将*:443绑定添加到现有虚拟主机。