HTTPS & TLS

How the web secures communication using Transport Layer Security (TLS) to encrypt HTTP requests and responses.

Internet3 min readConcept 13 of 35

What it is

**HTTPS** (Hypertext Transfer Protocol Secure) is an extension of HTTP. It secures plain-text HTTP messages by encrypting them using a cryptographic protocol called **TLS** (Transport Layer Security). It ensures privacy, data integrity, and server authentication.

Why it matters

Without HTTPS, anyone sitting between you and the server (like your ISP or a hacker on public Wi-Fi) can read everything you send, including passwords and cookies. HTTPS is also mandatory for modern browser features (Geolocation, Service Workers, camera access) and heavily boosts SEO.

How it works

Before any HTTP data is sent, the client and server perform a **TLS Handshake**. They use asymmetric encryption (public/private keys and digital certificates) to securely agree on a shared, symmetric 'session key'. All subsequent HTTP traffic is encrypted using this fast session key.

Try it

Try sending a password in the Packet Interceptor below. Switch between HTTP and HTTPS to see what a 'Man in the Middle' hacker can actually read.

CLIENT
WIFI SNIFFER
SERVER

Protocol

TLS Handshake established. Session encrypted.

Data Payload

Check yourself

Pick an answer to lock it in, then read why. Getting one wrong is part of how it sticks.

  1. 1What underlying protocol provides the encryption and security for HTTPS?
  2. 2What happens if a secure `https://` website attempts to `fetch()` data from an insecure `http://` API?
  3. 3During the TLS Handshake, how does your browser know that it is actually talking to `google.com` and not an imposter?

Remember this

  • HTTPS is just HTTP wrapped inside a secure TLS tunnel.
  • TLS Handshake establishes the secure connection before any data is sent.
  • Browsers block 'Mixed Content' (loading HTTP assets on an HTTPS page).
  • Digital Certificates prove the server is actually who it claims to be (e.g., Google).

Done with this concept?

Mark it complete to track your progress. No login needed.