Toy 5 · two minutes

What the padlock does.

You're in a café, on the Wi-Fi without a password. Sign in at numele-tau.ro once over HTTP and once over HTTPS, and see what the next table sees.

You, at your table

connection not encryptedhttp://numele-tau.ro/intra

An example: don't type a real password.

What the next table sees

Sign in and see what passes through the air.

A simulation: nothing you type here leaves the page. The address 203.0.113.42 is reserved for examples.

HTTPS hides, and proves

Encryption turns what you send into meaningless noise for anyone along the way: the next table, whoever runs the router, the internet provider. The certificate proves you're really talking to the name in the bar: it's valid only for that name and signed by an authority the browser trusts. One the next table made up doesn't have the right signature, so the browser stops; click past the warning and you hand over exactly what HTTPS was trying to hide.

What stays visible: the domain name (from the DNS question and from the connection's first message), the IP address, how much you send and when. Not the page, and not what you type.

The padlock in the address bar means the connection is encrypted and you're talking to the domain in the bar. Not that it's the right domain: phishing sites have padlocks too. On weird, sites, tunnels and free addresses are served over HTTPS, with certificates made for you.

More in the course

In the terminal

# see a site's certificate: which name it's for and who signed it$ curl -vI https://weird.ro 2>&1 | grep -E "subject|issuer"

Tell your assistant

„My site has a contact form. Check that every page and everything it loads (pictures, scripts, fonts) comes over HTTPS, and tell me what to change.”