ssl-guides 2026-12-02 ⏱ 3 min read

Install a Wildcard SSL Certificate

Install a Wildcard SSL Certificate

To install a wildcard SSL certificate, get the certificate with DNS validation, put the certificate, chain and key on the server, then point each server block at them. One file set covers every first-level subdomain.

What a wildcard covers

NameCovered by *.example.com?
www.example.comYes
api.example.comYes
example.comNo, add it as a second name
dev.api.example.comNo, only one label deep

Get the certificate

Wildcards need DNS-01 validation: you publish a TXT record at _acme-challenge.example.com. Request a certificate for both example.com and *.example.com. Verify the TXT record with the DNS Lookup tool before asking the CA to check it. You can issue one on TryFreeSSL.

Prepare the files

You need three things: the certificate, the intermediate chain and the private key. Create a full-chain file with the certificate first and the intermediates after:

cat wildcard.crt ca_bundle.crt > fullchain.pem
chmod 600 wildcard.key

Install a wildcard SSL certificate on Nginx

server {
    listen 443 ssl;
    server_name *.example.com example.com;

    ssl_certificate     /etc/ssl/example/fullchain.pem;
    ssl_certificate_key /etc/ssl/example/wildcard.key;
    ssl_protocols       TLSv1.2 TLSv1.3;
}

Test the config and reload:

sudo nginx -t && sudo systemctl reload nginx

Install a wildcard SSL certificate on Apache

<VirtualHost *:443>
    ServerName app.example.com
    SSLEngine on
    SSLCertificateFile    /etc/ssl/example/wildcard.crt
    SSLCertificateKeyFile /etc/ssl/example/wildcard.key
    SSLCertificateChainFile /etc/ssl/example/ca_bundle.crt
</VirtualHost>

Newer Apache versions use the chain inside SSLCertificateFile, so a full-chain file there works too. Check with apachectl configtest, then reload.

cPanel and hosting panels

Open SSL/TLS, then Install and Manage SSL. Paste the certificate, private key and CA bundle, and select the domain. Panels install one certificate per domain entry, so repeat the step for each subdomain that should use the wildcard.

Test every subdomain

Run the SSL Checker on at least two subdomains and the root. Look for "Subject Alternative Name" showing both example.com and *.example.com, and a complete chain. Use the Bulk SSL Checker to cover many hosts at once.

Renewal and key hygiene

A wildcard has the same 90-day life as other free certificates. Automate DNS-01 with an ACME client and a DNS API token limited to your zone. Copy the renewed files to every server that uses the wildcard, and reload each one. Do not place the key on hosts that do not need it: one compromised server exposes all subdomains.

Practical notes

Plan which servers really need the wildcard. A public website, an API and a staging site can each use their own single-name certificate, which keeps the wildcard key on fewer machines. Where you do share it, document where it is installed so that a renewal does not leave one forgotten host on an expired copy. After each renewal, check every host with the Bulk SSL Checker and compare the expiry dates. If dates differ, the host with the older date was missed.

Related reading: the free wildcard certificate route, wildcard against SAN certificates and testing the result after install.

Frequently Asked Questions

Does a wildcard include the root domain?

No. Add example.com as a separate name on the same certificate.

Can I use HTTP validation for a wildcard?

No. Wildcards require DNS validation.

Why does one subdomain show a warning?

That server may still have the old certificate, or the name is two labels deep, which a single wildcard does not cover.

Is a wildcard less secure?

The encryption is the same. The risk is that one key unlocks every subdomain, so protect it and avoid spreading it widely.

Does the wildcard cover a second level?

No. *.example.com covers shop.example.com but not eu.shop.example.com. For deeper names you need another wildcard or the names listed on the certificate.

Why must a wildcard use DNS validation?

Because the authority has to prove you control every name the wildcard covers, and it cannot fetch a file from a subdomain that may not exist yet. A DNS TXT record proves control of the zone.

🔒 Test Your Website SSL Certificate Now
Run Free SSL Check →

✅ Post-Installation Verification & SEO Checklist

After applying the steps above, run through this 5-point checklist to prevent browser warnings and protect your Google SEO rankings:

  • Verify full CA chain trust and TLS 1.3 support using our Live SSL Checker.
  • Scan for Mixed Content HTTP links and check HSTS/CSP headers on Security Headers Checker.
  • Enforce a permanent 301 HTTP-to-HTTPS redirect with our HTTPS Redirect Generator.
  • Confirm both root and www versions resolve cleanly to one canonical HTTPS URL.
  • Verify your HTTPS property and sitemap.xml inside Google Search Console and Bing Webmaster Tools.
Technically Reviewed by TryFreeSSL Security Team
Last updated: 2026-12-05
About Us →

Free SSL Certificates, Live SSL Checker & CSR Generator

Issue trusted Let's Encrypt SSL certificates in 60 seconds with zero server setup.

Related Articles

🤖 TryFreeSSL AI Assistant