Skip to main content
Web DevAuth & SecurityDiagramBeginner

HTTPS & TLS Handshake

KO: HTTPS & TLS 핸드셰이크·EN: HTTPS & TLS Handshake·JA: HTTPS & TLSハンドシェイク·Transport Layer Security

The web encryption standard that authenticates servers via TLS certificates and negotiates symmetric session keys for confidential, tamper-proof HTTP traffic

Table of Contents

Structure Diagram

TLS 1.3 1-RTT Handshake & Encrypted HTTP Timeline
TLS 1.2 (2-RTT)4 steps
TLS 1.3 (1-RTT, Modern)3 steps
STEP 1TCP Handshake(22ms)
Quick Answer

What is HTTPS & TLS Handshake?

The web encryption standard that authenticates servers via TLS certificates and negotiates symmetric session keys for confidential, tamper-proof HTTP traffic. It is a core concept in Auth & Security within Web Dev.

Core Principles

HTTPS wraps plain HTTP inside TLS (Transport Layer Security) to guarantee confidentiality (no eavesdropping), integrity (no tampering), and authentication (verifying the server's identity via CA-signed certificates).

A TLS handshake combines asymmetric and symmetric cryptography: it verifies the server's certificate and uses Ephemeral Diffie-Hellman (ECDHE) to agree on a shared symmetric session key, then encrypts bulk HTTP traffic rapidly with AES-GCM or ChaCha20. Modern TLS 1.3 completes this in just 1-RTT and mandates Forward Secrecy.

Practical Takeaways

  • Enable HSTS: Sending Strict-Transport-Security: max-age=31536000; includeSubDomains forces browsers onto HTTPS automatically, preventing SSL-stripping downgrade attacks.
  • Automate certificate renewal: Expired TLS certificates cause instant total outages. Use automated ACME / Let's Encrypt, AWS ACM, or Cloudflare managed certs with expiration monitoring.
  • Disable legacy TLS versions: Turn off TLS 1.0/1.1 and weak ciphers on your load balancers; prioritize TLS 1.3 with HTTP/2 or HTTP/3.

Notable Examples

  • Mandatory Secure Context: Modern browser capabilities (Secure cookies, Service Workers, WebAuthn, Clipboard API) require HTTPS.
  • mTLS (Mutual TLS): Used in open banking and Zero-Trust service meshes where both client and server present certificates.