错误代码:ssl_error_rx_record_too_long

Modified on: Mon, 11 Nov 2019 22:40:02 +0800

我有以下设置的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 SSL作为SSL证书颁发机构。

最佳答案

解决。你需要在listen的末尾添加“ssl”。

listen       443 ssl;

相关问答

添加新评论