HTTPS on vain HTTP:tä, joka kulkee TLS-salatun kanavan sisällä. TLS (Transport Layer Security) antaa kolme takuuta: confidentiality (liikenne on salattua), integrity (sitä ei voi peukaloida huomaamatta) ja authentication (puhut todella varmenteessa nimetyn palvelimen kanssa). Se neuvotellaan kättelyssä ennen kuin mitään HTTP:tä lähetetään:
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)
