# Cipher suites: TLS 1.2 can still negotiate obsolete encryption.

- Rating: This quarter (Schedule the change in your next round of maintenance.)
- Action: Keep the TLS 1.3 defaults. If clients need TLS 1.2, narrow its cipher list.
- Added: 2026-12-03
- Updated: 2026-12-03
- Web page: https://tldrtls.com/cipher-suites/

## 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:

```sh
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](https://tldrtls.com/checking-tools.md)):

```sh
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:

```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](https://tldrtls.com/protocol-versions.md), which makes this page not apply to you.

## Sources

1. [RFC 9325: Recommendations for Secure Use of TLS and DTLS](https://www.rfc-editor.org/rfc/rfc9325.html) (fetched 2026-12-03)
2. [OWASP Transport Layer Security Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Security_Cheat_Sheet.html) (fetched 2026-12-03)
3. [TLS configuration guidelines (formerly Mozilla Server Side TLS)](https://docs.tlsref.org/) (fetched 2026-12-03)
4. [weeb: terminal HTTP client with a site probe](https://github.com/klobucar/weeb) (fetched 2026-12-03)

## Changelog

- 2026-12-03: Explained what a cipher suite controls.
- 2026-12-03: First version.
