All SSL articles SSL & Certificates

SSL Certificates for Subdomains: Your Options Explained

You need HTTPS on a subdomain (blog.example.com, api.example.com, staging.example.com). Three options:

Option 1: Wildcard certificate (*.example.com)

One certificate covers all subdomains automatically — including ones you create in the future.

ProsCons
Covers unlimited subdomainsRequires DNS-01 challenge (needs DNS access)
New subdomains work instantlyOne private key for all subdomains (shared risk)
Only 1 cert to manageDoesn’t cover nested subdomains (a.b.example.com)
Free from Let’s EncryptDoesn’t cover the bare domain (add example.com separately)

Best for: Many subdomains, frequently adding new ones.

*.example.com covers:
  ✅ www.example.com
  ✅ blog.example.com
  ✅ api.example.com
  ✅ staging.example.com
  ✅ anything.example.com
  ❌ example.com (add separately)
  ❌ sub.blog.example.com (nested)

How to get a wildcard certificate →

Option 2: SAN certificate (list specific subdomains)

Explicitly list each subdomain in the certificate’s Subject Alternative Name field.

ProsCons
Can use HTTP-01 challenge (simpler)Must list each subdomain explicitly
Can mix different base domainsAdding a subdomain requires a new certificate
Each name individually validatedLet’s Encrypt limit: 100 names per cert
Free from Let’s EncryptMore management if subdomains change often

Best for: Small, fixed set of subdomains (2-5).

SAN certificate covers exactly what you list:
  ✅ example.com
  ✅ www.example.com
  ✅ blog.example.com
  ❌ api.example.com (if not listed)

In GetHTTPS, just enter all the subdomains you need.

Option 3: Separate certificate per subdomain

Each subdomain gets its own certificate.

ProsCons
Maximum isolation (separate keys)Most management overhead
Independent renewal schedulesOne cert per subdomain to track
Compromise of one doesn’t affect othersMore server configuration
Works with HTTP-01 per subdomain

Best for: Subdomains managed by different teams, or when security isolation matters.

Comparison table

WildcardSANSeparate
Subdomains coveredAll (unlimited)Listed ones onlyOne per cert
New subdomainsAutomaticRe-issue neededNew cert needed
Challenge typeDNS-01 onlyHTTP-01 or DNS-01HTTP-01 or DNS-01
Certificates to manage11N
Security isolationShared keyShared keyIsolated keys
Cost (Let’s Encrypt)FreeFreeFree
Best forDynamic subdomainsFixed set (2-5)Team isolation

Common scenarios

”I have example.com and www.example.com

SAN certificate (simplest). In GetHTTPS, enter both names. This is the most common setup.

”I run www, blog, api, docs, staging subdomains”

Wildcard (*.example.com + example.com). Covers all current and future subdomains.

”Each subdomain is a different client’s site”

Separate certificates. Each client manages their own. Compromise of one doesn’t affect others.

”I have example.com + example.org + subdomains”

SAN certificate combining domains + wildcard: example.com, *.example.com, example.org. GetHTTPS supports this.

Frequently asked questions

Does *.example.com cover example.com itself?

No. The bare domain needs to be listed separately. In GetHTTPS, add both *.example.com and example.com. Details →

Can I mix wildcard and specific domains in one certificate?

Yes. A single Let’s Encrypt certificate can include *.example.com, example.com, and other.com as SAN entries. Up to 100 names per certificate.

Which option is cheapest?

All three are free with Let’s Encrypt via GetHTTPS. Some commercial CAs charge extra for wildcards ($200-500/year) and per-SAN ($10-50 each). With Let’s Encrypt, cost is never a factor.

My subdomain is on a different server. Can I use the same certificate?

Yes. Install the same fullchain.pem and privkey.pem on both servers. The certificate doesn’t know which server it’s on — it only validates the domain name.

Related articles

SSL & Certificates 2026-05-07
Understanding Wildcard SSL Certificates
A wildcard certificate (*.example.com) secures all subdomains with one certificate. Learn how wildcards work, their limitations, and how to get one for free.
SSL & Certificates 2026-05-07
Multi-Domain SSL Certificates (SAN)
A multi-domain SAN certificate secures multiple different domains in one certificate. Learn how SAN works, when to use it vs wildcard, and how to get one with GetHTTPS.
Getting Started 2026-05-07
How to Get a Free Wildcard SSL Certificate
Get a free wildcard SSL certificate (*.example.com) from Let's Encrypt using GetHTTPS. Requires DNS-01 challenge only. Covers Cloudflare, Route 53, GoDaddy, and Namecheap DNS setup.
SSL & Certificates 2026-05-08
Which SSL Certificate Do I Need? A Decision Guide
Not sure which SSL certificate to get? Use this decision guide. Covers DV vs OV vs EV, single vs wildcard vs multi-domain, free vs paid, and recommendations for every scenario.
Get a free SSL certificate in your browser
No installation, no account. Your private key never leaves your device.
Get your certificate