2014-04-04 107 views
0

正如我在我的Ubuntu Linux服务器中启用了default-ssl站点。当我打开谷歌浏览器的网站,我得到这个错误:无法访问HTTPS链接。获取ssl连接错误?

SSL connection error
Unable to make a secure connection to the server. This may be a problem with the server, or it may be requiring a client authentication certificate that you don't have.
Error 107 (net::ERR_SSL_PROTOCOL_ERROR): SSL protocol error.

与Firefox:

SSL received a record that exceeded the maximum permissible length.
(Error code: ssl_error_rx_record_too_long)

,因为我有检查日志的Apache2的文件。这不能不了Suhosin路径mod_ssl的

[Fri Apr 04 16:29:33 2014] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.9 with Suhosin-Patch mod_ssl/2.2.22 OpenSSL/1.0.1 mod_perl/2.0.5 Perl/v5.14.2 configured -- resuming normal operations 

仅供参考, 当我运行命令 “的apachectl -S” 如果我跑 “的apachectl configtest” 我得到这个错误

/usr/sbin/apachectl: 87: ulimit: error setting limit (Operation not permitted) 
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName 
VirtualHost configuration: 
wildcard NameVirtualHosts and _default_ servers: 
*:443     127.0.1.1 (/etc/apache2/sites-enabled/default-ssl:2) 
*:80     is a NameVirtualHost 
     default server 127.0.1.1 (/etc/apache2/sites-enabled/000-default:1) 
     port 80 namevhost 127.0.1.1 (/etc/apache2/sites-enabled/000-default:1) 
Syntax OK 

​​

编辑1
我得到下面的错误也

Invalid method in request \x16\x03\x01 

请帮助我。

+0

In chrome它说:SSL连接错误 无法建立到服务器的安全连接。这可能是服务器的问题,或者它可能需要您没有的客户端身份验证证书。 错误107(net :: ERR_SSL_PROTOCOL_ERROR):SSL协议错误。 和在Firefox中: SSL收到的记录超出了允许的最大长度。 (错误代码:ssl_error_rx_record_too_long) – Code

回答

0

好的,下面是解决方案。

正如我的网域(example.com)配置了端口转发,这是映射到我的本地服务器 要通过example.com
正是这样进入我的本地服务器:

http://example.com:1234/project_name 

和我是我的配置为这是作为访问

https://192.168.**.***/project_name 

HTTPS
本地服务器,但它给错误(INV在请求alid方法\ X16 \ X03 \ X01)下面URL

https://example.com:1234/project_name 

因为example.com没有配置用于SSL。

0

看起来您正在端口443上设置HTTP服务器,例如通常用于HTTPS(HTTP包装在SSL连接中)的端口上。您在服务器端获得的Invalid method in request \x16\x03\x01是来自客户端的SSL握手的开始。并且因为客户端没有从服务器得到预期的回答,所以抱怨。

我不知道在此设置你的意图是什么,但

    如果您只想HTTP使用保持监听端口80和删除端口443
  • 的一个,如果你想
  • 设置HTTPS你需要证书等(这里有足够的文档)