TLS Cipher Suites
You'll learn how TLS negotiates the specific cryptographic algorithms used to secure your connection.
What Is a Cipher Suite?
A cipher suite is a bundle of cryptographic algorithms that work together to establish a secure TLS connection. Think of it like ordering a combo meal at a restaurant—you're not choosing each component individually; you're selecting a pre-defined package that includes everything you need.
When a client and server perform the TLS handshake (which you learned in lesson 1531), they don't just agree to "use encryption"—they must agree on exactly which algorithms to use for different security tasks.
Components of a Cipher Suite
A typical cipher suite specifies four key elements:
- Key Exchange Algorithm – How the client and server will agree on shared secret keys (e.g., RSA, Diffie-Hellman)
- Authentication Method – How the server proves its identity (e.g., RSA, ECDSA)
- Encryption Algorithm – What symmetric cipher encrypts the data (e.g., AES-128, AES-256)
- Message Authentication Code (MAC) – How to verify data integrity (e.g., SHA-256)
Cipher Suite Negotiation
During the TLS handshake:
- The client sends a list of cipher suites it supports (ordered by preference)
- The server picks one from the list that it also supports
- All subsequent encryption uses that chosen suite
Example cipher suite name: TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
- ECDHE = key exchange method
- RSA = authentication
- AES_256_GCM = encryption algorithm
- SHA384 = hashing for integrity
Key Takeaway: Cipher suites define the complete cryptographic toolkit for a TLS session, negotiated during the handshake to ensure both parties use compatible, secure algorithms.