The TLS 1.3 Handshake at a Glance
The biggest change TLS 1.3 (RFC 8446) makes to the handshake is cutting out an entire round trip. In the 1.2 era, a full handshake took 2-RTT; 1.3 needs only 1-RTT:
Client Server
| |
|---- ClientHello (+ key_share) -------------->| Key negotiation starts in the very first packet
| |
|<--- ServerHello (+ key_share) ---------------|
|<--- {EncryptedExtensions} -------------------| ← Everything below is encrypted!
|<--- {Certificate} ---------------------------|
|<--- {CertificateVerify} ---------------------|
|<--- {Finished} ------------------------------|
| |
|---- {Finished} ----------------------------->| Application data can piggyback on this packet
|<======== Encrypted application data ========>|
Braces {} denote encrypted records. Note that every handshake message after ServerHello is encrypted — a stark difference from 1.2, and the reason many people see "nothing but gibberish after ServerHello."
Packet-by-Packet Breakdown
Packet 1: ClientHello
The only plaintext handshake message, and extremely informative. Key fields:
| Field | What to look at |
|---|---|
random | 32 random bytes; in 1.3 it doubles as downgrade protection |
legacy_session_id | Compatibility field, not actually used in 1.3 |
cipher_suites | Suites supported by the client; in 1.3 they are all AEAD |
extensions.supported_versions | 0x0304 present = the client supports TLS 1.3 |
extensions.key_share | The client sends its public key directly, saving a round trip |
extensions.server_name | The SNI, in plaintext — the first stop when analyzing HTTPS traffic |
extensions.supported_groups | Key exchange groups such as x25519 / secp256r1 |
Analysis tip: if supported_versions contains only 0x0303, the client does not support 1.3 at all — when troubleshooting "why isn't 1.3 being used," start here.
Packet 2: ServerHello
The server's reply, also in plaintext. Check three fields:
selected_version:0x0304= 1.3 confirmed;cipher_suite: the suite the server finally selected (e.g.,TLS_AES_128_GCM_SHA256);key_share: the server's public key. Both sides now hold the key material from which the handshake keys can be derived directly.
Packets 3-6: The Encrypted Extensions, Certificate, and Finished
After ServerHello, the server's EncryptedExtensions, Certificate, CertificateVerify, and Finished are all encrypted. But PcapDecoder can still parse them — application-layer decryption advances along the TLS state machine, and the handshake keys can be derived as soon as both sides have exchanged key_share values.
The Certificate message contains the full certificate chain (or a compressed certificate merged with OCSP); this is the input for certificate chain validation.
Packet 7: The Client's Finished
The client confirms that key derivation succeeded and sends Finished. From this packet onward, application data (the HTTP request) can piggyback along — that is where the secret of 1-RTT lies.
Analyzing in PcapDecoder
Step 1: Open the sample and filter for handshake packets. Once parsing completes, packets showing TLS in the protocol column are the handshake-related ones. Open any TLS packet: the detail view expands layer by layer — Record layer → Handshake layer → extensions — with field names mapping one-to-one to RFC 8446.
Step 2: Check the SNI and the session overview. PcapDecoder automatically extracts the SNI from ClientHello, and the session list tells you directly "which domain this TLS connection is visiting" — even though all subsequent traffic is encrypted.
Step 3: Validate the certificate chain. In the TLS session details, PcapDecoder displays the full certificate chain and verifies the signature at every link: is the chain complete, is anything expired, is anything self-signed. In testing on the MTA sample, all 50 certificates received a chain verdict, of which 25 passed verification.
Common Anomalies
| Symptom | Possible cause |
|---|---|
| RST immediately after ClientHello | A middlebox (firewall/WAF) blocking based on SNI |
| Only ClientHello retransmissions, no response | The server is unreachable, or an MTU issue is dropping subsequent packets |
| supported_versions contains only 0x0303 | The client is too old; negotiation fell back to TLS 1.2 |
| Certificate chain shown as "incomplete" | The server did not send the intermediate certificate; some clients will fail |
| Heavy TLS record fragmentation | Application data exceeds the record size limit — a normal phenomenon |
Next up: "QUIC Traffic Analysis: Capturing HTTP/3 and Approaches to Decryption".
