XAMPP - 阿帕奇与RSA证书和SSL错误 [英] XAMPP - Apache has error with RSA certificate and SSL

查看:6150
本文介绍了XAMPP - 阿帕奇与RSA证书和SSL错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我启动Apache似乎启动正确的,但它并没有真正发挥作用。

错误日志给我的消息:

[SSL:警告] [PID 3784:TID 256] AH01909:配置RSA证书www.example.com:443不包括匹配的服务器名的ID

下面是完整的错误日志:

  [星期三零八年八月二十○日:05:33.208723 2014年] [SSL:警告] [PID 3784:TID 256] AH01909:配置www.example.com:443 RSA证书不包括匹配的服务器名的ID
[星期三08年8月20日:05:33.746774 2014年] [SSL:警告] [PID 3784:TID 256] AH01909:配置www.example.com:443 RSA证书不包括匹配的服务器名的ID
[星期三08年8月20日:05:33.825871 2014年] [mpm_winnt:声明] [PID 3784:TID 256] AH00455:阿帕奇/ 2.4.7(Win32的)的OpenSSL / 1.0.1e PHP / 5.5.6配置 - 恢复正常运作
[星期三08年8月20日:05:33.825871 2014] [mpm_winnt:声明] [PID 3784:TID 256] AH00456:Apache的休息室VC11 Server内置:2013年11月21日20时13分01秒
[星期三08年8月20日:05:33.825871 2014年] [核心:声明] [PID 3784:TID 256] AH00094:命令行:C:\\\\ \\\\ XAMPP阿帕奇\\\\ \\\\斌-d httpd.exe C:/ XAMPP /阿帕奇
[星期三08年8月20日:05:33.830753 2014年] [mpm_winnt:声明] [PID 3784:TID 256] AH00418:家长:创建子进程4452
[星期三08年8月20日:05:35.148052 2014年] [SSL:警告] [PID 4452:TID 268] AH01909:配置www.example.com:443 RSA证书不包括匹配的服务器名的ID

这里是在httpd-ssl.conf中的一个片段:


 SSL虚拟主机上下文

 <虚拟主机_default_:443>


 虚拟主机一般安装

 的DocumentRootC:/ XAMPP / htdocs中
服务器名www.example.com:443
的ServerAdmin admin@example.com
错误日志C:/xampp/apache/logs/error.log
的TransferLogC:/xampp/apache/logs/access.log

做任何人知道什么是错?

这很奇怪,因为我的假期之前的一切都很顺利,当我回来的时候发生这个错误。


解决方案

  

[周三08年8月20日:05:33.208723 2014年] [SSL:警告] [PID 3784:TID 256] AH01909:配置www.example.com:443 RSA证书不包括匹配的服务器名的ID


这意味着有可能是服务器的名称 foo.example.com 但证书是 bar.example.com 而已。在这种情况下,虽然阿帕奇可能会尝试这种服务证书,访问时,浏览器旨意不接受他们的 https://foo.example.com ,例如。

When I start the apache it seems to start up correct, but it doesn't work really.

The error log gives me the message:

"[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"

Here is the complete error log:

[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

here is a snippet from the httpd-ssl.conf:

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

Do anyone know what is wrong?

It's strange, because a before my holiday everything went well and when I came back this error happened.

解决方案

[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

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.

这篇关于XAMPP - 阿帕奇与RSA证书和SSL错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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