Home › Networking › TLS / HTTPS
Networking

TLS / HTTPS

TLS is what puts the "S" in HTTPS. It encrypts the connection so nobody between you and the server can read or change what you send.

What it protects

Two things: privacy (an eavesdropper sees only scrambled bytes) and integrity (nobody can tamper with the data without you noticing). It also proves you are really talking to the site you meant to.

Certificates

A server presents a certificate signed by a trusted authority. Your browser checks the signature and the name on it. If it does not match the site, you get a warning.

The handshake

Client and server agree on a cipher, verify the certificate, and work out a shared key using public-key cryptography. After that, everything is encrypted with that key. TLS 1.3 does this in a single round trip.

Keep reading: Python  ·  Web Servers  ·  WebSockets