70

I bought a wildcard certificate for *.example.com. Now, I have to secure *.subdomain.example.com. Is it possible to create a sub-certificate for my wildcard-certificate?

If it is, how I can do this?

1

4 Answers 4

120

No, it is not possible. A wildcard inside a name only reflects a single label and the wildcard can only be leftmost. Thus *.*.example.org or www.*.example.org are not possible. And *.example.org will neither match example.org nor www.subdomain.example.org, only subdomain.example.org.

But you can have multiple wildcard names inside the same certificate, that is you can have *.example.org and *.subdomain.example.org inside the same certificate.

3
  • 2
    I think this post complement this answer about multi level wildcard: Can You Create A Wildcard SSL Certificate For Two Levels?
    – joseluisq
    Oct 25, 2019 at 6:44
  • But you can have multiple wildcard names inside the same certificate – it would be helpful to add which certificate's field you have in mind; Common Name or Subject Alternative Name? Oct 13, 2023 at 7:58
  • @PiotrDobrogost: Common Name is irrelevant today, Everything is done with Subject Alternative Names. Oct 13, 2023 at 8:14
22

It is impossible to secure multi-level subdomains with a single wildcard certificate. If wildcard certificate issued for *.mydomain.tld, so it can secure only first-level subdomains of *.mydomain.com.

To secure your second-level subdomains, you have two choices.

Purchase another wildcard certificate for *.sub1.mydomain.tld. In that case, you need to manage two individual wildcard certificates.

You can go with a multi-domain wildcard certificate, where you can add up to 100 multiple domains or subdomains.

For example,

  • *.mydomain.tld
  • *.sub1.mydomain.tld
  • *.sub2.mydomain.tld
  • *.anydomain.com

It will secure your multiple domains and multi-level subdomains and reduce your hassle from multiple certificate management.

2
  • Where can i buy such a certificate?
    – kaushik
    Jan 4 at 11:22
  • @kaushik use Google ...
    – r3mark
    Feb 26 at 2:34
6

As per 7 year old article at https://www.digicert.com/news/2010-9-1-new-wildcard-features/ :

DigiCert Wildcard Plus certificates can secure any subdomain using subject alternative names (SANs). A traditional wildcard certificate for *.example.com will only secure a first-level subdomain of example.com such as mail.example.com. DigiCert’s Wildcard Plus certificate uses SANs to secure any subdomain of example.com, including multi-level subdomains such as mail.internal.example.com. With this new feature, all subdomains can be secured with a single Wildcard Plus certificate from DigiCert. The base domain itself, example.com, is automatically included as a SAN in every Wildcard Plus certificate as well, which increases compatibility and protects example.com with or without the “www.”

1

No, You can't create sub-certificate for your wildcard.

-> Your wildcard Certificate is for *.mydomain.tld, so as per Wildcard SSL guideline you can secure first level sub-domains. Means anything.mydomain.tld can be secured.

-> But if you want to use it to secure *.subdomain.mydomain.tld, which is for second level sub-domains, but wildcard certificate cant secure second level sub-domains.

Solution

-> You need to buy one more wildcard SSL Certificate for your second level sub-domain *.subdomain.mydomain.tld

Not the answer you're looking for? Browse other questions tagged or ask your own question.