错误代码:ssl_error_rx_record_too_long

Tif*_*ker 40 linux ssl nginx ssl-certificate certificate-authority

我有具有以下设置的 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;
Run Code Online (Sandbox Code Playgroud)

但是,当我查看 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)
Run Code Online (Sandbox Code Playgroud)

TrustWave Premium SSL用作 SSL 证书颁发机构。

Tif*_*ker 69

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

listen       443 ssl;
Run Code Online (Sandbox Code Playgroud)