SecurityUpdated Feb 2026

    Wildcard SSL Certificates: Secure All Subdomains at Once

    A single wildcard SSL certificate protects your root domain and every first-level subdomain, blog, shop, app, staging, and any future subdomains you create. This guide covers free vs paid options, DNS validation, installation, auto-renewal, and when a wildcard is (and isn't) the right choice.

    Mallory Keegan
    Mallory Keegan

    Web hosting enthusiast who tests providers and breaks down features, pricing, and real world speed

    Wildcard SSL certificate concept showing a digital certificate connected to multiple subdomain nodes with secure connection indicators
    Wildcard SSL certificates protect your root domain and all subdomains with a single certificate

    Quick Summary

    🔒 What It Covers

    *.example.com

    Root + all first-level subdomains. Not multi-level.

    💰 Free Option

    Let's Encrypt

    Free wildcards via DNS-01 validation. 90-day renewal.

    ⚙️ Validation

    DNS-01 Required

    Must create a DNS TXT record. HTTP validation won't work.

    What Is a Wildcard SSL Certificate?

    A wildcard SSL certificate uses an asterisk (*) as a placeholder in the domain name to secure unlimited subdomains at a single level. Instead of buying separate certificates for www.example.com, blog.example.com, and shop.example.com, one wildcard certificate covers them all.

    Certificate ForCovers ✅Does NOT Cover ❌
    *.example.comexample.com, www.example.com, blog.example.com, shop.example.com, api.example.com, any.example.comsub.blog.example.com, dev.api.example.com (multi-level subdomains)
    *.blog.example.comblog.example.com, staging.blog.example.com, dev.blog.example.comexample.com, www.example.com, shop.example.com
    *.example.com + *.example.org (multi-domain wildcard)All first-level subdomains of both example.com AND example.orgsub.sub.example.com (still no multi-level)

    How Wildcard Certificates Work

    1

    Certificate Authority validates domain ownership

    You prove you control the domain via DNS-01 challenge, adding a specific TXT record to _acme-challenge.example.com. HTTP validation is NOT supported for wildcards because the CA must verify control over the entire domain, not just one subdomain.

    2

    CA issues certificate with wildcard SAN

    The certificate's Subject Alternative Name (SAN) field contains *.example.com and example.com. This tells browsers that the certificate is valid for any subdomain matching that pattern.

    3

    Browser matches subdomain to wildcard pattern

    When a user visits blog.example.com, the browser checks if blog matches the * pattern. Since * matches any single label, it's valid. But staging.blog.example.com has two labels (staging.blog), so * doesn't match, the connection would show a certificate error.

    4

    TLS handshake completes normally

    The rest of the TLS handshake is identical to a standard certificate, key exchange, cipher negotiation, and encrypted connection. There's zero performance difference between wildcard and single-domain certificates.

    Wildcard vs Standard vs SAN Certificates

    FeatureSingle DomainWildcardSAN / Multi-DomainMulti-Domain Wildcard
    Domains covered1 (e.g., example.com)Unlimited subdomains of 1 domain2–250 specific domainsUnlimited subdomains of 2+ domains
    Examplewww.example.com only*.example.comexample.com + example.org + shop.net*.example.com + *.example.org
    Free (Let's Encrypt)✅ Yes✅ Yes (DNS validation)✅ Yes (up to 100 SANs)❌ No (need commercial)
    Commercial price/yr$8–60$50–300$60–500$150–600
    Validation typesDV, OV, EVDV, OV only (no EV)DV, OV, EVDV, OV only
    Future subdomains❌ Need new cert✅ Automatic, no reissue needed❌ Must reissue to add domains✅ Automatic for subdomains
    Best forSingle websiteOne domain with many subdomainsMultiple different domainsEnterprise multi-brand
    Management overheadLow (one domain)Low (one cert, many subdomains)Medium (must track all domains)Low-Medium

    When You Need a Wildcard SSL

    ✅ Use a Wildcard When

    You have 3+ subdomains (blog, shop, app, api, staging, dev)
    You frequently create new subdomains (client portals, multi-tenant SaaS)
    You want one certificate to manage instead of many
    You use staging/dev subdomains that change often
    You run a multi-tenant application (user1.app.com, user2.app.com)

    ❌ Skip the Wildcard When

    You only have 1–2 subdomains (just use individual Let's Encrypt certs)
    You need EV (Extended Validation), wildcards don't support EV
    You need to secure multiple different domains (use SAN cert instead)
    Your hosting provider includes free SSL per subdomain automatically
    Security policy requires isolated certificates per service

    Free vs Paid Wildcard Certificates

    FactorLet's Encrypt (Free)Commercial (Paid)
    Cost$0$50–600/year
    Validity period90 days (auto-renew)1 year (398 days max)
    Validation levelDV (Domain Validation) onlyDV or OV (Organization Validation)
    WarrantyNone$10K–$1.75M (CA-provided insurance)
    Issuance speedInstant (automated)DV: minutes. OV: 1–3 business days
    Encryption strengthIdentical (RSA 2048/4096 or ECDSA P-256)Identical
    Browser trustTrusted by all modern browsersTrusted by all modern browsers
    SupportCommunity forums only24/7 vendor support
    Auto-renewal✅ With Certbot + DNS plugin⚠️ Manual renewal or vendor portal
    Best forMost websites, developers, startupsEnterprise, regulated industries, warranty needs

    Bottom line: For 95% of websites, Let's Encrypt wildcard certificates are the right choice. The encryption is identical to paid certificates. Only consider paid wildcards if you need OV validation (shows organization name), warranty coverage, or your compliance framework requires a commercial CA.

    Certificate Providers Compared

    ProviderWildcard Price/yrValidationWarrantyBest For
    Let's EncryptFreeDV onlyNoneEveryone, default choice for most sites
    Cloudflare (Universal SSL)Free (with proxy)DV onlyNoneSites already using Cloudflare CDN/DNS
    Namecheap (PositiveSSL)$54/yrDV$10,000Budget commercial wildcard
    DigiCert$399/yrDV, OV$1,250,000Enterprise, high-assurance sites
    Sectigo (Comodo)$79/yrDV, OV$250,000Mid-range commercial option
    GoDaddy$295/yrDV, OV$1,000,000Existing GoDaddy customers
    GlobalSign$349/yrDV, OV$1,250,000Enterprise with compliance requirements
    ZeroSSLFree (3 certs) / $10/moDVNoneLet's Encrypt alternative with dashboard

    Free Wildcard via Let's Encrypt (Step-by-Step)

    Step 1: Install Certbot

    # Ubuntu/Debian
    sudo apt update && sudo apt install certbot
    
    # CentOS/RHEL
    sudo yum install certbot
    
    # macOS (for testing)
    brew install certbot

    Step 2: Request wildcard certificate (manual DNS)

    sudo certbot certonly \
      --manual \
      --preferred-challenges dns \
      -d "*.example.com" \
      -d "example.com"
    
    # Certbot will ask you to create a DNS TXT record:
    # _acme-challenge.example.com → <random-value>
    # Add the record in your DNS provider, wait 1-5 min, then press Enter

    Step 3: Automated renewal with Cloudflare DNS plugin

    # Install Cloudflare plugin
    sudo apt install python3-certbot-dns-cloudflare
    
    # Create credentials file
    sudo nano /etc/letsencrypt/cloudflare.ini
    # dns_cloudflare_api_token = YOUR_CF_API_TOKEN
    
    sudo chmod 600 /etc/letsencrypt/cloudflare.ini
    
    # Request with auto-renewal support
    sudo certbot certonly \
      --dns-cloudflare \
      --dns-cloudflare-credentials /etc/letsencrypt/cloudflare.ini \
      -d "*.example.com" \
      -d "example.com"
    
    # Auto-renewal runs via: sudo certbot renew (cron every 12h)

    DNS plugins available for auto-renewal: Cloudflare, AWS Route 53, DigitalOcean, Google Cloud DNS, Linode, OVH, Namecheap (via acme.sh). Without a DNS plugin, you must manually add the TXT record every 90 days.

    Installation Guide

    ServerConfig LocationKey DirectivesReload Command
    Nginx/etc/nginx/sites-available/ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; ssl_certificate_key .../privkey.pem;sudo nginx -t && sudo systemctl reload nginx
    Apache/etc/apache2/sites-available/SSLCertificateFile .../fullchain.pem; SSLCertificateKeyFile .../privkey.pem;sudo apachectl configtest && sudo systemctl reload apache2
    LiteSpeedWebAdmin Console → ListenersUpload cert + key via GUI or reference file pathsGraceful restart via WebAdmin
    CaddyCaddyfileAutomatic, Caddy obtains and renews wildcard certs natively with DNS challengesudo systemctl reload caddy
    cPanel/WHMWHM → SSL/TLS → InstallUpload cert, key, and CA bundle via GUIAutomatic (cPanel handles Apache/Nginx)
    PleskDomains → SSL/TLSUpload or use Let's Encrypt extension with DNS validationAutomatic

    DNS Validation Explained

    Wildcard certificates require DNS-01 validation: you cannot use HTTP-01 (file-based) validation. This is because the CA must verify you control the entire domain, not just a single subdomain's web server.

    Validation MethodHow It WorksWildcard SupportAutomation
    DNS-01 (TXT record)Add a TXT record at _acme-challenge.example.com with a token value✅ Required for wildcards✅ With DNS API plugins (Cloudflare, Route 53, etc.)
    HTTP-01 (file-based)Place a file at http://example.com/.well-known/acme-challenge/❌ Not supported for wildcards✅ Easiest to automate for single-domain certs
    TLS-ALPN-01Respond to TLS connection with a special certificate❌ Not supported for wildcards⚠️ Less common; used by Caddy
    Email validationRespond to email sent to admin@example.com✅ Commercial CAs only❌ Manual, must click link in email

    Auto-Renewal Setup

    DNS ProviderCertbot PluginInstall CommandAuth Type
    Cloudflarecertbot-dns-cloudflarepip install certbot-dns-cloudflareAPI Token (scoped to DNS edit)
    AWS Route 53certbot-dns-route53pip install certbot-dns-route53IAM credentials (Route53 FullAccess)
    DigitalOceancertbot-dns-digitaloceanpip install certbot-dns-digitaloceanPersonal Access Token
    Google Cloud DNScertbot-dns-googlepip install certbot-dns-googleService Account JSON key
    Linodecertbot-dns-linodepip install certbot-dns-linodePersonal Access Token
    Any (via acme.sh)acme.sh (alternative client)curl https://get.acme.sh | shSupports 100+ DNS APIs

    Multi-Level Subdomains

    A common misconception: *.example.com does NOT cover staging.api.example.com. The asterisk only matches a single DNS label.

    ScenarioSolutionExample
    First-level only (most common)Single wildcard: *.example.comwww, blog, shop, api, staging, all covered
    Two levels neededTwo wildcards: *.example.com + *.api.example.comCovers api.example.com AND staging.api.example.com
    Multi-tenant at second levelWildcard per parent: *.app.example.comuser1.app.example.com, user2.app.example.com
    Multiple unrelated domainsSAN certificate or separate wildcards*.example.com + *.example.org as separate certs or one SAN wildcard

    Security Risks & Mitigations

    RiskWhy It MattersMitigation
    Shared private key across serversCompromise on one server exposes all subdomainsUse separate certs for critical services (payment, admin). Strict key file permissions (chmod 600)
    Broader blast radius on key leakAll subdomains must be revoked and reissued at onceMonitor Certificate Transparency logs for unauthorized issuance. Set up key rotation procedures
    Subdomain takeover attacksAttacker claims abandoned subdomain → valid cert already covers itAudit DNS records monthly. Remove CNAME/A records for decommissioned subdomains
    No EV validation availableCannot display organization name in certificate detailsUse OV wildcard if organization validation is needed. EV requires individual certs
    Certificate Transparency exposureAll subdomains visible in public CT logs (discoverable by attackers)Use non-guessable subdomain names for internal services. Use private CAs for internal-only services

    Hosting Provider Wildcard SSL Support

    ProviderFree WildcardCustom Wildcard UploadAuto-RenewalNotes
    Cloudflare✅ Universal SSL (proxy mode)✅ Yes✅ AutomaticEasiest option, enable proxy and wildcard SSL is automatic
    Kinsta✅ Free Cloudflare wildcard✅ Yes✅ AutomaticPowered by Cloudflare integration; covers all subdomains
    Cloudways✅ Let's Encrypt (single)✅ Custom wildcard upload⚠️ Manual for wildcardFree LE is single-domain; upload your own wildcard cert
    SiteGround✅ Let's Encrypt wildcard✅ Yes✅ AutomaticWildcard available through Site Tools → Security → SSL
    WP Engine✅ Free SSL per domain✅ Custom wildcard upload✅ AutomaticFree SSL covers www + root; upload wildcard for subdomains
    DigitalOcean❌ No built-in SSL✅ Yes (on Droplets)✅ With Certbot cronUse Certbot + DNS plugin on your Droplet
    cPanel hosts⚠️ Depends on host✅ Via WHM⚠️ VariesAutoSSL may support wildcards; or install manually via WHM

    Implementation Checklist

    PhaseActionNotes
    PlanInventory all current and planned subdomainsList every subdomain that needs HTTPS, decide wildcard vs individual certs
    PlanChoose certificate provider (Let's Encrypt or commercial)Let's Encrypt for 95% of cases; commercial for OV/warranty needs
    PlanVerify DNS provider supports API access for auto-renewalCloudflare, Route 53, DigitalOcean DNS all support Certbot plugins
    IssueInstall Certbot + DNS plugin on your serverOr use acme.sh for broader DNS provider support
    IssueRequest wildcard cert with DNS-01 validationInclude both *.example.com AND example.com in the certificate
    IssueVerify certificate covers root + subdomainsopenssl s_client -connect example.com:443 | openssl x509 -noout -text
    DeployConfigure web server (Nginx/Apache) with cert pathsTest config before reloading: nginx -t or apachectl configtest
    DeployForce HTTPS redirect (301) for all HTTP trafficRedirect http:// → https:// in server config, not at application level
    DeployEnable HSTS headerStrict-Transport-Security: max-age=31536000; includeSubDomains; preload
    MonitorSet up auto-renewal cron job (certbot renew)Cron every 12 hours; Certbot only renews when < 30 days remaining
    MonitorSet up expiration alertsUse uptimerobot.com or cert-monitor tools to alert 14 days before expiry
    MonitorMonitor Certificate Transparency logscrt.sh or Facebook CT Monitor for unauthorized certificate issuance

    Frequently Asked Questions

    Does a wildcard SSL certificate cover the root domain?
    Yes, a wildcard certificate for *.example.com covers both example.com (the root/apex domain) and all first-level subdomains like www.example.com, blog.example.com, shop.example.com, etc. The certificate's SAN (Subject Alternative Name) field includes both *.example.com and example.com. However, it does NOT cover multi-level subdomains like staging.blog.example.com, you'd need a separate wildcard for *.blog.example.com or a multi-domain (SAN) certificate.
    Can I get a free wildcard SSL certificate?
    Yes, Let's Encrypt issues free wildcard SSL certificates. The catch: wildcard certificates require DNS-01 validation (you must create a TXT record in your DNS), and Let's Encrypt certificates expire every 90 days, so you need automated renewal. Tools like Certbot, acme.sh, and Caddy handle this automatically. Some DNS providers (Cloudflare, DigitalOcean, Route 53) support API-based DNS validation for fully automated wildcard renewal.
    What's the difference between a wildcard and a SAN certificate?
    Wildcard (*.example.com): covers unlimited first-level subdomains of one domain. Best when you have many subdomains on one domain. SAN/UCC (Subject Alternative Name): covers specific, named domains, e.g., example.com + example.org + shop.example.net. Best when you have multiple different domains. Multi-domain wildcard: covers wildcards across multiple domains, e.g., *.example.com + *.example.org. Most expensive but most flexible.
    Do wildcard SSL certificates affect SEO?
    Wildcard SSL certificates have zero negative impact on SEO compared to individual certificates. Google treats HTTPS as a ranking signal regardless of certificate type, DV, OV, EV, single, or wildcard. What matters for SEO: 1) Every page is served over HTTPS. 2) No mixed content warnings. 3) Proper 301 redirects from HTTP to HTTPS. 4) HSTS headers are set. The certificate type itself is not a ranking factor.
    How long does a wildcard SSL certificate last?
    Commercial wildcard certificates: 1 year (the industry standard since September 2020 when Apple/Google reduced max validity from 2 years to 398 days). Let's Encrypt wildcards: 90 days (requires automated renewal). Starting in 2025-2026, there's industry movement toward even shorter lifetimes (90 days or less) for all certificates, following Apple's proposal. Automated renewal via ACME protocol is becoming mandatory regardless of provider.
    Can I use a wildcard SSL on multiple servers?
    Yes; you can install the same wildcard certificate on as many servers as you want. The certificate file (and private key) can be copied to any server handling traffic for subdomains of that domain. Common setup: web server (www.example.com), mail server (mail.example.com), API server (api.example.com), all using the same wildcard cert. Important: keep the private key secure on all servers, and ensure all servers are updated when the certificate renews.
    Is a wildcard SSL certificate less secure than individual certificates?
    Slightly higher risk, but manageable. The concern: if the private key is compromised on any server using the wildcard cert, ALL subdomains are affected (vs. only one subdomain with individual certs). Mitigations: 1) Use different certificates for high-security subdomains (payment processing, admin panels). 2) Store private keys securely (permissions 600, owned by root). 3) Use certificate pinning for critical APIs. 4) Monitor Certificate Transparency logs for unauthorized issuance. For most sites, the convenience outweighs the marginal security difference.
    Do wildcard certificates support HTTP/2 and HTTP/3?
    Yes, wildcard SSL/TLS certificates fully support HTTP/2, HTTP/3 (QUIC), and all modern TLS features including TLS 1.3, OCSP stapling, and Certificate Transparency. The certificate type (wildcard vs single) has no impact on protocol support. Ensure your server is configured for TLS 1.2+ (disable TLS 1.0/1.1) and enable OCSP stapling for faster TLS handshakes.

    Need Hosting with Free Wildcard SSL?

    Find a hosting provider that includes free wildcard SSL certificates with automatic renewal, so you never worry about certificate management again.

    Find SSL-Friendly Hosting