Wildcard certificate *.example.com doesn't cover example.com (the bare domain)
A wildcard covers subdomains one level deep, but not the apex domain itself, so https://example.com shows a name mismatch.
wildcard certificate does not cover the apex domain*.example.com does not match example.comNET::ERR_CERT_COMMON_NAME_INVALID bare domain wildcardwildcard SSL doesn't include root domaincertificate only valid for *.example.com Meaning
Add both names to the certificate: example.com and *.example.com in the SAN list (most CAs issue the wildcard with the apex included on request). Reissue and redeploy.
Common causes
- Certificate issued only for
*.example.com - Apex requested separately by mistake
- CA/plan limiting SANs
- Redirect from apex to www skipping HTTPS
- Old certificate still deployed
⚡ Quick fix
- Reissue with
example.comand*.example.com - Verify SANs:
openssl x509 -noout -ext subjectAltName - Update the load balancer/server
Detailed fix by platform
Shell
sudo certbot certonly --dns-cloudflare -d example.com -d "*.example.com"
How to diagnose
- SANs — Include apex?
- Wildcard — Level?
- Cert — Redeployed?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- CNAME CloudFront: CNAMEAlreadyExists / alternate domain name not covered by the certificate (InvalidViewerCertificate)
- Django Django send_mail: ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] (EMAIL_USE_SSL vs EMAIL_USE_TLS on the wrong port)
- error 62 openssl verify error:num=62:Hostname mismatch / Verify return code: 62
Most viewed in SSL / TLS
- HTTPSConnectionPool: Max retries exceeded (SSLError) Python requests: HTTPSConnectionPool(host='api.example.com', port=443): Max retries exceeded with url: /v1 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] ...')))
- DST Root CA X3 expired (old clients fail) Old clients: certificate has expired — Let's Encrypt chain uses expired DST Root CA X3 (OpenSSL 1.0.x, Android < 7.1.1)
- Keystore was tampered with, or password was incorrect Java keytool: java.io.IOException: Keystore was tampered with, or password was incorrect
Other ways to find it
Where this error sits
Origin: Network. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 18 Nov 2026