Interview Prep/Networking/HTTP, TLS & Certificates

Walk through a TLS 1.3 handshake.

AdvancedConceptHTTP, TLS & Certificates
Answer

Client sends ClientHello with supported ciphers, a key share and SNI. Server replies with ServerHello (chosen cipher and its key share), then, already encrypted, its certificate chain, CertificateVerify and Finished. Client verifies the chain and sends Finished. Data flows after 1 RTT.

openssl s_client -connect example.com:443 -servername example.com -tls1_3

TLS 1.2 needs 2 RTTs and permits weaker ciphers; TLS 1.3 removes RSA key exchange and uses only forward-secret ciphers.

All Networking questions Roadmap: Networking for DevOps

More on HTTP, TLS & Certificates