How HTTPS Really Works: Certificates, TLS and Why That Padlock Matters
Every website you trust shows a padlock in the address bar. Most people treat it as a vague “this site is safe” badge. It isn’t. HTTPS is a specific set of protections — and understanding what it actually does will make you much harder to fool.
HTTP vs HTTPS: What’s the Difference?
Plain HTTP sends everything in readable text. Anyone sitting between you and the website — a compromised Wi-Fi network, a malicious hotspot, an attacker on public internet infrastructure — can read it and even change it. Passwords, messages, session cookies: all visible. HTTPS is HTTP wrapped in TLS (Transport Layer Security), the modern successor to SSL. TLS encrypts the connection so that only your browser and the real server can read what’s inside. Someone in the middle sees only encrypted noise and the domain name, not the pages you visit or the data you submit.
The TLS Handshake, in Plain English
Before any real data flows, your browser and the server perform a handshake — a quick negotiation that takes milliseconds:
- Hello and capabilities. Your browser tells the server which encryption methods it supports.
- Here’s my certificate. The server sends its digital certificate, which contains its public key and its domain name, signed by a trusted Certificate Authority (CA).
- Verification. Your browser checks the certificate: Is it signed by a CA my system trusts? Does the domain name match the site I asked for? Is it expired or revoked?
- Shared secret. Using the certificate’s public key, the two sides securely agree on a secret session key. All further traffic is encrypted with it.
If any check fails, your browser shows a warning — and you should take that warning seriously. Clicking through a certificate warning is like accepting an ID card you know is fake.
What Is a Certificate, Really?
A certificate is a signed statement: “This public key belongs to this domain.” Certificate Authorities are organisations your browser trusts to verify that claim before signing. When a site owner proves they control a domain, a CA issues a certificate for it. Free providers like Let’s Encrypt have made certificates available to everyone, which is why HTTPS is now the default almost everywhere. Crucially, a certificate proves you are talking to the real owner of the domain — it says nothing about whether that owner is honest. A phishing site can have a perfectly valid certificate. The padlock means your connection is encrypted, not that the site is trustworthy.
What HTTPS Does NOT Protect You From
- Phishing. A fake login page served over HTTPS is still a fake login page. Check the domain name character by character.
- A hacked website. If the server itself is compromised, HTTPS protects your data in transit — straight to the attacker running the server.
- Malware on your device. Encryption doesn’t help if the attacker is already inside your browser or operating system.
- DNS tricks and lookalike domains. HTTPS verifies the domain you typed, so if you were tricked into visiting a lookalike, it verifies the lookalike.
How to Use This Knowledge
- Never enter passwords or payment details on a plain HTTP page. If a login form loads over HTTP, stop.
- Don’t ignore certificate warnings. A warning means the identity check failed. On a real site, that is a red flag, not an inconvenience.
- Check the domain, not just the padlock. Attackers register domains like paypa1.com or secure-login-bank.com and serve them over HTTPS. The padlock will look fine. The domain won’t.
- For site owners: force HTTPS everywhere with an HSTS header, renew certificates before they expire, and redirect all HTTP traffic to HTTPS.
The padlock is real protection — encryption in transit is one of the biggest security wins in internet history. Just remember what it certifies: a private conversation with whoever owns that domain. Whether you trust that owner is still your call.



Comments
Post a Comment