NGINX Reverse Proxy Help - Error code: SSL_ERROR_RX_RECORD_TOO_LONG
-
I ran the following commands:
sudo mkdir -p /etc/ssl/certs /etc/ssl/private
sudo openssl req -x509 -batch -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/kibana-access.key -out /etc/ssl/certs/kibana-access.pem
Here is my config file:
server { listen 80; listen [::]:80; return 301 https://$host$request_uri; } server { listen 443 default_server; listen [::]:443; ssl on; ssl_certificate /etc/ssl/certs/kibana-access.pem; ssl_certificate_key /etc/ssl/private/kibana-access.key; access_log /var/log/nginx/nginx.access.log; error_log /var/log/nginx/nginx.error.log; location / { auth_basic "Restricted"; auth_basic_user_file /etc/nginx/conf.d/kibana.htpasswd; proxy_pass http://kibana-server-ip:5601/; } }
-
In the server block, add
ssl_protocols TLSv1.2;
and reload nginx -
Also try accessing the site in Incognito/Private mode.
-
@black3dynamite said in NGINX Reverse Proxy Help - Error code: SSL_ERROR_RX_RECORD_TOO_LONG:
In the server block, add
ssl_protocols TLSv1.2;
and reload nginxno joy. Incognito mode did not work either.