सभी SSL articles SSL और Certificates

Wildcard SSL Certificate समझें

Wildcard SSL certificate एक domain और उसके सभी subdomains को single certificate से secure करता है। www.example.com, blog.example.com, और api.example.com के लिए separate certificates लेने की बजाय, एक *.example.com wildcard सब cover कर लेता है।

Wildcards कैसे काम करते हैं

Wildcard character * किसी भी single-level subdomain से match करता है:

CertificateCoversDoesn’t cover
*.example.comwww.example.com, blog.example.com, api.example.com, anything.example.comexample.com (bare domain), sub.blog.example.com (nested)
*.example.com + example.comसभी subdomains + bare domainNested subdomains
*.sub.example.coma.sub.example.com, b.sub.example.comsub.example.com, example.com

Key limitation: Wildcards सिर्फ one level match करते हैं। *.example.com a.b.example.com cover नहीं करता।

Wildcard vs Multi-domain (SAN)

WildcardMulti-domain (SAN)
CoversOne level पर सभी subdomainsSpecific listed domains
Flexibilityकोई भी subdomain automatically काम करता हैहर domain explicitly list करना होगा
New subdomainsInstantly coveredNew certificate जरूरी
Cross-domainNo (एक base domain)Yes (example.com + other.com)
DNS-01 required✅ YesNo (HTTP-01 या DNS-01)

Wildcard use करें जब: बहुत subdomains हों या frequently new add करते हों। SAN use करें जब: Specific domains/subdomains का small, fixed set हो।

Wildcard certificate कब use करें

Good use cases:

  • Multiple subdomains run करते हैं (app., api., docs., blog., staging., etc.) और हर एक के लिए separate certificate manage नहीं करना चाहते
  • Frequently new subdomains add करते हैं — re-issue बिना automatically covered
  • Development/staging environments जहाँ subdomain names अक्सर बदलते हैं

जब wildcards fit नहीं:

  • Different base domains (example.com + example.org) cover करने हैं — SAN certificate use करें
  • Per-subdomain isolation चाहिए — अगर एक subdomain की key compromise होती है, wildcard certificate सभी subdomains cover करता है
  • DNS records modify नहीं कर सकते — wildcard issue करने के लिए DNS-01 जरूरी, जिसके लिए DNS access चाहिए

Security considerations

Wildcard certificate मतलब एक private key सभी subdomains protect करती है। Key compromise होने पर, attacker किसी भी subdomain impersonate कर सकता है — सिर्फ एक नहीं।

Mitigation:

  • Private key access limit करें — सिर्फ उन server(s) को key file होनी चाहिए जिन्हें जरूरत है
  • Short-lived certificates use करें — Let’s Encrypt की 90-day validity exposure window limit करती है
  • High-security subdomains के लिए separate certificates consider करें (e.g., admin.example.com का अपना certificate हो)

Free wildcard certificate लेना

Let’s Encrypt बिना charge DNS-01 challenge से wildcard certificates support करता है। ज्यादातर competitors (ZeroSSL, SSL For Free) wildcards paid plans तक restrict करते हैं।

GetHTTPS से:

  1. *.example.com enter करें (+ example.com अगर bare domain भी चाहिए)
  2. GetHTTPS द्वारा दिया गया DNS TXT record add करें
  3. DNS propagation wait करें (GetHTTPS pre-check करता है)
  4. Verify करें और certificate files download करें

Full step-by-step wildcard guide →

Wildcard certificate install करना

किसी भी certificate जैसा — server को पता नहीं यह wildcard है:

Nginx:

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

    ssl_certificate     /etc/ssl/fullchain.pem;
    ssl_certificate_key /etc/ssl/privkey.pem;
}

Apache:

<VirtualHost *:443>
    ServerName example.com
    ServerAlias *.example.com

    SSLEngine on
    SSLCertificateFile /etc/ssl/cert.pem
    SSLCertificateKeyFile /etc/ssl/privkey.pem
    SSLCertificateChainFile /etc/ssl/chain.pem
</VirtualHost>

FAQ

Wildcards के लिए HTTP-01 use क्यों नहीं कर सकते?

HTTP-01 specific hostname validate करता है http://hostname/.well-known/acme-challenge/... पर file place करके। Wildcard infinite subdomains cover करता है — file place करने के लिए कोई single server नहीं। DNS-01 zone level पर TXT record से पूरे domain का control prove करता है।

क्या *.example.com, example.com cover करता है?

नहीं। Bare domain separate है। Certificate request में *.example.com और example.com दोनों add करें। GetHTTPS और Certbot दोनों same certificate में support करते हैं।

ZeroSSL से free wildcard मिल सकता है?

नहीं। ZeroSSL wildcard certificates paid plans ($10/month+) तक restrict करता है। Let’s Encrypt free wildcards provide करता है

Same domain के लिए multiple wildcard certificates हो सकते हैं?

हाँ। कोई technical limit नहीं। *.example.com और *.staging.example.com separate certificates हो सकते हैं। Let’s Encrypt rate limit per registered domain per week 50 certificates है।

Wildcard certificate nested subdomains cover करता है?

नहीं। *.example.com www.example.com और api.example.com cover करता है लेकिन dev.api.example.com नहीं। Nested subdomains के लिए, *.api.example.com जैसा separate wildcard चाहिए।

कैसे test करें कि wildcard certificate specific subdomain के लिए काम कर रहा है?

Subdomain DNS server की तरफ point करें, फिर test:

echo | openssl s_client -connect subdomain.example.com:443 -servername subdomain.example.com 2>/dev/null | openssl x509 -noout -subject -dates

Certificate में CN=*.example.com या SAN field में *.example.com दिखना चाहिए। Connection error मतलब subdomain DNS wildcard certificate host करने वाले server की तरफ point नहीं कर रहा।

Wildcard certificate multiple servers पर use कर सकते हैं?

हाँ। Subdomains handle करने वाले हर server पर same fullchain.pem और privkey.pem install करें। Certificate को पता नहीं किस server पर है — बस hostname validate करता है।

संबंधित लेख

शुरुआत करें 2026-05-07
Free wildcard SSL certificate कैसे पाएं
GetHTTPS use करके Let's Encrypt से free wildcard SSL certificate (*.example.com) पाएं। सिर्फ DNS-01 challenge ज़रूरी। Cloudflare, Route 53, GoDaddy, और Namecheap DNS setup शामिल।
SSL और Certificates 2026-05-07
Multi-Domain SSL Certificates (SAN)
एक multi-domain SAN certificate एक ही certificate में कई अलग-अलग domains को secure करता है। जानें SAN कैसे काम करता है, इसे wildcard के बजाय कब use करें, और GetHTTPS के साथ कैसे get करें।
SSL और Certificates 2026-05-07
SSL Certificate Types Explained: DV, OV, और EV
Domain Validation (DV), Organization Validation (OV), और Extended Validation (EV) SSL certificates compare करें। Validation, cost और actually आपको किस type की जरूरत है, इसमें differences जानें।
अपने browser में मुफ़्त SSL certificate पाएँ
कोई installation नहीं, कोई account नहीं। आपकी private key कभी आपका device नहीं छोड़ती।
अपना certificate पाएँ