Summary

  • RFC 6066, January 2011, consolidated the TLS extensions and gave Server Name Indication a permanent home.
  • The problem was stated without decoration: "TLS does not provide a mechanism for a client to tell a server the name of the server it is contacting" — awkward for "servers that host multiple 'virtual' servers at a single underlying network address".
  • The fix: clients may "include an extension of type server_name" in the client hello, carrying a list of host names. Cheap, obvious, and permanently visible.

The commercial problem behind an extension

Before the extension, the address was the identity: one certificate, one name, one address. Shared hosting had already shown what that rule cost, and the industry was still pretending addresses were infinite.

The fix was almost cheeky in its simplicity. Put the name in the handshake and one address can serve a thousand sites, each with its own certificate. Hosting companies and content delivery networks adopted it fast and loudly, because it turned a scarce input into a shared one and made the arithmetic work.

Why the name travels in the clear

The server has to pick a certificate before it can encrypt anything, so the name it needs must arrive before the encrypted channel exists.

That ordering is the whole difficulty. The identifier that decides which key to use is also the identifier an observer most wants, and the first requirement makes the second unavoidable. Encrypting the name is the only way out, and that turns out to be its own story.

What the network learned

Every connection now announces its destination in the handshake, so a middlebox can learn where traffic is going without inspecting a single byte of it.

Filtering, traffic classification and censorship all got cheaper. Interrogating a name became a way to block a site without touching the payload — and, more usefully for the blocker, without leaving a mark that looks like blocking.

The attempts to take it back

Encrypting the name was tried, failed to deploy widely, and came back in a different form. Both designs hit the same wall: the name must be recoverable by the server and not by the path.

Partial encryption of the handshake moves the boundary rather than removing it. The question stops being whether the name is visible and becomes who can still decrypt it, and how many parties that turns out to be.

The trade nobody priced

Virtual hosting on encrypted connections is worth a great deal. The visibility of the name was booked as a free side effect — a rounding error in the design — and the bill arrived as a decade of name-based filtering.

The lesson about handshakes

Whatever the handshake must read, the network can read too. A design that forgets this has already published the fact.

The general lesson: when a protocol requires an identifier at the start, say who can see it. Plaintext put there for the server's benefit becomes public evidence for everyone on the path.