Networking & Protocols (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)
TLS 1.3 Handshake vs TLS 1.2: 1-RTT connection setup and modern cryptographic security.
senior LevelSecurity & AuthData Structures
In Simple Words:
- TLS 1.2 (Legacy): Required 2 full round-trips (2-RTT) between client and server just to negotiate keys and certificates before sending HTTP data. Supported outdated, insecure ciphers (RSA static key exchange, CBC mode ciphers).
- TLS 1.3:
- Slashes handshake latency to 1 round-trip (1-RTT) by combining key exchange parameters with the initial
ClientHello. - Strict Forward Secrecy: Enforces ephemeral Diffie-Hellman (
ECDHE). If a server's private key is stolen 5 years in the future, past recorded traffic can never be decrypted!
- Slashes handshake latency to 1 round-trip (1-RTT) by combining key exchange parameters with the initial