Skip to main content
InterviewHubPRO
Section Overview
Q12

Question 12 of 50

Part 2: Core Architecture & Implementation (Mid-Level)

24%
Networking & Protocols (50 Qs)•Part 2: Core Architecture & Implementation (Mid-Level)

How does the TLS 1.3 Handshake work and how does it compare to TLS 1.2?

senior LevelCode ExampleSystem Design

In Simple Words: TLS (Transport Layer Security) encrypts communication over HTTPS:

  • TLS 1.2 (Legacy): Required 2 full round-trips (2-RTT) to negotiate cipher suites and exchange keys before sending application data.
  • TLS 1.3 (Modern Standard):
    • Reduced to 1 single round-trip (1-RTT) by combining key exchange (Diffie-Hellman) with the ClientHello.
    • Supports 0-RTT (Zero Round-Trip Time) for returning visitors using pre-shared keys!
    • Removed insecure, obsolete cipher suites (MD5, SHA-1, RC4, DES).
text
TLS 1.3 1-RTT Handshake:
[Client] ─── ClientHello + Key Share ────────► [Server]
[Client] ◄── ServerHello + Key Share + Cert ── [Server]
[Encrypted HTTPS Data Exchange Begins!]