Skip to content

SSL Certificate Doesn't Match the Name

Your server sent a certificate that doesn’t list the name your monitor checks. Every visitor who uses that name gets a browser warning instead of your site, and DownBad’s checks fail the same way. This page finds out which names the certificate covers, gets one that covers yours, and closes the incident.

Every site whose address starts with https:// (HTTPS, the secure way to load web pages) sends a certificate, a small file that proves the site is the one it claims to be. A certificate authority (a company such as Let’s Encrypt or DigiCert that issues certificates) signs it, and writes into it the names it is valid for. A browser accepts it only for those names, and DownBad’s checks do the same, with the one exception below.

An SSL monitor is DownBad’s check of a site’s certificate (SSL, Secure Sockets Layer, is the old name for the encryption behind https://), and a URL monitor checks that a web page loads (a URL is a web address). An incident is open for one of them, and it shows one of these reasons.

On an SSL monitor, with the failure type cert invalid:

  • SSL certificate error: Operation failed after 4 attempts. Last error: Hostname/IP does not match certificate's altnames: Host: wrong.host.badssl.com. is not in the cert's altnames: DNS:*.badssl.com, DNS:badssl.com. An SSL monitor tries again while its time allows, and the number of attempts can differ.

On a URL monitor, with the failure type tls (TLS, Transport Layer Security, is SSL’s current name):

  • SSL certificate error: Hostname/IP does not match certificate's altnames: Host: wrong.host.badssl.com. is not in the cert's altnames: DNS:*.badssl.com, DNS:badssl.com

wrong.host.badssl.com is a test site whose certificate doesn’t cover its own name; your reason names your site instead. The part after Host: is the name DownBad asked for. The list after altnames: is every name the certificate covers, its alternative names: DNS: only marks each entry as a name, and doesn’t mean anything is wrong with your DNS (the Domain Name System, which turns names into addresses). If your monitor checks an IP address (the number the internet uses to find a computer, such as 203.0.113.10), the reason reads IP: 203.0.113.10 is not in the cert's list: instead.

An SSL monitor checks the name only while its Validate Certificate Chain setting is on, which it is unless you turned it off. A URL monitor checks it too, and its editor has no setting to turn that off.

It is the certificate your server, or a service in front of your site, sends. Every visitor who types that name gets the same certificate, so their browser warns them too. DownBad didn’t open this incident on one check, either: it checked again from up to three other places in the United States, and it opened the incident only when at least half of the places that answered failed too.

The one exception is a site served from more than one place. A CDN (a service such as Cloudflare that sits in front of your site) or a load balancer (a service that shares visitors out between servers) can send different certificates from different places, so some visitors may see no warning.

To see it without a terminal (the window where you type commands), open the name in Google Chrome: for the URL monitor’s address, or https:// followed by the SSL monitor’s Domain. A server offers each service behind a numbered port, and secure web pages use 443: if the SSL monitor’s Port isn’t 443, add : and the port after the name. Chrome shows Your connection is not private. Press Advanced, and it says, for wrong.host.badssl.com:

If the name isn't covered
This server could not prove that it is wrong.host.badssl.com; its security certificate is from *.badssl.com. This may be caused by a misconfiguration or an attacker intercepting your connection.

The first name is the one you opened. The second is one of the names the certificate covers. A site that has told browsers to accept only secure connections to it gets a different warning, without that sentence. To see whether a name is covered without Chrome’s sentence, enter it in SSL Labs’ SSL Server Test, a free test from the company Qualys. When no certificate it got lists the name, the report starts with Certificate name mismatch, and lists the names it did find under Try these other domain names.

These steps ask your server for its certificate, the way DownBad’s check does, and show which names it covers.

1. Find the name. It is the name after Host: in the incident’s reason, without the full stop at its end. That is the Domain of an SSL monitor, or the name in the URL of a URL monitor, unless the page sent the URL monitor on to another address, a redirect, which it follows unless its Follow Redirects setting is off.

2. List the names the certificate covers. Run this command in a terminal: Terminal on a Mac, PowerShell on Windows. It only reads, and changes nothing. It uses openssl, a tool for working with certificates that comes with macOS. Put your name in place of both example.coms. If your monitor checks a port other than 443, the SSL monitor’s Port or the number after the name and a : in the URL monitor’s URL, change 443 too. The examples below are what it printed for example.com, whose certificate covers it, and for wrong.host.badssl.com.

Terminal window
openssl s_client -connect example.com:443 -servername example.com </dev/null 2>/dev/null | openssl x509 -noout -text | grep -A1 "Alternative Name"
If it works
X509v3 Subject Alternative Name:
DNS:example.com, DNS:*.example.com
If the name isn't covered
X509v3 Subject Alternative Name:
DNS:*.badssl.com, DNS:badssl.com

3. Read the list. A certificate covers a name when one of its entries matches it in one of two ways, the rules in RFC 9525, the standard for matching names to certificates:

  • Exactly. DNS:example.com covers example.com and nothing else, not even www.example.com.
  • By a wildcard, an entry that starts with *., which stands for exactly one more part in front of the name. DNS:*.example.com covers www.example.com and shop.example.com, but not example.com itself, and not a.shop.example.com, which has two parts in front.

That is why wrong.host.badssl.com fails: *.badssl.com covers one part in front of badssl.com, and wrong.host is two.

What the list tells you:

  • It lists your bare name (your domain, the name you register, on its own, such as example.com) and not the same name with www. in front, or the reverse: see the www cause.
  • It lists the names of another site on the same server: see the default certificate cause.
  • It lists names that belong to your hosting company rather than to you: your hosting platform (the company or service that runs your site for you, such as Vercel or Netlify) may not be set up for your name. See the hosting platform cause.
  • It lists a wildcard one part short of your name: see the wildcard cause.
  • It lists your name after all: the certificate may have been fixed since DownBad’s last check. Follow Confirm DownBad sees the fix. If the incident stays open, check the name in the incident’s reason against the one you checked: see the monitor cause.

The causes below run from most to least likely, so start with the first one your list matches.

The certificate covers the bare name but not www, or the reverse

Section titled “The certificate covers the bare name but not www, or the reverse”

This is the cause when step 2 of Check it yourself lists your bare name, such as example.com, but your monitor checks www.example.com, or the other way round. A certificate issued for one doesn’t cover the other.

  1. If a hosting platform issues your certificate, add the missing name to your site in its dashboard, and it issues a certificate for that name too: Vercel (Settings, then Domains, then Add Domain; Vercel’s guide says to add both names when one works and the other doesn’t) and Netlify (Domain management, then Add a domain, then Add a domain you already own; Netlify issues the certificate once a domain is added). If your site is behind Cloudflare, set up the usual way, with Cloudflare running your domain’s DNS, its free certificate already covers both, as Cloudflare’s guide says.

  2. If your own server gets its certificate from certbot (the usual tool for free Let’s Encrypt certificates), see which names certbot’s certificate has. This needs sudo, the command that runs another one with an administrator’s rights:

    Terminal window
    sudo certbot certificates
    If a name is missing
    Saving debug log to /var/log/letsencrypt/letsencrypt.log
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Found the following certs:
    Certificate Name: example.com
    Serial Number: 6a3552a3cb2946ae
    Key Type: ECDSA
    Domains: example.com
    Expiry Date: 2026-12-31 07:49:15+00:00 (VALID: 89 days)
    Certificate Path: /etc/letsencrypt/live/example.com/fullchain.pem
    Private Key Path: /etc/letsencrypt/live/example.com/privkey.pem
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    If it works
    Saving debug log to /var/log/letsencrypt/letsencrypt.log
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Found the following certs:
    Certificate Name: example.com
    Serial Number: 77e4f88f7ef4c06c
    Key Type: ECDSA
    Domains: example.com www.example.com
    Expiry Date: 2026-12-31 07:54:36+00:00 (VALID: 89 days)
    Certificate Path: /etc/letsencrypt/live/example.com/fullchain.pem
    Private Key Path: /etc/letsencrypt/live/example.com/privkey.pem
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    Domains lists the names the certificate covers.

  3. Add the missing name. First list both names in your site’s settings, so certbot finds the site: on nginx (a common web server), on its server_name line, as nginx’s guide to server names shows; on Apache (another common web server), as the ServerName and a ServerAlias of the site’s <VirtualHost *:443> block (the part of Apache’s settings for one secure site), as Apache’s guide to name-based virtual hosts shows. This command changes your server, so it needs sudo. On Apache, use --apache in place of --nginx:

    Terminal window
    sudo certbot --nginx --expand -d example.com -d www.example.com
    If it works
    Saving debug log to /var/log/letsencrypt/letsencrypt.log
    Renewing an existing certificate for example.com and www.example.com
    Successfully received certificate.
    Certificate is saved at: /etc/letsencrypt/live/example.com/fullchain.pem
    Key is saved at: /etc/letsencrypt/live/example.com/privkey.pem
    This certificate expires on 2026-12-31.
    These files will be updated when the certificate renews.
    Certbot has set up a scheduled task to automatically renew this certificate in the background.
    Deploying certificate
    Successfully deployed certificate for example.com to /etc/nginx/sites-enabled/example.com
    Successfully deployed certificate for www.example.com to /etc/nginx/sites-enabled/example.com
    Your existing certificate has been successfully renewed, and the new certificate has been installed.
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    If you like Certbot, please consider supporting our work by:
    * Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
    * Donating to EFF: https://eff.org/donate-le
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    This failure added a third name, shop.example.com, that pointed at an address where nothing answered. It was captured against Pebble, Let’s Encrypt’s test version of its service, and its Detail line is Pebble’s wording; Let’s Encrypt words it differently:

    If a name doesn't point at this server
    Saving debug log to /var/log/letsencrypt/letsencrypt.log
    Renewing an existing certificate for example.com and 2 more domains
    Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
    Domain: shop.example.com
    Type: connection
    Detail: Get "http://shop.example.com:80/.well-known/acme-challenge/z28zUENhc9hQODgP3Vci6TBLiCzJY67oOu-UMY-zebA": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
    Hint: The Certificate Authority failed to verify the temporary nginx configuration changes made by Certbot. Ensure the listed domains point to this nginx server and that it is accessible from the internet.
    Some challenges have failed.
    Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.

    With --expand, list every name the certificate already has after its own -d, then the new one: certbot replaces the certificate with one that has all of them, as certbot’s guide to updating a certificate explains. If it fails, the old certificate stays as it was. Point the new name at this server first, as Host Name Not Found shows, then run the command again.

  4. Run step 2 of Check it yourself again, for the name the monitor checks. It should now be in the list. Then follow Confirm DownBad sees the fix.

The server sends its default certificate instead of this site’s

Section titled “The server sends its default certificate instead of this site’s”

This is the cause when step 2 of Check it yourself lists the names of another site on the same server. When the name your monitor checks matches none of the sites the server is set up for, the server answers with its default site, and sends that site’s certificate. A browser, and DownBad, tells the server which name it wants as it connects, using SNI (Server Name Indication), so each name needs a site of its own, or a place in an existing one.

  1. On nginx, list the lines that say which names each site answers to, which port it listens on and which certificate it sends. This needs sudo, because nginx’s certificate files are readable only by an administrator:

    Terminal window
    sudo nginx -T 2>/dev/null | grep -E "server_name|ssl_certificate |listen"
    If the name has no site of its own
    # server_names_hash_bucket_size 64;
    # server_name_in_redirect off;
    # listen localhost:110;
    # listen localhost:143;
    server { server_name example.com www.example.com; root /var/www/html;
    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; # managed by Certbot
    listen 80; server_name example.com www.example.com;
    listen 443 ssl default_server;
    server_name other.example.net;
    ssl_certificate /etc/letsencrypt/live/other.example.net/fullchain.pem;

    Lines that start with # are switched off, and you can skip them. Here example.com and www.example.com have a site that listens with listen 443 ssl and sends their certificate, so they work. A monitor for blog.example.com fails: no server_name lists it, so nginx hands it to the port’s default server, the site marked default_server, or else the first one, as nginx’s guide to how it handles a request explains. That site sends its own certificate, for other.example.net. A browser names the site it wants as it connects, using SNI, as nginx’s guide to HTTPS servers explains, which is how nginx can send each site its own certificate. If you left out sudo, the command prints nothing at all.

  2. On Apache, the name must be the ServerName or a ServerAlias of a <VirtualHost *:443> block, the part of Apache’s settings for one secure site. Otherwise Apache uses the first such block it reads, as Apache’s guide to name-based virtual hosts explains.

  3. Add the name to the right site’s server_name line on nginx, or as a ServerAlias on Apache, then reload the web server, which makes it read its settings again while it finishes the requests it is already answering. nginx’s guide explains its reload, and Apache’s guide its graceful restart (Apache’s name for a reload). Then get a certificate that covers the name. With certbot, the --expand command in the www cause adds a name to the site’s existing certificate: put the site’s names after -d. On a hosting platform, add the name in its dashboard, as the hosting platform cause explains.

  4. Wait a few seconds after a reload, because a request sent straight after one can still get the old answer. Then run step 2 of Check it yourself again. It should now list your name. Then follow Confirm DownBad sees the fix.

A hosting platform or CDN isn’t set up for this name

Section titled “A hosting platform or CDN isn’t set up for this name”

This is the cause when step 2 of Check it yourself lists names that belong to your hosting company rather than to you, or when you recently pointed the name at a platform or CDN. Until the platform knows the name is yours, it can’t issue a certificate for it.

  1. Add the name to your site in the platform’s dashboard:

    • Vercel: Settings, then Domains, then Add Domain.
    • Netlify: Domain management, then Add a domain, then Add a domain you already own. Netlify issues the certificate once the domain is added, and shows its status under Domain management, then HTTPS.
    • GitHub Pages: in the repository’s Pages settings, type the name under Custom domain and press Save. GitHub requests the certificate once its check of your DNS passes, and says this may take some time.
    • Amazon CloudFront: add the name as an alternate domain name (CloudFront’s term for a name of your own that it answers to), with a certificate that covers it.
  2. Make sure the name points at the platform the way its guide says, with the DNS record (the entry that tells the internet where a name points) it gives you. If the name still points at an old or different server, a certificate issued on that server doesn’t help: point the name at the platform instead.

  3. Run step 2 of Check it yourself again. It should now list your name. Then follow Confirm DownBad sees the fix.

A wildcard certificate doesn’t reach this name

Section titled “A wildcard certificate doesn’t reach this name”

This is the cause when step 2 of Check it yourself lists a wildcard such as *.example.com, and your name has two parts in front of example.com, such as a.shop.example.com, or none, such as example.com itself. A wildcard covers exactly one part.

  1. Get a certificate that covers the exact name, or a wildcard one level deeper, such as *.shop.example.com. Let’s Encrypt issues wildcards only through its DNS-01 challenge, which proves you control the domain with a DNS record, as its list of common questions says. So if your wildcard came from certbot, add the name with one of certbot’s DNS plugins (add-ons that create that record at your DNS host, the company where you manage your domain’s DNS records), as certbot’s guide to DNS plugins explains. The --nginx command in the www cause can’t update a wildcard certificate.

  2. If your site is behind Cloudflare, set up the usual way, with Cloudflare running your domain’s DNS, its free certificate covers your bare name and names one part in front of it, and not deeper ones. Cloudflare’s guide lists what covers them instead: Total TLS, which comes with its paid Advanced Certificate Manager, or a certificate you upload yourself.

  3. On Amazon CloudFront, the same one-part rule decides which names a wildcard certificate lets you add, as CloudFront’s guide shows with examples.

  4. Watch out for one difference: nginx’s own server_name *.example.com matches names any number of parts deep, as nginx’s guide says, so the site can be set up for a name its certificate doesn’t cover.

  5. Run step 2 of Check it yourself again. It should now cover your name. Then follow Confirm DownBad sees the fix.

The monitor checks an IP address or a name your site doesn’t use

Section titled “The monitor checks an IP address or a name your site doesn’t use”

This is the cause when the reason has IP: after altnames:, or when the name after Host: isn’t one your visitors use. DownBad checks exactly what the monitor names, so the certificate must list that name or address.

  1. Open the monitor’s page, press Edit on its Configuration card, and set the SSL monitor’s Domain, or the name in the URL monitor’s URL, to the name your visitors use. Then press Save Monitor.

  2. Run step 2 of Check it yourself for that name. It should be in the list. Then follow Confirm DownBad sees the fix.

  1. Fix the cause first. A check that still fails while you work only adds to the time the incident takes to close.

  2. Open the incident and press Test Now. DownBad checks again within a few seconds instead of waiting for the next scheduled check.

  3. Wait a minute, then reload the incident page, which doesn’t update by itself. The incident closes by itself once enough checks in a row pass. You can’t close an incident by hand.

How many passing checks it takes. While an incident is open, DownBad checks less often after repeated failures. This is called back-off. Each failed check adds one step of back-off, up to 14. Each passing check takes one step away and asks for the next check straight away. When no steps are left, one more passing check closes the incident. So after a steady outage it takes one more passing check than there were failed checks while the incident was open, counting the one that opened it, and never more than 15.

These are the defaults. The monitor’s notification profile can change them for each monitor type under Backoff Config, and its settings are the ones that count: Recovery is how many passing checks in a row, with no back-off left, close the incident (2 by default, counting the check that takes the last step away), and Start after, Rate and Max interval decide when back-off starts and how far it goes. If the profile changes them, the step counts above and the waits below change with them.

How long that takes. After you press Test Now, those passing checks run back to back, a few seconds apart, so the incident usually closes within a minute. It takes longer when checks are slow to finish, such as a page that takes several seconds to load.

If you don’t press Test Now, the first passing check waits for the next scheduled one. With the default settings, from the third failed check on, DownBad waits 5 more minutes for each failure, up to an hour more than the monitor’s usual interval:

Monitor checks everyAfter 1 or 2 failed checksAfter 3After 6After 14 or more
1 minute1 minute6 minutes21 minutes61 minutes
5 minutes5 minutes10 minutes25 minutes65 minutes
1 hour1 hour1 hour 5 minutes1 hour 20 minutes2 hours
1 day1 day1 day 5 minutes1 day 20 minutes1 day 1 hour

Before you ask for help, collect:

  • the link to the incident, and the reason it shows, word for word
  • the output of the command in Check it yourself, and when you ran it, with your time zone
  • what Chrome or SSL Labs showed for the name
  • where your certificate comes from (certbot, a hosting platform, a CDN, or a company you bought it from), and anything you changed recently

Then send all of it to us through Contact Us.