Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Why is there ERR_SSL_PROTOCOL_ERROR?

Shulou Source: shulou.com Published: 2022-06-01 05:46:13 10月04日 Update

This article mainly introduces why ERR_SSL_PROTOCOL_ERROR appears. The introduction in this article is very detailed and has certain reference value. Interested friends must read it!

Many webmasters may encounter an error code prompt of "ERR_SSL_PROTOCOL_ERROR" when installing and deploying SSL Certificates in Nginx. What causes this error code to appear? The following is a detailed answer for everyone.

This problem occurs, and it is estimated that most of it appears in the configuration of Nginx. The core reason for this problem is that your configuration does not enable SSL modules.

Clearly configuration code is written according to the online configuration, why error? This error is due to a problem with the Nginx version.

Prior to Nginx version 1.15, we configured HTTPS services as follows.

server;

listen 443;

server_name Web site domain name;

ssl on;

ssl_certificate SSL Certificates;

ssl_certificate_key SSL Certificates private key;

ssl_ciphers encryption algorithm;

ssl_protocols encryption protocol;

ssl_prefer_server_ciphers on;

However, if this configuration is wrong in Nginx version 1.15, the system will report an error when starting Nginx, because SSL ON configuration is no longer supported and needs to be deleted. However, when you delete that code, restart Nginx and you will find that the browser will appear " ERR_SSL_PROTOCOL_ERROR" error when visiting the page.

So in Nginx version 1.15, we should do the following configuration:

server

listen 443 ssl;

server_name Web site domain name;

ssl_certificate SSL Certificates;

ssl_certificate_key SSL Certificates private key;

ssl_ciphers encryption algorithm;

ssl_protocols encryption protocol;

ssl_prefer_server_ciphers on;

After restarting Nginx, our HTTPS service is normal.

The above is why ERR_SSL_PROTOCOL_ERROR appears all the content, thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!

Tags: Configuration certificate error code version encryption reason problem content domain name algorithm website service value interest buddy partner time more core Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Docker Shulou Tech Info OPPO Reno Shulou Technology