9 min
  • HTTPS
  • SSL/TLS

What TLS actually does

TLS gives three guarantees, and the most useful thing to know about them is that they are separate:

GuaranteeMeansBroken by
ConfidentialityNobody on the path can read the trafficA weak or leaked key
IntegrityNobody can alter it without being detectedA forged authentication tag
AuthenticationThe far end is who the certificate says it isA bad certificate check

HTTPS is exactly HTTP carried inside that. Not a different protocol — the methods, status codes and fields from track 4 are byte-for-byte identical. Only the envelope changed.

Loading the HTTPS Explorer simulation…

Agreeing on a key in public

The strange part of that run is where the key comes from. Everything you watched crossed a wire an attacker is reading in full, and at the end both sides share a secret the attacker cannot reconstruct.

That is an ephemeral Diffie–Hellman exchange. Each side generates a temporary key pair, sends the public half, and combines its own private half with the other's public half. Both arrive at the same value; an observer who saw both public halves cannot.

The word ephemeral is doing real work: the keys are thrown away when the connection ends, which gives forward secrecy. Traffic recorded today stays unreadable even to somebody who steals the server's long-term private key tomorrow.

Check yourself
During the handshake, what does the certificate actually prove?

What survives the encryption

A great deal less is hidden than people assume. An observer on the path still learns:

  • the IP address you connected to, because packets have to be routed;
  • the hostname, in most deployments, from the SNI field in the ClientHello;
  • the size and timing of every message, which is often enough to identify a page;
  • that a connection happened at all, and for how long.

The body is confidential. The metadata around it largely is not — and that is a structural property, not an implementation gap.

Predict what happens next
Only two TLS 1.3 messages are sent in the clear. Which, and why must they be?

Key takeaways

  • TLS gives confidentiality, integrity and authentication, and all three can fail independently of each other.
  • HTTPS is HTTP unchanged, inside a TLS envelope. None of the semantics from track 4 differ.
  • The shared key comes from an ephemeral Diffie–Hellman exchange an observer can watch in full and cannot reproduce.
  • Ephemeral keys give forward secrecy: today’s recorded traffic survives tomorrow’s key theft.
  • The address, the hostname via SNI, and the sizes and timings all remain visible. Only the content is confidential.

Take it further