SteelReed

Search

Search posts, questions…

Web & REST APIQuestion 2 / 25

Junior

How do HTTP and HTTPS differ, and how does the TLS handshake work?

Short answer

HTTPS is HTTP over TLS: data is encrypted, can't be altered unnoticed, and the server is verified by a certificate. The TLS 1.3 handshake costs one round trip.

ServerClientServerClientverify certificate,derive session keyClientHello, key share, SNIServerHello, certificate,FinishedFinished + encrypted HTTPrequestencrypted HTTP response

3 points to say:

  1. HTTP sends plain text.
  2. The main cost is the handshake.
  3. TLS ending at the LB: configure forwarded headers.

Keep reading the deep dive

Create a free account to read the full explanation and follow-up questions, mark questions as studied and review them on a schedule.