Table of Contents
Server Name Indication (SNI) is a TLS extension that tells the server which hostname a client wants to reach. It lets a web server, CDN, or load balancer choose the right certificate when several HTTPS sites share the same IP address and port.

Where SNI fits in an HTTPS connection
- DNS maps the hostname to a network address.
- The client starts TLS and ordinarily includes the hostname in the ClientHello.
- The TLS endpoint uses that name to select a configuration and certificate. The browser checks that the certificate covers the hostname it requested.
- After TLS is established, the HTTPS request identifies the HTTP host so the application can route the request.

For example, store.example.com and docs.example.com can point to one IP address and still receive different certificates. A certificate that covers both names is also possible. The certificate choice typically happens where TLS terminates, which may be a proxy rather than your origin server.
What to check if the wrong certificate appears
Confirm DNS points to the expected endpoint, including both IPv4 and IPv6 if enabled. Open the exact hostname in a browser and inspect the certificate it presents. Verify that the hostname is configured on the TLS endpoint and covered by the certificate. Testing by IP address alone can return a default certificate because it does not send the same SNI name.
A client that omits SNI may get the default certificate or a rejected connection, depending on configuration. Compare the intended hostname with the certificate and use the TLS certificate troubleshooting guide or the Chrome certificate warning guide to narrow the cause.

Does SNI hide the site name?
Ordinary SNI is visible in the initial ClientHello. Encrypted Client Hello (ECH), standardized in RFC 9849, can protect the inner ClientHello and its server name where the client and service support and successfully negotiate it. ECH does not hide the remote IP address or cover separate DNS traffic on its own. See the original TLS server name extension specification for how SNI is carried.
Reader Comments 0
Sign in with email or Google to join the discussion.