SSL certificates

Get and install a wildcard SSL certificate

Secure all subdomains with a wildcard SSL certificate: when you need one, DNS validation, generating the CSR, installing it in cPanel and its limits.

AdvancedcPanel hosting3 min read

A wildcard certificate covers a domain and every subdomain one level below it, written as *.example.com. It is convenient when you create subdomains often, for example for a WordPress Multisite network, customer-specific subdomains or many test environments.

Before you start

  • Check whether you really need one. AutoSSL already secures every subdomain you create in cPanel automatically, each with its own certificate, as long as DNS points to MdmHost.
  • Wildcards are useful when subdomains are not created in cPanel individually, for example with a wildcard subdomain *.example.com serving a multisite network.
  • You need access to DNS for the domain, because wildcard certificates can only be validated through DNS.

What a wildcard covers

HostnameCovered by *.example.com?
shop.example.comYes
www.example.comYes
example.com (bare domain)Only if also listed in the certificate; most CAs include it
dev.shop.example.comNo, that is two levels deep
example.netNo, a different domain

Generate the CSR

  1. Open cPanel → Security → SSL/TLS → Certificate Signing Requests (CSR).
  2. Choose Generate a new key (RSA 2048-bit or ECDSA).
  3. In Domains enter *.example.com and, on a new line, example.com.
  4. Fill in city, state, country, company and email, then click Generate.
  5. Copy the CSR block and submit it to your certificate authority.

Complete DNS validation

  1. The CA gives you a TXT (or CNAME) record, often named _acme-challenge or a random label.
  2. Add it in cPanel → Domains → Zone Editor → Manage for the domain with Add Record. If your DNS is hosted elsewhere, add it at that provider.
  3. Wait a few minutes, then ask the CA to check. Remove the record after the certificate is issued.

Install the certificate

  1. Open cPanel → Security → SSL/TLS → Manage SSL sites.
  2. Paste the certificate into Certificate (CRT) and click Autofill by Certificate.
  3. Choose the domain the certificate should be installed on, check that the private key and CA bundle are filled, and click Install Certificate.
  4. Repeat the installation for each subdomain that has its own document root in cPanel, selecting it in the domain list, because each virtual host needs the certificate assigned.

Wildcard subdomains in cPanel

If you created a wildcard subdomain (*.example.com) in cPanel → Domains → Domains, install the certificate on that entry so every dynamic subdomain uses it. Add a DNS wildcard record * pointing to the server in the Zone Editor if it does not exist.

Free wildcard certificates

Let's Encrypt issues wildcard certificates only with DNS validation. Whether AutoSSL can issue wildcards for your account depends on the server's AutoSSL provider and on your DNS being hosted on the server. If you need a free wildcard and it is not issued automatically, ask our team at Support → New ticket what is possible for your plan.

Security considerations

  • The same private key protects every subdomain. If one server using it is compromised, all subdomains are affected; reissue the certificate with a new key.
  • Copy the key only to servers you control.
  • Track the expiry date: paid wildcards must be renewed and reinstalled manually.

Troubleshooting

  • Subdomain still shows another certificate: the certificate was not installed on that subdomain's virtual host.
  • DNS validation fails: the record was added to the wrong zone; check which nameservers the domain uses with the WHOIS checker.
  • Second-level subdomain shows an error: wildcards cover only one level; add a separate certificate.

Next steps

Was this guide helpful?

Still stuck?

Ask MdmHost AI for a quick answer, or open a ticket and our team will take a look. We are here 24/7.