TLS 1.3 Handshake Explained: How HTTPS Connections Are Secured
Step through the TLS 1.3 handshake: key exchange, certificates, 1-RTT and 0-RTT, cipher suites, forward secrecy and how to check your server configuration.
Published December 6, 2026
Every HTTPS request starts with a TLS handshake that agrees on keys, authenticates the server and sets up encryption. TLS 1.3, standardised in 2018, made that handshake faster (one round trip instead of two) and safer by removing obsolete algorithms. Knowing how it works helps you debug certificate errors, tune performance and configure servers correctly.
The concept
In TLS 1.3 the client sends a ClientHello containing supported cipher suites and, crucially, key shares (ephemeral Diffie-Hellman public keys, typically X25519, and increasingly hybrid post-quantum key exchange in modern browsers). The server picks parameters, sends its own key share, and both sides derive the same session keys. Everything after the ServerHello, including the server's certificate, is already encrypted.
The server proves its identity by sending its certificate chain and a signature over the handshake transcript made with its private key; the client validates the chain against trusted root CAs and checks the hostname. Because key exchange is always ephemeral, TLS 1.3 provides forward secrecy: stealing the server's private key later does not decrypt past sessions. Resumed connections can use 0-RTT early data, which is fast but replayable, so it should be limited to idempotent requests.
The 1-RTT handshake
TLS 1.2 vs 1.3
| TLS 1.2 | TLS 1.3 | |
|---|---|---|
| Round trips (full handshake) | 2 | 1 |
| Resumption | Session IDs/tickets | PSK, optional 0-RTT |
| Key exchange | RSA or (EC)DHE | (EC)DHE only (forward secrecy always) |
| Cipher suites | Many, including weak ones | Five AEAD suites (AES-GCM, ChaCha20-Poly1305) |
| Certificate encrypted | No | Yes |
Why 1.3 is faster
Practical examples
Inspect a handshake with openssl
See the protocol, cipher and certificate chain.
openssl s_client -connect example.com:443 -servername example.com -tls1_3 </dev/null 2>/dev/null \
| grep -E 'Protocol|Cipher|subject=|issuer='Modern NGINX TLS settings
TLS 1.2 + 1.3 only, server preference off for 1.3.
ssl_protocols TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers off;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 1d;
ssl_stapling on;
ssl_stapling_verify on;Check certificate expiry quickly
Expired certificates are still a top cause of outages.
echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | openssl x509 -noout -datesCommon mistakes
- Leaving TLS 1.0/1.1 enabled for legacy clients nobody uses.
- Missing intermediate certificates in the chain, breaking some clients.
- Allowing 0-RTT for non-idempotent requests like POST /payments.
- Manual certificate renewal that eventually gets forgotten.
Key takeaways
- TLS 1.3 completes the handshake in one round trip.
- Ephemeral key exchange gives forward secrecy by default.
- Certificates authenticate the server; the client validates chain and hostname.
- Disable old protocols and automate certificate renewal.
FAQ
What is SNI?
Server Name Indication: the hostname sent in the ClientHello so one IP can serve certificates for many domains.
Is TLS 1.3 required?
TLS 1.2 with modern ciphers is still acceptable; enable 1.3 for performance and security, and disable 1.0/1.1.
What is post-quantum key exchange?
Hybrid key exchanges (combining classical X25519 with a post-quantum algorithm such as ML-KEM) protect today's traffic against future quantum decryption; major browsers and CDNs have begun deploying them.