Concepts / Encryption and certificates

Encryption and certificates

SNI

Also called server name indication, ECH, encrypted client hello

The site name sent in the clear at the start of a TLS handshake, so the server can pick a certificate.

The site name travels in the clear
The site name travels in the clear

One address can serve many sites, so the client names the one it wants before any keys exist. Anyone on the path reads that name, even though everything after the handshake is encrypted.

SNI (Server Name Indication) is the site name a client sends in the clear at the start of a TLS handshake, so a server hosting many sites on one address can pick the right certificate. Everything after the handshake is encrypted, but anyone on the path still reads the name. Encrypted Client Hello (ECH) is the newer fix. Send one by hand: openssl s_client -connect 203.0.113.5:443 -servername example.com.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab