Security

SSL Handshake

How the SSL/TLS handshake works, step by step: how your browser checks a server's certificate and agrees a secret key with it before any HTTPS data is sent.

  • 3 min read
  • 3 questions
  • +25 XP
Transcript

SSL handshake explained by cats. Kitty visits tuna .com. Before tuna is served, they need to trust each other. So they do an SSL handshake. A secure hello, a secret paw shake. This is how it works. Step one, Kitty says to tuna .com, I wanna talk securely.

Step two, the website sends a certificate. A proof it's really tuna .com. Signed by a trusted authority, Kitty. Kitty checks it. Valid, not expired, correct domain, all good. Step three, she locks the secret with tuna .com's lock. Only the website has the key.

Step four, the website unlocks it. Now they share the same key. A private meow channel. From now on, everything is encrypted. That's the SSL handshake. Verify, exchange keys, and build a secure tunnel so the tuna can stay protected.