TLS Lab

What this lab is for

When your browser opens an HTTPS connection, its first message, the ClientHello, is sent before any encryption is set up. It usually names the site you want in the server_name (SNI) field, so anyone on the network path can read it: your ISP, the café Wi-Fi, a corporate proxy.

TLS 1.3 handshake: the ClientHello is sent in clear text; everything after the ServerHello is encrypted. encrypted from here on Browser Server ClientHello: carries SNI, readable by anyone ServerHello: key exchange completes Certificate, Finished Finished HTTP requests and pages
The ClientHello goes out before the two sides share a key, so its fields travel in clear text. Only messages after the ServerHello are encrypted.

Encrypted Client Hello (ECH) moves the real name into an encrypted inner hello and leaves only a cover name outside. This lab captures the ClientHello your browser actually sent, byte by byte, and shows whether that happened.

The outer ClientHello carries the cover name and an ECH extension whose payload is the encrypted inner ClientHello with the real name. Outer ClientHello (visible) SNI: cover name (public_name) cipher suites, key shares, … encrypted_client_hello config_id (visible) enc: one-time key payload: encrypted server decrypts to Inner ClientHello (hidden) SNI: the real site name ALPN, other extensions Only the holder of the private key for config_id can read this.
With ECH the browser builds two hellos. The outer one is what the network sees; the inner one, with the real name, rides inside the ECH extension, encrypted to the server's public key.

The three lab hosts

The lab answers on three names, the same ones Compare handshakes tests. Each one exists to produce a different result:

HostRoleResult to expect
tls-lab.…ECH lab host: publishes ECH keys in an HTTPS DNS recordech_accepted with a supporting browser and secure DNS; otherwise ech_grease or sni_plaintext
plain.…Plain host: no HTTPS record, no ECH keyssni_plaintext, or ech_grease from browsers that send decoy ECH
ech.…ECH public name: the cover name in the outer hellopublic_name_direct

How to use it

  1. Read the verdict. Your handshake captures this connection and says what an observer could read. If ECH did not happen, a box under the verdict says why and how to fix it.
  2. Follow the walkthrough. Three steps: what was on the wire, what the server learned, why the lab reached its verdict. Each step has a question with a short answer and a link to the specification.
  3. Compare at Server view. The walkthrough's second step, Server view, puts a saved accepted-ECH capture next to a saved GREASE capture. Both carry an ECH extension; only one hid the name.
  4. See what a censor sees. The observer table lists what is readable on the wire and what a filtering box could block with it.
  5. Check the bytes. Pick a field from the list to highlight its bytes, or select any hostname. The hex view starts with only the record header, SNI and ECH rows; Show all rows expands it.
  6. Compare hosts. Compare handshakes makes your browser connect to each lab host. With ECH working, only the lab host shows ech_accepted.
  7. Keep a copy. Download JSON saves the capture without your IP address.

What each part shows

Verdict
One classification of this capture, with caveats such as session resumption.
Why no ECH?
Shown when your browser did not use ECH: the likely cause, the browser setting to change, and a saved accepted capture to look at meanwhile.
Walkthrough
The same capture in protocol order, with a question at each step.
Server view
The walkthrough's second step: which name the server used. It also compares a saved accepted-ECH capture with a saved GREASE capture.
Connection
Negotiated TLS version, cipher suite, key exchange, both server names and the ECH result.
What a censor sees
The destination IP, the SNI or cover name, the ECH extension, DNS and traffic size, each with what a filter could do with it.
ClientHello, byte by byte
The raw first hello as a field list and a hex dump. Red bytes are the name anyone can read; green bytes are the encrypted ECH payload.
Outer vs inner hello
With accepted ECH, the visible hello next to the decrypted one, field by field.
Possibly related ECH rejections
Recent rejected ECH attempts from your IP address, for example after a key rotation (see retry_configs below).

Where ECH keys come from

A browser can only encrypt the inner hello if it already has the server's public key. It gets that key from DNS, before connecting:

The site publishes an HTTPS DNS record containing an ECHConfig; the browser fetches it through a resolver, ideally over secure DNS, then connects using the key. DNS zone HTTPS record ech=… Resolver e.g. 1.1.1.1, your ISP Browser secure DNS: encrypted holds one or more ECHConfig config_id: which key (1 byte) public key (HPKE) public_name: the cover name ClientHello, encrypted with the public key Lab server holds the private key and a certificate for public_name
The site's DNS zone publishes an HTTPS record (also called SVCB) whose ech parameter holds one or more ECHConfigs. Over plain DNS, anyone on the path can read the lookup and even strip the record.
HTTPS / SVCB record
A DNS record type (RFC 9460 ↗) that tells clients how to connect to a site: supported protocols, alternative ports, and, with the ech parameter, ECH keys.
ECHConfig
One published ECH key with its metadata. A record can hold several, for example the current and the next key during a rotation.
config_id
A one-byte label for the key. The browser copies it, unencrypted, into the outer hello so the server knows which private key to try. The Connection table shows it, and says whether it is one of ours.
Public key
An HPKE key (RFC 9180 ↗). The browser encrypts the inner hello to it; only the server holding the private key can decrypt.
public_name
The cover name the browser puts in the outer SNI. The server must hold a certificate for it, so it can still finish a handshake when decryption fails.

Most browsers only fetch HTTPS records over secure DNS (DNS over HTTPS), so with secure DNS off you usually get no ECH at all. That is the most common reason this lab shows GREASE or plaintext. To turn it on, see Getting ECH in your browser; the lab page shows the same steps when your capture has no ECH.

retry_configs: when the key does not match

Keys change. If a browser uses an old ECHConfig, perhaps from a cached DNS answer after the lab rotated its key, the server cannot decrypt the inner hello. It does not fail outright: it finishes the handshake as the public_name, using the outer hello, and sends its current ECHConfigs in a retry_configs field inside the encrypted part of the handshake. The browser checks the certificate for the public_name, closes the connection without sending any request, and reconnects with the fresh key (RFC 9849 §6.1.6 ↗).

That first connection never reaches the page, so the lab remembers it briefly and shows it under Possibly related ECH rejections on the retry. The verdict is then ech_rejected_then_retried.

Why GREASE exists

Browsers without an ECH key for a site often send a fake ECH extension filled with random bytes. This is GREASE (RFC 8701 ↗, applied to ECH in RFC 9849 §6.2 ↗). It has two jobs:

GREASE hides nothing by itself: the real name is still in the outer SNI. Its config_id is random too, so if it happens to match one of the lab's key IDs, that match means nothing.

What still leaks with ECH

That is why censors that cannot read the name switch to blocking IP addresses, cover names, or the ECH extension itself. Each costs them more collateral damage when many sites share the same address and cover name. The What a censor sees table shows these items for your own capture; ECH and anonymity explains why this lab's set of sites sharing the name is about one.

A learning path

  1. The visible name. Without ECH, the hostname sits in clear text in the ClientHello (RFC 6066 §3 ↗).
  2. ECH accepted. The outer hello carries a cover name; the server decrypts the inner hello and uses the real one (RFC 9849 ↗).
  3. GREASE. Browsers without an ECH key for a site send a decoy extension. Its presence alone hides nothing; the Server view comparison shows why.
  4. Key rotation. An old key leads to a rejection, retry_configs and a second connection.
  5. The cover name itself. Visiting the public name directly is an ordinary connection: nothing is hidden behind it.
  6. Who else shares the name. ECH hides which site you visit only among the sites sharing that cover name. ECH and anonymity explains why this lab's answer is "almost none".

What the lab cannot tell you

What the lab keeps about you