HTTPS / TLS
TLS encrypts data in transit; HTTPS is HTTP over TLS.
Somebody opens your app on the free wifi in a coffee shop. Between their laptop and your server sit the cafe's router, an internet provider, and a handful of networks nobody in the room has heard of.
Over plain HTTP, anyone on that wifi can read every request with software that has existed for twenty years. They can also change the reply on its way back, and they can pretend to be your server entirely.
Until around 2012, most large sites encrypted the login page and then sent the session cookie in the clear afterwards. Stealing somebody's account needed no password at all, just a laptop in the same cafe.
TLS is what makes that network tolerable, and HTTPS is **TLS** underneath the HTTP you already know. What it protects is narrower than most people assume, and that boundary is worth knowing exactly.
Lessons
4 in this chapter- What TLS Protects AgainstRead, modify, impersonate: the three network attacks TLS shuts down, and the ones it leaves open.2 min
- The TLS 1.3 HandshakeOne round trip to agree on keys, prove the server's identity, and start encrypting.2 min
- Certificates and the Chain of TrustHow a signature chain from your domain to a root store makes a public key trustworthy.3 min
- TLS Termination in Real ArchitecturesDeciding where encryption ends: at the edge, at the load balancer, or nowhere.2 min