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

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

问题描述

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

I'm using XAMPP and started Apache but I cannot access my site over HTTPS.

我收到以下错误;

[Wed Aug 20 08:05:33.208723 2014] [ssl:warn] [pid 3784:tid 256] AH01909:为 www.example.com:443 配置的 RSA 证书不包含与服务器名称匹配的 ID[Wed Aug 20 08:05:33.746774 2014] [ssl:warn] [pid 3784:tid 256] AH01909:为 www.example.com:443 配置的 RSA 证书不包含与服务器名称匹配的 ID[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 配置——恢复正常操作[Wed Aug 20 08:05:33.825871 2014] [mpm_winnt:notice] [pid 3784:tid 256] AH00456:Apache Lounge VC11 服务器构建时间:2013 年 11 月 21 日 20:13:01[Wed Aug 20 08:05:33.825871 2014] [core:notice] [pid 3784:tid 256] AH00094:命令行:'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:父进程:创建子进程 4452[Wed Aug 20 08:05:35.148052 2014] [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?

推荐答案

Apache (httpd.conf) 中使用的服务器名称必须与 Apache (httpd-ssl.conf) 中的服务器名称相同,例如在 Apache (httpd.conf) ServerName localhost:8080 然后在 apache (httpd-ssl.conf) 应该是这样 ServerName www.example.com:8080

server name used in Apache (httpd.conf) must be the same as the server name in apache (httpd-ssl.conf) e.g. in Apache (httpd.conf) ServerName localhost:8080 then in apache (httpd-ssl.conf) should be like this ServerName www.example.com:8080

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

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