HTTPS no es más que HTTP corriendo dentro de un canal cifrado con TLS. TLS (Transport Layer Security) te da tres garantías: confidencialidad (el tráfico va cifrado), integridad (no se puede manipular sin ser detectado) y autenticación (realmente estás hablando con el servidor nombrado en el certificado). Se negocia en un handshake antes de enviar ningún HTTP:
Client Server
│──── ClientHello ──────────────────────▶│ (TLS versions, cipher suites, random)
│◀─── ServerHello + Certificate ─────────│ (chosen cipher + cert with public key)
│ │
│ verify cert against a trusted CA │
│ agree on keys (e.g. ECDHE key exchange)│
│ │
│──── Finished (encrypted) ──────────────▶│
│◀─── Finished (encrypted) ───────────────│
│========= encrypted application data ====│ (now HTTP flows, encrypted)
