证书不包含与服务器名称匹配的ID [英] Certificate does NOT include an ID which matches the server name

查看:922
本文介绍了证书不包含与服务器名称匹配的ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用XAMPP并启动了Apache,但无法通过HTTPS访问我的网站.

I'm using XAMPP and started Apache but I cannot access my site over 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:父级:已创建子进程4452 [2014年8月20日星期三08:05:35.148052] [ssl:warn] [pid 4452:tid 268] AH01909:为www.example.com:443配置的RSA证书不包含与服务器名称匹配的ID

[Wed Aug 20 08:05:33.208723 2014] [ssl:warn] [pid 3784:tid 256] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name [Wed Aug 20 08:05:33.746774 2014] [ssl:warn] [pid 3784:tid 256] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name [Wed Aug 20 08:05:33.825871 2014] [mpm_winnt:notice] [pid 3784:tid 256] AH00455: Apache/2.4.7 (Win32) OpenSSL/1.0.1e PHP/5.5.6 configured -- resuming normal operations [Wed Aug 20 08:05:33.825871 2014] [mpm_winnt:notice] [pid 3784:tid 256] AH00456: Apache Lounge VC11 Server built: Nov 21 2013 20:13:01 [Wed Aug 20 08:05:33.825871 2014] [core:notice] [pid 3784:tid 256] AH00094: Command line: 'c:\xampp\apache\bin\httpd.exe -d C:/xampp/apache' [Wed Aug 20 08:05:33.830753 2014] [mpm_winnt:notice] [pid 3784:tid 256] AH00418: Parent: Created child process 4452 [Wed Aug 20 08:05:35.148052 2014] [ssl:warn] [pid 4452:tid 268] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name

以下是我的httpd-ssl.conf文件中的摘录:

Below is a snippet from my httpd-ssl.conf file:

# 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>

我在做什么错,我该如何解决?

What am I doing wrong and how can I fix it?

推荐答案

[2014年8月20日星期三08:05:33.208723] [ssl:warn] [pid 3784:tid 256] AH01909:为www.example.com:443配置的RSA证书不包含与服务器名称匹配的ID

[Wed Aug 20 08:05:33.208723 2014] [ssl:warn] [pid 3784:tid 256] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name

这表示服务器名称可能为foo.example.com,但是证书仅用于bar.example.com.在这种情况下,虽然Apache可能会尝试提供此类证书,但是例如,访问https://foo.example.com时浏览器将不会接受它们.

This means there might be a server name of foo.example.com but the certificate is for bar.example.com only. In that situation, while Apache might try to serve such certificate, the browser s will not accept them when accessing https://foo.example.com, for instance.

这篇关于证书不包含与服务器名称匹配的ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆