A sane nginx TLS setup in 2026

2026-11-02

Most nginx TLS guides are copied from 2018. The defaults are much better now, so the job is mostly about removing things.

Keep ssl_protocols TLSv1.2 TLSv1.3;, let the client pick ciphers for 1.3, and stop maintaining long cipher lists for 1.2 unless you have an audit that asks for one.

The step people forget is the renewal hook. Certbot renews quietly; nginx keeps serving the old certificate until it is reloaded:

certbot renew --deploy-hook 'systemctl reload nginx'

Test the whole chain from outside with openssl s_client -connect host:443 -servername host once after every change.

← All articles