Interview Prep/Networking/TLS and certificate errors

`SSL_ERROR_RX_RECORD_TOO_LONG` in Firefox for your HTTPS site.

BeginnerTroubleshootingTLS and certificate errors
Answer

Likely causes → Port 443 is serving plain HTTP: missing ssl on the nginx listen 443 line, or a load balancer forwards HTTPS to an HTTP port without terminating TLS.

Diagnose →

curl -v http://host:443/
grep -n 'listen' /etc/nginx/sites-enabled/*

Fix → listen 443 ssl; with certificate directives, or terminate TLS at the LB.

Prevent → Config tests in CI (nginx -t) plus an HTTPS smoke test after deploy.

All Networking questions Roadmap: Networking for DevOps

More on TLS and certificate errors