CSNetworkingDiagramIntermediate
TLS Handshake
KO: TLS 핸드셰이크·EN: TLS Handshake·JA: TLSハンドシェイク·Transport Layer Security
The cryptographic negotiation before HTTPS traffic that authenticates the server via X.509 certificates and derives a shared symmetric session key via ECDHE
Table of Contents
Structure Diagram
TLS 1.3 Handshake (1-RTT Auth & Key Exchange → Encrypted Data)
Client3 steps
Server3 steps
STEP 11. ClientHello + KeyShare(30 step)
Quick Answer
What is TLS Handshake?
The cryptographic negotiation before HTTPS traffic that authenticates the server via X.509 certificates and derives a shared symmetric session key via ECDHE. It is a core concept in Networking within CS.
Core Principles
The TLS Handshake establishes confidentiality, integrity, and server authentication over untrusted networks before sending application data.
- Hybrid Cryptography: Asymmetric crypto is used only during setup—verifying the server's X.509 certificate and running ECDHE key exchange to derive a fast symmetric session key (AES-GCM / ChaCha20) for bulk traffic.
- TLS 1.3 Improvements: Cuts negotiation from 2 RTT to 1 RTT, drops weak ciphers, and mandates Perfect Forward Secrecy (PFS) so leaked private keys cannot decrypt past traffic.
Practical Takeaways
- Automate certificate renewal: Expired certificates cause instant outages—use Let's Encrypt with
cert-manageror managed cloud ACM certificates. - TLS Termination & mTLS: Terminate public HTTPS at the edge/LB, and use Mutual TLS (mTLS) inside zero-trust microservice meshes so both sides authenticate.
- SNI: Sends the target hostname in
ClientHelloso one IP can serve certificates for multiple domains.
Notable Examples
- HTTPS Web & APIs: Securing all modern browser, mobile, and server-to-server traffic.
- Service Meshes (Istio/Linkerd): Automated mTLS between microservices.