Security & SSL

What Is SNI (Server Name Indication)? SSL on Multiple Domains Explained

SNI is a TLS protocol extension that lets a server present the correct SSL certificate for each domain from a single IP address.

Close-up of a steel padlock on a mesh fence, symbolizing protection and security.

SNI (Server Name Indication) is a TLS protocol extension that allows a web server to identify which domain the client is requesting before presenting the SSL certificate. Thanks to SNI, a single server with one IP address can host dozens of HTTPS domains without certificate conflicts.

The Problem That Existed Before SNI

To understand SNI, you need to understand the obstacle it solves. When a browser establishes an HTTPS connection, the process is:

  1. The client opens a TCP connection with the server.
  2. Before sending any HTTP data (including the Host: header), the TLS handshake begins.
  3. The server must present its SSL certificate during the handshake — before knowing which domain the client requested.

Here's the problem: if the server hosts multiple domains on the same IP, which certificate does it present? It can't wait for the HTTP Host: header because that arrives after the TLS handshake.

The historical solution was to assign one IP per domain with an SSL certificate. With IPv4 exhausted, that's a luxury most hosting providers can no longer offer.

How SNI Works

SNI solves the problem by adding the requested domain name inside the ClientHello message itself — the very first message of the TLS handshake.

The flow with SNI enabled:

  1. The client opens the TCP connection.
  2. The client sends the ClientHello message and includes the SNI extension with the domain name (example.com).
  3. The server reads the SNI extension and selects the certificate matching that domain.
  4. The handshake continues normally with the correct certificate.

The domain travels in plaintext within this extension, which has privacy implications (see below). But the functionality is immediate: the server always presents the right certificate.

SNI in Shared Hosting: Real-World Impact

SNI is what makes modern shared hosting with HTTPS possible. Without SNI, a hosting plan with 500 sites on the same server would need 500 different IPs just for SSL.

With SNI, the server (Apache, Nginx, LiteSpeed) maintains a map of domains and certificates. When a request arrives with the SNI extension, it selects the correct certificate from the map and presents it during the handshake.

Scenario Without SNI With SNI
10 HTTPS domains on 1 server 10 separate IPs 1 IP, 10 certificates
Let's Encrypt on shared hosting Impossible without dedicated IP Works without issue
Wildcard for subdomains 1 IP per subdomain without wildcard 1 IP, wildcard or SANs

If you have a site on shared hosting with active HTTPS, SNI is working in the background on every visit.

SNI Browser and OS Compatibility

SNI was introduced in the TLS standard in 2003 (RFC 3546) and today its support is virtually universal:

  • All modern browsers (Chrome, Firefox, Safari, Edge) have supported SNI for over a decade.
  • iOS, Android, macOS, and Windows 7+ all have native support.
  • The only notable incompatibility was old versions of Internet Explorer on Windows XP, which didn't support SNI. In 2026 this is irrelevant for the vast majority of sites.

If your audience includes very old devices or corporate environments running IE6/IE7, a dedicated IP remains the only real solution. For all other cases, SNI is reliable.

SNI and Privacy: The Plaintext Name Problem

The original SNI extension transmits the domain name unencrypted during the ClientHello. This means any entity observing network traffic (ISP, corporate firewall, attacker on the same network) can see which domain the user is visiting, even though the communication content is encrypted.

The industry's answer is Encrypted Client Hello (ECH), formerly known as ESNI. ECH encrypts the SNI extension using the server's public key obtained via DNS (DNS over HTTPS). With ECH active, the domain name no longer travels in plaintext. Cloudflare and Firefox already support ECH in production.

To explore how to configure these additional privacy and security layers for your domain, the specialists at elenlace.com can guide you based on your stack and hosting provider. You can also browse the SSL security section for advanced TLS configuration deep-dives.

Key Takeaways

  • SNI is a TLS extension that sends the domain name in the ClientHello, allowing the server to choose the correct certificate before completing the handshake.
  • Without SNI, each HTTPS domain would require its own dedicated IP. With SNI, dozens of domains share a single IP without certificate conflicts.
  • It's the technology that makes shared hosting with HTTPS and services like Let's Encrypt work at scale.
  • Support is virtually universal in 2026. Only very outdated systems (IE on XP) lack it.
  • The original SNI extension travels in plaintext. Encrypted Client Hello (ECH) closes that privacy gap.

Want to make sure your server has SNI, ECH, and the entire TLS stack correctly configured? The team at elenlace.com performs complete web security audits and TLS configuration for production sites.

FAQ

Does SNI work with wildcard and multi-domain (SAN) certificates?

Yes. SNI is the mechanism that selects which certificate to present; the certificate type (DV, wildcard, SAN) doesn't affect how SNI functions. You can have a *.yourdomain.com wildcard certificate and SNI will present it when appropriate.

Do I need to configure anything special to enable SNI?

On modern servers (Apache 2.2.12+, any current Nginx version, LiteSpeed) SNI is enabled by default when you configure multiple SSL virtual hosts. There's no specific "switch" to flip. Standard virtual host configuration already takes advantage of SNI automatically.

Does SNI have any performance impact?

Essentially none. SNI adds only a few bytes to the ClientHello message. It introduces no additional communication rounds or cryptographic operations. The TLS handshake takes exactly the same time with or without SNI.

What's the difference between SNI and a dedicated IP certificate?

A certificate on a dedicated IP doesn't need SNI because there's only one possible certificate for that IP. SNI is necessary when multiple certificates share an IP. Both solutions result in functional HTTPS for the user; the difference is operational and relates to hosting cost.

Compare providers

Other providers and guides worth comparing:

← All