Explain what happens in a TLS 1.3 handshake in a few sentences.
BeginnerScenarioTLS, HTTP & Application Layer
Answer
Situation read → Interviewers want the sequence and what it achieves, not the byte layout.
What I'd do →
- Client sends ClientHello with supported ciphers, key share and SNI (the hostname)
- Server replies with ServerHello, its key share, certificate and a signed Finished message
- Both derive session keys from the key exchange (ECDHE), so the rest is encrypted
- Client validates the certificate chain, hostname and expiry, then sends Finished
- Inspect with
openssl s_client -connect example.com:443 -servername example.com -tls1_3
Why → TLS 1.3 needs one round trip and gives forward secrecy by default.
Interview tip → Mention that TLS 1.2 needs two round trips and TLS 1.3 removed weak ciphers.
More on TLS, HTTP & Application Layer
Your site must redirect all HTTP traffic to HTTPS. How do you do it?BeginnerWhat is the difference between 4xx and 5xx errors, and which ones do you see most in networking problems?BeginnerHTTP/1.1, HTTP/2 and HTTP/3: what changed and why does it matter in operations?BeginnerThe browser console shows a CORS error when your frontend calls your API. What is it and how do you fix it?BeginnerHow do you check which certificate a server presents and when it expires?BeginnerWhat is the difference between HTTP keep-alive and a new TCP connection per request?Beginner