TLS Handshake & Certificates
Read this concept as one more decision made about a packet in flight. The widget below lets you change the inputs and watch the consequence instead of memorising the rule.
Why it matters
Encryption and identity checks add messages before application data can flow, and those messages are visible on the wire. Seeing the handshake order explains both the latency cost and what a forged network identity can and cannot do.
On the wire
The client sends a ClientHello with supported versions, cipher suites, and extensions including SNI and key share; the server replies with ServerHello, certificate, and key exchange messages. In TLS 1.3 the handshake is 1-RTT or 0-RTT, with most handshake messages encrypted after ServerHello.
When it breaks
A certificate chain that cannot be validated or a name mismatch aborts the handshake before any application data. An attacker on the local link who redirects TCP to itself still fails the certificate check, but a client misconfigured to skip validation loses that protection entirely.
Handshake stepper
Send each message in order; drop one to see a timeout-driven retransmission.
Each message costs roughly one delay
Each step carries state the next one depends on, so ordering matters.