👉 Master your Security+ skills with Pluralsight here: Pluralsight
You’ll learn what a wildcard SSL certificate is, which subdomains it covers, and how SSL/TLS certificate trust works. Understand coverage limits and private key risks so you can avoid certificate errors and make safer deployment decisions for your CompTIA Security+ foundation.
Chapters: 0:00 Intro 0:13 What is a wildcard SSL certificate? 1:04 Which subdomains does a wildcard certificate cover? 1:54 How does a wildcard certificate establish trust? 2:59 When should you use a wildcard certificate? 4:05 Outro
Affiliate notice: Some links may earn a commission. Thanks for your support.
Key Takeaways
A wildcard SSL certificate covers multiple matching subdomains, not stronger encryption. For example, *.example.com covers shop.example.com and api.example.com; modern connections use TLS.
The wildcard matches exactly one leftmost DNS label. It does not cover example.com or login.shop.example.com; those need separate matching SAN entries. See IETF hostname-matching rules.
Certificate coverage does not configure your services. Each hostname still needs DNS resolution, application routing, and the correct certificate and private key at its TLS termination point.
A matching hostname alone does not establish trust. Browsers also check certificate validity and the trust chain, while the server must prove possession of the corresponding private key.
Wildcard certificates simplify administration but increase shared-key risk. Keep them within the same security boundary, restrict key access, and automate renewal and deployment. Separate certificates and keys can limit compromise impact.
Let’s Encrypt requires DNS-01 validation for wildcard issuance. HTTP-01 cannot issue wildcard certificates; protect any DNS API credentials used for automation. See its challenge documentation.
👉 Turn certificate knowledge into hands-on skills with Pluralsight, an optional next step offering guided security labs, feedback, assessments, and certification practice exams.
A wildcard SSL certificate lets a server authenticate multiple matching subdomains with one certificate. For example, a certificate containing *.example.com can cover shop.example.com, blog.example.com, and api.example.com.
The asterisk is useful, but it has limits: it covers one subdomain level, not every possible name beneath a domain. Understanding that boundary, and the risks of sharing a private key, helps you avoid certificate errors and make safer deployment decisions.
What Is a Wildcard SSL Certificate?
A wildcard SSL certificate is a server certificate containing a wildcard DNS name, such as , in its extension. SAN is the certificate’s list of permitted identities.
Some links may earn a commission. Thanks for your support.
Watch in the video playerOpen the dedicated player for this course.
*.example.com
Subject Alternative Name (SAN)
Instead of listing each matching hostname separately, the certificate uses * to represent one DNS label: one dot-separated part of a name.
For example:
*.example.com
can match:
www.example.com
shop.example.com
api.example.com
This makes wildcard certificates useful when an organization operates several related services or frequently adds new subdomains.
SSL vs. TLS: Why the Name Can Be Confusing
“SSL certificate” is the familiar commercial term, but modern secure connections use Transport Layer Security (TLS). SSL, or Secure Sockets Layer, is TLS’s obsolete predecessor.
TLS protects data in transit against eavesdropping and tampering. The certificate helps authenticate the server’s identity.
Wildcard describes the certificate’s hostname coverage, not stronger encryption. A wildcard certificate does not inherently provide stronger cryptography than a certificate issued for one specific hostname.
Which Subdomains Does a Wildcard Certificate Cover?
The central rule is simple: the wildcard matches exactly one label in the leftmost position.
For a certificate containing only *.example.com, coverage looks like this:
Requested hostname
Covered?
Reason
www.example.com
Yes
www replaces the wildcard.
shop.example.com
Yes
shop is one label.
new-service.example.com
Yes
New matching names fit the existing pattern.
example.com
No
The bare domain has no label to replace the wildcard.
login.shop.example.com
No
Two labels appear before example.com.
example.net
No
It is a different domain.
These boundaries follow the standard hostname-matching rules in IETF RFC 9525.
Covering the Bare Domain
The bare domain, also called the apex domain, needs its own matching certificate identity.
To cover both the apex and its first-level subdomains, a certificate can include these separate SAN entries:
example.com
*.example.com
Do not assume a wildcard certificate includes both. Check its actual SAN entries.
Covering Deeper Subdomains
A wildcard can cover a deeper namespace when the fixed portion of the name includes that namespace.
For example:
*.apps.example.com
matches billing.apps.example.com and support.apps.example.com. It does not match apps.example.com or v2.billing.apps.example.com.
Patterns such as api*.example.com and *.*.example.com do not satisfy the standard wildcard hostname-matching rules.
A Wildcard Certificate Does Not Configure DNS
A new matching hostname can use an existing wildcard certificate without certificate reissuance. However, you still need:
DNS records that resolve the hostname.
A server, proxy, or load balancer configured to handle the request.
The appropriate certificate and corresponding private key available at the TLS termination point.
Certificate coverage does not create a website or route traffic. DNS, application routing, and certificate validation are separate parts of the deployment.
How Does a Wildcard Certificate Establish Trust?
A wildcard certificate works through the same public key infrastructure as other server certificates.
A certificate authority (CA) validates the request and digitally signs the certificate, binding its certified identities to a public key. The corresponding private key remains secret; it is not included in the public certificate.
When a browser connects to shop.example.com, a simplified TLS connection involves these steps:
The server presents its certificate and relevant chain certificates.
The browser checks trust and validity, including the certificate chain, dates, and applicable restrictions.
The browser checks the hostname. A SAN entry of *.example.com can match shop.example.com.
The server proves possession of the matching private key. In a typical certificate-authenticated TLS 1.3 handshake, this involves a handshake signature.
TLS establishes traffic keys to protect application data.
A matching wildcard is therefore necessary for hostname validation, but it is not sufficient for acceptance. An expired certificate, an untrusted chain, or another validation failure can still cause a warning.
Using the same certificate across services also does not mean every connection uses identical encryption keys. TLS derives connection-specific traffic keys.
Wildcard Certificates vs. SAN and Single-Name Certificates
“Wildcard” and “SAN” are not competing certificate types. Wildcard names themselves appear in the SAN extension.
Certificate description
Example identities
Suitable situation
Single-name
www.example.com
One specific hostname
Wildcard
*.example.com
Multiple matching subdomains
Multi-domain/SAN
example.com, example.net
A known collection of names
Mixed
example.com, *.example.com
Apex coverage plus matching subdomains
Certificate scope is also separate from validation level. Domain Validation (DV) verifies domain control, while Organization Validation (OV) adds organizational identity checks. Both can be available with wildcard coverage.
Regardless of validation level, an HTTPS connection does not guarantee that a website’s content or operator is trustworthy.
When Should You Use a Wildcard SSL Certificate?
Wildcard certificates are most useful for related services managed within the same security boundary.
Multiple Websites and APIs
An organization might use *.example.com for:
www.example.com
shop.example.com
api.example.com
The wildcard reduces the need to update the certificate whenever another matching hostname is introduced.
Customer or Tenant Subdomains
A platform can use a wildcard for customer workspaces such as acme.example.com and northwind.example.com.
That coverage applies to the platform’s namespace. It does not automatically cover an unrelated customer-owned domain.
Shared Application Entry Points
A reverse proxy, load balancer, or Kubernetes ingress can terminate TLS for several matching application names, such as billing.apps.example.com and inventory.apps.example.com.
However, terminating TLS at the entry point does not automatically encrypt the separate connection to a backend service.
Development and Preview Environments
Frequently changing names such as preview123.dev.example.com can fit a stable wildcard pattern like *.dev.example.com.
Keep development and production certificate scopes separate rather than distributing one broad private key across environments with different security controls.
Wildcard Certificate Security Risks
The main trade-off is simpler administration versus a larger compromise impact.
A Stolen Private Key Can Affect Multiple Names
If several services use one wildcard certificate and private key, theft of that key can put all covered identities at risk.
An attacker may be able to impersonate covered services if they can also cause victims to reach attacker-controlled infrastructure. The stolen key does not automatically grant operating-system access to every server.
Shared Certificates Create Shared Replacement Work
Expiration, revocation, or emergency replacement can affect every service relying on the certificate. A missed deployment may leave one endpoint serving an outdated certificate even after others have been updated.
To reduce that risk:
Restrict private-key access.
Track every deployment and its owner.
Automate renewal and deployment where possible.
Monitor expiration and deployment failures.
Prepare procedures for compromise, revocation, and replacement.
Prefer narrower certificate scopes across unrelated services.
Separate certificates with separate keys can be a better choice when limiting compromise impact matters more than sharing one certificate.
How to Obtain and Deploy a Wildcard Certificate
A typical deployment follows this process:
Define the required names. Include the apex separately if needed.
Generate or securely provision a key pair.
Submit a certificate signing request (CSR) containing the public key and requested certificate information.
Complete the CA’s domain-control validation.
Install the certificate and chain at the intended TLS termination points.
Test hostnames and automate lifecycle management.
For Let’s Encrypt, wildcard issuance requires DNS-01 validation. An ACME client publishes a challenge-derived TXT value at a name such as:
_acme-challenge.example.com
The CA checks that DNS value before issuing the certificate. Let’s Encrypt’s HTTP-01 challenge cannot issue wildcard certificates, as its challenge documentation explains.
Protect DNS API credentials used for automation. Narrowly scoped credentials or validation delegation can help limit exposure.
Turn Certificate Knowledge Into Practical Skills
For a Security+ foundation, focus on the relationship between identity scope, trust, and private-key protection. Being able to recognize *.example.com is useful; being able to explain its coverage and choose a safe deployment is the practical goal.
If you want to apply these concepts, Pluralsight offers guided security labs, feedback, assessments, and practice exams to help you identify gaps and focus your certification preparation.
Affiliate notice: Some links may earn a commission. Thanks for your support.
What Are Root Certificates and Certificate Chains of Trust? (Explained Clearly)Next
FAQ
Quick answers to the questions people usually ask about this topic.
Can I get a wildcard SSL certificate for free?
Yes. Let’s Encrypt issues free wildcard certificates, but you must complete DNS-01 validation to prove domain control. Its HTTP-01 challenge does not support wildcard issuance. For automated renewal, choose an ACME client that works with your DNS provider and protect any DNS API credentials it uses. See the Let’s Encrypt challenge documentation.
How can I check whether my installed certificate includes a wildcard?
Inspect the certificate’s Subject Alternative Name (SAN) extension in your browser’s certificate viewer. Look for an entry such as *.example.com; check separately for example.com if you need apex coverage. You can also inspect a local PEM certificate with OpenSSL:
Checking the certificate served by the live endpoint is important because it may differ from the certificate saved on your server.
Does an HTTPS redirect from the bare domain to www need certificate coverage for both names?
Yes. If a visitor opens https://example.com, the browser must establish TLS with example.combefore it can receive the redirect to www.example.com. A certificate containing only *.example.com does not cover that initial connection. Include both example.com and *.example.com in the certificate, or use separate suitable certificates at the respective endpoints.
Why does my site still show a certificate warning after renewing its wildcard certificate?
Renewal does not guarantee that every endpoint is serving the new certificate. Check the exact hostname showing the warning and verify:
Its SAN coverage and expiration date.
Whether the correct certificate is installed at the TLS termination point.
Whether all load balancers, proxies, and server instances received the update.
Whether the required intermediate certificates are being served.
A valid wildcard match cannot fix an expired certificate, an incomplete trust chain, or an endpoint still serving an older certificate.
What should I do if a wildcard certificate’s private key is exposed?
Treat every deployment using that key as affected. Generate a new private key, obtain a replacement certificate, and deploy it to all relevant TLS endpoints. Revoke the compromised certificate through your CA, remove exposed key copies, and investigate how the leak occurred. Do not simply renew using the exposed key. An inventory of certificate locations and owners helps prevent missed services during replacement.
How can I practice SSL/TLS concepts for CompTIA Security+ after learning about wildcard certificates?
Practice matching hostnames to SAN entries, diagnosing certificate warnings, and choosing certificate scopes that limit private-key exposure. For guided cybersecurity practice and focused certification preparation, explore Pluralsight as an optional next step. Its guided labs, feedback, assessments, and practice exams can help you identify knowledge gaps and organize further study.
Affiliate link — I may earn a commission at no additional cost to you.
Jay's Recommendation
Turn understanding into hands-on confidence
You've built the foundations. Pluralsight adds opportunities to practice in guided security labs, get feedback, and check your knowledge with assessments and practice exams, so your next step is more than another video.
🛠Put concepts to workBuild practical skills with guided security labs and feedback.
🎯Find your weak spotsUse assessments to focus on what needs more work.
📝Check your understandingUse practice exams to guide your certification preparation.
🧭Give study sessions directionOrganize further learning with curated paths and progress tracking.