1. What is SSL/TLS?


2. How TLS Works (Simplified Handshake)

When you visit https://example.com:

  1. Client Hello → Browser says “I want to connect securely” (offers TLS versions, ciphers).
  2. Server Hello → Server replies with chosen TLS version, cipher suite, and sends its certificate.
  3. Certificate Validation → Browser checks if certificate is valid (CA-signed, not expired, domain matches).
  4. Key Exchange → Client and server securely agree on session keys (using RSA, Diffie-Hellman, or ECDHE).
  5. Session Established → Both sides use the shared secret key to encrypt communication.

📌 After this → All HTTP data becomes HTTPS (encrypted).


3. TLS vs SSL Versions