HTTPS and TLS
what the padlock in your browser really promises
HTTPS is ordinary web traffic (HTTP) wrapped in TLS, Transport Layer Security. TLS is the protocol that gives a connection three things: privacy, integrity and proof of who you are talking to.[1]
What the connection achieves
- Confidentiality: the content is encrypted, so someone on the same Wi-Fi cannot read it.
- Integrity: tampering in transit is detected.
- Authentication: the server proves its identity with a certificate, so you know you reached the real site and not an impostor.
How it starts (simplified)
- The browser says hello and lists the TLS versions and ciphers it supports.
- The server answers with its certificate.
- The browser checks the certificate: is it for this site name, is it in date, and is it signed by a certificate authority (CA) the browser trusts?
- The two sides agree on fresh session keys using public-key cryptography, then switch to fast symmetric encryption for the data.
TLS 1.3 is the current version and is faster and removes older weak options. SSL and early TLS versions are obsolete and should be turned off.
What the padlock does not mean
The padlock means the connection is encrypted and the certificate matches the name. It does not mean the website is honest. Phishing sites routinely have valid certificates, because anyone can get one for a domain they control. Always read the domain.
Things that go wrong
- Expired or mismatched certificates, which cause browser warnings (do not click through on sensitive sites).
- Old protocol versions or weak ciphers left enabled.
- Mixed content: an HTTPS page loading scripts over plain HTTP.
- Interception tools such as corporate inspection proxies, which work by installing their own trusted certificate on managed devices.
For site owners
Use HTTPS everywhere, redirect HTTP to HTTPS, enable HSTS so browsers refuse to use plain HTTP for your site, renew certificates automatically, and monitor expiry.[2]
Sources
Test yourself
My notes
Private — saved only on this device, never sent anywhere.