On this page
What this issue is
An SSL/TLS certificate lists the host names it is valid for. These are stored in the Subject Alternative Name (SAN) field. When a browser connects to www.example.com, it checks that name against that list. If it is not there, you get a name mismatch.
The most common case: the certificate covers example.com but not www.example.com. Another common case is a new subdomain (shop., book., app., go.) pointed at a service or server whose certificate was issued for a different name. A certificate for example.com does not cover subdomains. A wildcard certificate for *.example.com covers one level of subdomains, but not the bare example.com unless it is listed too.
| Certificate lists | example.com | www.example.com | shop.example.com | a.b.example.com |
|---|---|---|---|---|
| example.com only | Valid | Mismatch | Mismatch | Mismatch |
| example.com + www.example.com | Valid | Valid | Mismatch | Mismatch |
| *.example.com only | Mismatch | Valid | Valid | Mismatch |
| *.example.com + example.com | Valid | Valid | Valid | Mismatch |
Why it costs you leads or sales
Visitors see a full-page warning such as "Your connection is not private" and most go back. Forms, checkouts and booking pages on that host never load, so no lead or order can start. Ads, emails and social posts that link to the affected host send paid traffic to a warning page.
Search is hit too. Google cannot reliably crawl a host with an invalid certificate, and links pointing to the broken host lose their value. If only one version (for example www) is affected, anyone who types or follows that version lands on the error, while the other version looks fine when you test it yourself.
- Click ad or linkPoints to www.example.com
- TLS handshakeCertificate does not list www
- Landing pageNever shown
- Form or checkoutNever reached
- Lead or saleNot recorded
The break happens before any page content loads, so every later step is lost.
Example: 1,000 ad clicks, where the ad links to a host with a name mismatch versus a valid certificate. Numbers are illustrative.
How to check if your site has it
Test every host you use, not just the main one: the bare domain, www, and every subdomain used for landing pages, shops, booking, blogs or funnels. Check each with https:// typed in full.
Open each host in a private window
Visit https://example.com, https://www.example.com and each subdomain. A warning page means a problem. Do not click through the warning.
Read the certificate names
In Chrome, click the padlock or warning icon, then Connection is secure > Certificate is valid. Open the Details tab and look at Subject Alternative Name. Your host must be in that list or covered by a wildcard.
Check from the command line
Run the command below for each host. It prints the names the certificate covers.
List your subdomains
Check your DNS records for every A, AAAA and CNAME record, plus the hosts used in ads, emails and tools like landing page builders.
echo | openssl s_client -connect www.example.com:443 -servername www.example.com 2>/dev/null | openssl x509 -noout -subject -ext subjectAltNameHow to fix it
The fix is always the same idea: get a certificate that lists the exact host, then install it where that host is served. How you do it depends on who serves the host.
Find where SSL is issued
This is usually your host's control panel (cPanel, Plesk or a managed host dashboard), not WordPress itself.
Reissue with www and subdomains
In the host's SSL or Let's Encrypt tool, select both example.com and www.example.com, plus any subdomain, and reissue.
Check DNS
Make sure www points to the same server. Then reload and test.
Open domain settings
Go to Settings > Domains and check each domain's status.
Fix DNS records
Shopify issues certificates automatically once DNS points to it: the A record to 23.227.38.65 and a www CNAME to shops.myshopify.com. Remove conflicting records.
Wait and retest
Certificate issue can take a while after DNS changes. Retest the host after it shows as connected.
Server-side tagging domain
If you use a custom domain for server-side GTM, check its certificate status in your hosting setup. Ordinary GTM web containers load from Google and are not affected.
Fix the custom domain
Make sure the DNS records for the tagging subdomain match what your server host asks for so it can issue a certificate for that name.
Open hosting settings
Go to Site settings > Publishing > Production, and check the domains listed.
Add both versions
Add example.com and www.example.com, and set one as default. Webflow issues the certificate once DNS records are correct.
Fix DNS
Remove old A or CNAME records that point elsewhere. Then retest.
Open custom domains
Go to Sites > Funnels (or Websites) > Settings > Domains, and look at the domain's status.
Match the DNS record
Subdomains need a CNAME to the target shown in the domain setup. A wrong or missing record stops the certificate from being issued.
Re-verify
Use the verify or refresh option on the domain, then retest the host.
Open domains
Go to Settings > Domains and check that both the root and www are connected.
Reconnect if needed
If you connected a domain from elsewhere, re-check the nameservers or A and CNAME records Wix asks for. Wix provides the certificate when the domain is connected correctly.
Open domain settings
Go to Settings > Domains > your domain > DNS Settings.
Use the default records
Restore the standard Squarespace records for the root and www. SSL is issued automatically once they resolve correctly.
Check SSL status
Under Settings > Advanced > SSL, make sure SSL is on, then retest.
Reissue with all names
With Certbot on nginx, run the command in the snippet below, listing every host.
Add each name to the server block
Each server_name must match a name on the certificate, and each HTTPS block must point to the correct certificate files.
Reload
Test the config and reload the web server.
sudo certbot --nginx -d example.com -d www.example.com -d shop.example.com
sudo nginx -t && sudo systemctl reload nginxBefore
- Certificate lists example.com only
- www.example.com shows a privacy warning
- Ads to the www URL lose visitors
After
- Certificate lists example.com and www.example.com
- Every host loads over HTTPS with a padlock
- Ads and links reach the page
How to confirm it's fixed
- Each host (root, www and every subdomain) loads over https:// with no warning in a private window
- The openssl command lists each host in Subject Alternative Name
- http:// versions redirect to the right https:// host
- The certificate chain is complete (no missing intermediate certificate)
- Your main forms and checkout load on the fixed host and submit successfully
- Test again on a phone and on another network, as some browsers cache errors
How to prevent it happening again
- Keep a list of every host in use: root, www, landing page, shop, booking and tracking subdomains
- Before launching a new subdomain, confirm its certificate covers it, or use a wildcard
- Turn on automatic renewal and check that renewal includes all names
- When you move DNS or switch platform, retest every host afterwards
- Never point a subdomain at a service before that service has issued a certificate for it
- Add each new host to your monitoring
How FunnelGuard handles this
FunnelGuard detects this issue only partly. A robot visitor runs your real customer journeys on a schedule, so it loads the hosts those journeys use. If one of those hosts has a certificate name mismatch, the journey fails at that step, and you get one alert with a screenshot and a likely cause after a re-check from a second region.
What it does not do: it only checks hosts that appear on your journeys. A subdomain or www version that no journey visits is not tested, and FunnelGuard does not scan your DNS to discover hosts or audit every certificate you own.
How to cover the rest by hand: list every host in your DNS, check each with the openssl command above or a browser, and add any host that matters to a journey (for example a www landing page or a booking subdomain) so it is checked on a schedule. The Free plan includes 1 site and 2 journeys with daily checks and no card, and paid plans have a 3-day free trial.
Questions people ask
Why does my site work on example.com but show a certificate error on www?
Your certificate probably lists only example.com and not www.example.com. Each host name must be on the certificate, or covered by a wildcard. Reissue the certificate with both names and retest.
What does NET::ERR_CERT_COMMON_NAME_INVALID mean?
It means the host name in the browser address bar does not match any name on the site's SSL certificate. The certificate is valid in itself but was issued for different names. Reissue it to include the exact host.
Does a certificate for example.com cover subdomains?
No. A certificate for example.com covers only that name. To cover subdomains you must list each one or use a wildcard certificate such as *.example.com.
Does a wildcard certificate cover the root domain?
Not by default. A wildcard for *.example.com covers names like www and shop, but not example.com itself, and not deeper levels like a.b.example.com. Add example.com as a separate name on the certificate.
How do I check which names my SSL certificate covers?
Click the padlock in your browser and open the certificate details, then read Subject Alternative Name. You can also run openssl s_client with -servername and pipe it to openssl x509 -noout -ext subjectAltName.
Can a certificate name mismatch hurt my Google rankings?
Yes, it can. Google may not be able to crawl pages on a host with an invalid certificate, and visitors who hit the warning leave. Fixing the certificate lets the host be crawled and used normally again.
Why did my new subdomain show a certificate error?
The subdomain is likely served by a platform or server whose certificate was not issued for that name yet. Check that DNS points to the right place, then issue or reissue the certificate for the subdomain.
Can FunnelGuard detect a certificate name mismatch?
Partly. It catches the problem on hosts that your monitored journeys visit, because the journey fails at that step. It does not check hosts that no journey uses, so check those by hand.
Related issues
- SEO-091SSL certificate expired or invalidFix guide
- SEO-092SSL certificate about to expireFix guide
- SEO-083http not redirecting to httpsFix guide
- SEO-094Mixed content on https pagesFix guide
- SEO-095HSTS missing or misconfiguredFix guide
- SEO-096Old TLS versions only, modern crawlers fail handshakeFix guide