01 / 20

TLS/HTTPS
Securing the Web

Understand how Transport Layer Security and HTTPS protect data in transit: what they guard against, and what still remains your responsibility.

Cyber Security

What Is HTTPS?

HTTPS stands for HyperText Transfer Protocol Secure. It is the secure version of HTTP: the protocol your browser uses to load every web page. The "S" means the connection is encrypted using TLS (Transport Layer Security).

What Is TLS?

Transport Layer Security (TLS) is a cryptographic protocol that provides three core guarantees for any data traveling between two computers over a network:

Confidentiality
Data is encrypted so eavesdroppers cannot read it in transit.
Integrity
Data cannot be modified or tampered with without detection.
Authentication
You can verify you are talking to the real server, not an impostor.

Why Does TLS Matter?

Without TLS, anyone sitting between you and the server: your ISP, a hacker on public Wi-Fi, or a rogue router: can read, modify, or steal everything you send, including passwords, credit card numbers, and private messages.

The TLS Handshake

Client Server 1. ClientHello (supported ciphers, random) 2. ServerHello + Certificate 3. Key Exchange (pre-master secret) 4. Both derive session keys 5. Encrypted communication begins

Certificates and Trust

How does your browser know a server is genuine? The server presents a digital certificate issued by a trusted Certificate Authority (CA). The certificate contains the server's public key and is digitally signed by the CA.

Certificate Authority Server Certificate Public key + CA signature Your Browser Trusted CA list Signs Presents cert Pre-trusted

HTTP vs HTTPS

HTTP HTTPS
Encryption None TLS encryption
Port 80 443
Eavesdropping Trivial Prevented
Tampering Undetected Detected
Server identity Unverified Certificate verified
URL in address bar http:// https:// + padlock

What TLS Protects

1
Data in transit: passwords, form data, cookies, and page content are encrypted between your browser and the server.
2
Server authenticity: certificates prove you are talking to the real website, not an impostor performing a man-in-the-middle attack.
3
Data integrity: any modification of data in transit (injection of ads, malware, or altered content) is detected and rejected.

What TLS Does NOT Protect

1
Data at rest: once data arrives at the server, TLS is done. If the server's database is breached, TLS cannot help.
2
Malicious content: a phishing site can have a valid certificate and padlock. HTTPS does not mean the website is safe or trustworthy.
3
Metadata: your ISP can still see which domain you visit (via DNS and SNI), even if they cannot read the content.
4
Client-side threats: keyloggers, malware on your device, or browser extensions can capture data before TLS encrypts it.

How to Verify a Secure Connection

1
Check the URL: ensure it begins with https://, not http://.
2
Look for the padlock: a padlock icon in the address bar confirms an encrypted connection.
3
Click the padlock: view the certificate details: who issued it, when it expires, and the domain it covers.
4
Watch for warnings: if your browser shows a certificate error, do not proceed: the connection may be compromised.

Example: Logging Into a Bank

You username + password TLS Encrypted Tunnel Attacker sees random noise Bank Server Valid certificate

Example: Phishing With a Padlock

https://my-bank-l0gin.com Valid certificate + padlock But NOT your real bank! HTTPS ≠ Trustworthy Always verify the actual domain name carefully.

Example: Public Wi-Fi Risk

Your Laptop Coffee Shop Wi-Fi Packet Sniffer HTTPS Server TLS encrypted: attacker sees ciphertext only Without HTTPS, attacker reads everything

TLS Versions Over Time

Version Year Status
SSL 2.0 / 3.0 1995 / 1996 Deprecated: insecure
TLS 1.0 1999 Deprecated
TLS 1.1 2006 Deprecated
TLS 1.2 2008 Still widely used
TLS 1.3 2018 Current standard

Common Mistakes

✕ Padlock = Safe Website
The padlock means the connection is encrypted, not that the site is trustworthy. Phishing sites use HTTPS too.
✕ HTTPS Protects Everything
TLS only encrypts data in transit. It does not protect data stored on the server, metadata (domain names), or client-side threats.
✕ Ignoring Certificate Warnings
Browser warnings about invalid or expired certificates exist for a reason: clicking "proceed anyway" defeats the purpose of TLS.

Summary: TLS/HTTPS at a Glance

Concept Key Takeaway
TLS Cryptographic protocol for encryption, integrity, and authentication
HTTPS HTTP + TLS: the secure version of web browsing
Certificate Proves server identity, issued by a trusted Certificate Authority
Handshake Client and server negotiate encryption and exchange keys
Protects Data in transit, server identity, data integrity
Does NOT protect Data at rest, metadata/DNS, phishing, client-side malware

Question 1 of 5

What does the "S" in HTTPS stand for, and what technology provides it?

Question 2 of 5

Which of the following is NOT a protection provided by TLS?

Question 3 of 5

A website displays a padlock icon and uses https://. Which statement is true?

Question 4 of 5

During the TLS handshake, the server sends a digital certificate. What is the primary purpose of this certificate?

Question 5 of 5

You are browsing on public Wi-Fi at a coffee shop. Which of the following can an attacker on the same network still observe, even if you use HTTPS?