SAN Certificate: Multi-Domain

Secure multiple different domains with a single certificate.

A SAN (Subject Alternative Name) certificate, also called UCC (Unified Communications Certificate), allows securing multiple completely different domains with a single certificate. Unlike wildcards that cover subdomains of the same domain, SAN can include example.com, other-site.org, and third-domain.net together.

SAN certificates are ideal for companies managing multiple brands or distinct sites, or for securing both the main domain and its variants (with and without www, .com and .fr). They offer flexibility that wildcards don't have.

This guide explores SAN certificate use cases, how to obtain them, and differences with wildcard certificates to help you choose the right solution.

SAN Certificate Benefits

Why use a multi-domain certificate:

  • Distinct domains: secure example.com and totally-different.org in the same certificate. Impossible with a wildcard.
  • Unified management: a single certificate to install and renew for multiple sites. Operational simplification.
  • Cost savings: a SAN certificate costs less than multiple individual certificates (for paid certificates).
  • Flexibility: combine domains and subdomains as needed: www.site1.com, blog.site2.org, etc.

SAN vs Wildcard

Choose the right solution for your case:

  • Coverage: Wildcard = all subdomains of one domain. SAN = explicit list of domains/subdomains.
  • Different domains: Wildcard = single domain. SAN = multiple completely different domains.
  • Dynamic subdomains: Wildcard = ideal. SAN = you must add each subdomain manually.
  • Let's Encrypt validation: SAN = HTTP-01 works. Wildcard = DNS-01 required.

Getting a SAN Certificate

Steps to create a multi-domain certificate:

  1. List your domains: identify all domains and subdomains to include. Each domain requires validation.
  2. Verify DNS: all domains must point to your server for HTTP-01 validation.
  3. Request the certificate: with Certbot: add multiple -d for each domain you want to include.
  4. Configure the server: the certificate applies to all domains. Configure your virtual hosts to use it.

Creating a SAN Certificate

Certbot command examples:

#!/bin/bash
# SAN certificate with multiple domains
certbot certonly --nginx \
    -d example.com \
    -d www.example.com \
    -d other-site.org \
    -d www.other-site.org \
    -d third-domain.net

# Check included domains
openssl x509 -in /etc/letsencrypt/live/example.com/cert.pem -noout -text | grep DNS

# Add a domain to an existing certificate
certbot certonly --nginx --cert-name example.com \
    -d example.com \
    -d www.example.com \
    -d new-domain.com

# Combine SAN and wildcard
certbot certonly --dns-cloudflare \
    --dns-cloudflare-credentials /etc/letsencrypt/cloudflare.ini \
    -d "*.example.com" \
    -d example.com \
    -d other-site.org

You can add up to 100 domains in a Let's Encrypt certificate. Each domain must pass its validation.

SAN Best Practices

Optimize your multi-domain certificate:

  • Plan your domains: include all variants from the start: with/without www, .com/.fr, etc.
  • Group logically: one certificate per server/application rather than one giant certificate for everything.
  • Document contents: keep track of domains included in each certificate to facilitate renewals.
  • Monitor each domain: a single certificate, but each domain should be monitored individually.

SAN Certificate Checklist

  • Complete domain list established
  • DNS for all domains configured
  • Validation successful for each domain
  • Certificate installed on server
  • Virtual hosts configured
  • Active monitoring for each domain

Frequently Asked Questions

How many domains can I include in a SAN?

Let's Encrypt allows up to 100 names per certificate. Commercial certificates vary, typically 25 to 250.

Can I add a domain to an existing certificate?

With Let's Encrypt, yes. Use --cert-name and list all domains (old + new). It's essentially a reissuance.

Does SAN work with different TLDs?

Yes, you can mix example.com, example.org, example.fr in the same certificate.

What happens if a domain doesn't validate?

Certificate issuance fails completely. All domains must pass their validation.

Does SAN affect SSL performance?

Slightly. A certificate with many SANs is larger and takes more time to transmit during the handshake.

Can I combine SAN and wildcard?

Yes, you can have *.example.com, example.com, and other-domain.org in the same certificate.

Consolidate with SAN Certificates

SAN certificates are the ideal solution for managing multiple distinct domains. They simplify administration while offering the necessary flexibility.

Monitor each domain in your SAN certificate with MoniTao. A single certificate doesn't mean single monitoring: each domain deserves its own monitor.

Ready to Sleep Soundly?

Start free, no credit card required.