Cipher suites
TLS 1.2 can still negotiate obsolete encryption.
Keep the TLS 1.3 defaults. If clients need TLS 1.2, narrow its cipher list.
Added Updated
What to do
A cipher suite specifies how a connection protects data in transit. The client and server choose one they both support, so even a rarely used suite matters if your server still accepts it.
TLS 1.3. Keep the defaults. It has three mainstream suites, AES-128-GCM, AES-256-GCM and ChaCha20-Poly1305, and all of them are fine. Reordering them is not worth your time unless a compliance rule says so.
TLS 1.2: allow only suites that start with ECDHE and use AES-GCM or ChaCha20-Poly1305. That removes three old problems at once:
- Static RSA key exchange (suites named
TLS_RSA_…). If the server key is ever stolen, all recorded traffic can be decrypted. - CBC mode. A long history of padding attacks.
- Finite-field DHE. Slow, and easy to set up with weak parameters.
How to check
Ask the server for only the bad ones:
openssl s_client -connect example.com:443 -tls1_2 -cipher 'kRSA:3DES:RC4:@SECLEVEL=0' </dev/null
A handshake failure is the result you want. If it prints a Cipher is line, the server accepted a weak suite.
Or with weeb (get weeb):
weeb probe example.com --fix
The Weak ciphers and Forward secrecy lines tell you whether the server accepts RC4, 3DES or static RSA.
How to fix it
For TLS 1.2 in nginx:
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305;
ssl_prefer_server_ciphers off;
The same list works for Apache's SSLCipherSuite and HAProxy's ssl-default-bind-ciphers.
The simplest fix is to turn TLS 1.2 off, which makes this page not apply to you.
Sources
- RFC 9325: Recommendations for Secure Use of TLS and DTLS fetched
- OWASP Transport Layer Security Cheat Sheet fetched
- TLS configuration guidelines (formerly Mozilla Server Side TLS) fetched
- weeb: terminal HTTP client with a site probe fetched
Changelog
- Explained what a cipher suite controls.
- First version.