SSL Multilevel Subdomain Wildcard

SslSubdomainWildcardAdministrationServer

Ssl Problem Overview


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?

Ssl Solutions


Solution 1 - Ssl

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.

Solution 2 - Ssl

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.

Solution 3 - Ssl

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.”

Solution 4 - Ssl

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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAttrachiiView Question on Stackoverflow
Solution 1 - SslSteffen UllrichView Answer on Stackoverflow
Solution 2 - SslJason ParmsView Answer on Stackoverflow
Solution 3 - SslIlikoView Answer on Stackoverflow
Solution 4 - Ssluser2967773View Answer on Stackoverflow