A TLS 1.3 Handshake You Can Step Through
Your program builds a TLS client and a TLS server from the test chain, joins them in this tab's memory and lets them take turns. Count the flights, split them into records, change the name and the groups, read the messages and the key log labels, send application data, and see why a finished handshake is not a verified one. Nothing leaves the tab.
Flight by Flight
A handshake of two test endpoints in this tab's memory, taken one flight at a time: how many, how they split into records, how the name changes the first, and when a second ClientHello is needed.
- Four Flights
one turn, one flight, in this tab's memory
- A Flight Is Several Records
split a flight by its 5-byte record headers
- The ClientHello Grows With the Name
the flight's size is its records' sizes added up
- A Second ClientHello
a negotiation, not a failure: six flights
What Both Ends Know
What each end can tell afterwards: the messages it saw, the secrets it logged, the application data it protects, and the difference between a finished handshake and a verified one.
- The Messages, in Order
read the message names from an end's own trace
- The Key Log Has Five Labels
count the key log's lines and labels, never its secrets
- Application Data After the Handshake
a text becomes one record, 22 bytes longer
- Done Is Not Verified
seven answers, seven different facts