【发布时间】:2014-10-13 10:24:56
【问题描述】:
我正在使用 XAMPP 并启动了 Apache,但我无法通过 HTTPS 访问我的网站。
我收到以下错误;
[2014 年 8 月 20 日星期三 08:05:33.208723] [ssl:warn] [pid 3784:tid 256] AH01909:为 www.example.com:443 配置的 RSA 证书不包含与服务器名称匹配的 ID [2014 年 8 月 20 日星期三 08:05:33.746774] [ssl:warn] [pid 3784:tid 256] AH01909:为 www.example.com:443 配置的 RSA 证书不包含与服务器名称匹配的 ID [2014 年 8 月 20 日星期三 08:05:33.825871] [mpm_winnt:notice] [pid 3784:tid 256] AH00455: Apache/2.4.7 (Win32) OpenSSL/1.0.1e PHP/5.5.6 已配置 -- 恢复正常操作 [2014 年 8 月 20 日星期三 08:05:33.825871] [mpm_winnt:notice] [pid 3784:tid 256] AH00456:Apache Lounge VC11 服务器建成时间:2013 年 11 月 21 日 20:13:01 [2014 年 8 月 20 日星期三 08:05:33.825871] [core:notice] [pid 3784:tid 256] AH00094:命令行:'c:\xampp\apache\bin\httpd.exe -d C:/xampp/apache' [2014 年 8 月 20 日星期三 08:05:33.830753] [mpm_winnt:notice] [pid 3784:tid 256] AH00418: Parent: Created child process 4452 [2014 年 8 月 20 日星期三 08:05:35.148052] [ssl:warn] [pid 4452:tid 268] AH01909:为 www.example.com:443 配置的 RSA 证书不包含与服务器名称匹配的 ID
以下是我的httpd-ssl.conf 文件中的 sn-p:
# SSL Virtual Host Context
<VirtualHost _default_:443>
# General setup for the virtual host
DocumentRoot "C:/xampp/htdocs"
ServerName www.example.com:443
ServerAdmin admin@example.com
ErrorLog "C:/xampp/apache/logs/error.log"
TransferLog "C:/xampp/apache/logs/access.log"
</VirtualHost>
我做错了什么,我该如何解决?
【问题讨论】:
-
您是否测试过您的网络中的端口 443 是否打开?通过 telnet 进行检查。对我来说,这只是一个警告而不是错误。
openssl x509 -in server.crt -noout -subject应该返回证书的 CN