我正在尝试将Apache设置为使用私钥和证书来使用SSL。问题是Apache不知何故认为密钥和crt文件不匹配:
[Thu Aug 01 11:35:18 2013] [warn] RSA server certificate wildcard CommonName (CN) `*.-----.nl' does NOT match server name!?
[Thu Aug 01 11:35:18 2013] [debug] ssl_engine_init.c(846): Configuring RSA server private key
[Thu Aug 01 11:35:18
今天,我尝试将Apache配置为运行两个域,每个域都有自己的SSL证书。据我所知,只要我的Apache配置了最新版本的OpenSSL,SNI就支持这一点。我验证了它是:
[notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.7 with Suhosin-Patch mod_ssl/2.2.22 OpenSSL/1.0.1 configured -- resuming normal operations
我以为我已经成功地设置了第二个域和证书,但是当我尝试访问chrome中的第二个域时,我得到了以下错误:
You attempted to rea
对于xampp服务器,我创建了一个符号链接。
现在,当运行服务器时,我得到一个错误:
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
Error 403
localhost
Apache/2.4.7 (Unix) OpenSSL/1
当我试图在我的机器上访问我的网站时,我得到了Firefox标题中提到的错误。这是我得到的错误:
An error occurred during a connection to www.st.um.
SSL peer was unable to negotiate an acceptable set of security parameters.
(Error code: ssl_error_handshake_failure_alert)
这是我的虚拟主机配置:
<VirtualHost *:443>
ServerAdmin user1@st.um
ServerN
除了默认的SSL之外,我拥有的主机是entis.bla.nl和test.bla.nl,当进入test.bla.nl时,所服务的页面来自entis.bla.nl。如果我通过IP访问服务器,就会得到默认的SSL主机,这应该是您所期望的,如下所示。
wildcard NameVirtualHosts and _default_ servers:
*:443 is a NameVirtualHost
default server bla.colo.bla.net (/etc/apache2/sites-enabled/defaul