HTTPS kawai HTTP ne da ke gudana cikin tashar da TLS ya ɓoye. TLS (Transport Layer Security) yana ba ka tabbatattu guda uku: confidentiality (an ɓoye zirga-zirga), integrity (ba za a iya sauya shi ba tare da an gano ba), da authentication (da gaske kana magana da server da aka ambata a certificate). Ana yin sulhu a handshake kafin a aika kowane 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)
