Protocol versions
Which clients still need TLS 1.2?
Enable TLS 1.3, turn off TLS 1.0 and 1.1, and check your logs before retiring TLS 1.2.
Added Updated
Choosing a minimum version
A browser and a server need a TLS version in common before the browser can load a page. Raising the minimum can cut off older clients. Your access logs can help you decide when to make the change.
- TLS 1.0 and 1.1: off. They were formally deprecated in 2021 (RFC 8996).
- TLS 1.3: on, and preferred.
- TLS 1.2: keep it only if you can name a client that needs it. The IETF has frozen it (RFC 9851), which means it gets security fixes but no new features. It will never get post-quantum key exchange.
If you keep TLS 1.2, restrict which cipher suites clients can use.
How to check
This should fail:
openssl s_client -connect example.com:443 -tls1_1 </dev/null
Recent OpenSSL builds can't speak TLS 1.1 at all, and say no protocols available. That tells you about your laptop, not the server. A scanner such as SSL Labs tests from outside and doesn't have this problem.
If you see that, use weeb (get weeb). weeb probe tries each version and tells you which ones the server accepts:
weeb probe example.com --fix
To learn who still needs TLS 1.2, log the negotiated version for a couple of weeks. In nginx that's the $ssl_protocol variable.
How to fix it
TLS 1.3 only:
ssl_protocols TLSv1.3;
SSLProtocol -all +TLSv1.3
ssl-default-bind-options ssl-min-ver TLSv1.3
If you still need TLS 1.2, use ssl_protocols TLSv1.2 TLSv1.3; in nginx, SSLProtocol -all +TLSv1.2 +TLSv1.3 in Apache, or ssl-min-ver TLSv1.2 in HAProxy.
Sources
- RFC 8996: Deprecating TLS 1.0 and TLS 1.1 fetched
- RFC 9851: TLS 1.2 is in Feature Freeze fetched
- RFC 9325: Recommendations for Secure Use of TLS and DTLS fetched
- weeb: terminal HTTP client with a site probe fetched
Changelog
- Explained how client support affects the minimum version.
- First version.