NETLEARN
Lesson 01Security

TLS 1.3 Handshake

HTTPS = HTTP inside a TLS tunnel. But before the tunnel exists, the browser has to know: is this really the server I meant, and not an intruder? The answer comes through a certificate and a key exchange.

Layer
Layer 5/6 · between Application & Transport
Reference
RFC 8446
Steps
6
Clientbrowser
Serversite + certificate
legendrequestresponsesecure / encryptedmessage in flight

Common misunderstandings

  • An expired certificate, or one issued for another domain, is the most common cause of TLS errors, not a bug in your code.

Key notes

Forward secrecy
Because the ECDHE keys are temporary, a leak of the server’s old private key cannot open a session that is already past.
Why 1-RTT?
TLS 1.3 merges the steps so the session key is ready after a single round-trip; TLS 1.2 needs two.
What is matched
The domain name in SNI has to appear in the certificate’s Subject Alternative Names.
0-RTT
A return visit can send data right away, but it is only safe for idempotent requests.