错误代码:ssl_error_rx_record_too_long

错误代码:ssl_error_rx_record_too_long

我的 nginx 设置如下:

 server {
        listen       80;
        server_name  site.com www.site.com;
        root /home/site/public_html;

        listen       443;
        #server_name  site.com www.site.com;
        #root /home/site/public_html;
        ssl_certificate      /root/site.pem;
        ssl_certificate_key  /root/site.key;

但是,当我查看 SSL 连接时,我得到:

An error occurred during a connection to grewpler.com.

SSL received a record that exceeded the maximum permissible length.

(Error code: ssl_error_rx_record_too_long)

我正在使用TrustWave Premium SSLSSL 证书颁发机构。

答案1

已解决。您需要在监听的末尾添加“ssl”。

listen       443 ssl;

答案2

当我尝试通过 SSL(https)访问网站时,浏览器中出现此错误,但实际上该端口上正在运行正常的 HTTP 服务器。

相关内容