Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Certificate name mismatch on www or subdomain: how to fix it

SEO-093High impactPartlyBy FunnelGuardPublished Updated
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.

Which names each certificate type covers (for example.com)
Certificate listsexample.comwww.example.comshop.example.coma.b.example.com
example.com onlyValidMismatchMismatchMismatch
example.com + www.example.comValidValidMismatchMismatch
*.example.com onlyMismatchValidValidMismatch
*.example.com + example.comValidValidValidMismatch

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.

Where a visitor is lost
  1. Click ad or linkPoints to www.example.com
  2. TLS handshakeCertificate does not list www
  3. Landing pageNever shown
  4. Form or checkoutNever reached
  5. Lead or saleNot recorded

The break happens before any page content loads, so every later step is lost.

Visitors reaching the landing pageExample numbers
Visitors reaching the landing page (example)Name mismatch: 40 visitors; Valid certificate: 960 visitors036873640960Name mismatchValid certificatevisitors

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.

Check each host
  1. 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.

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

  3. Check from the command line

    Run the command below for each host. It prints the names the certificate covers.

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

Show the names a certificate coversbash
echo | openssl s_client -connect www.example.com:443 -servername www.example.com 2>/dev/null | openssl x509 -noout -subject -ext subjectAltName

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

Fix by platform
  1. Find where SSL is issued

    This is usually your host's control panel (cPanel, Plesk or a managed host dashboard), not WordPress itself.

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

  3. Check DNS

    Make sure www points to the same server. Then reload and test.

Reissue a Let's Encrypt certificate with every host (nginx)bash
sudo certbot --nginx -d example.com -d www.example.com -d shop.example.com
sudo nginx -t && sudo systemctl reload nginx
Certificate coverage

Before

  • 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

Confirmation checks
  • 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

Prevention habits
  • 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.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: Only hosts on journeys are checked.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.