Certificate covers www and non-www

How the scan checks that the certificate of the other version of your address (www or no www) covers its name, and why a mismatch fails.

What AuditX checks

This check only applies when the address you scanned is your bare domain or exactly www plus that domain. For any other subdomain it is an info note that says it does not apply. Otherwise the scan looks at the other version of the address and makes one secure connection to port 443 of that host, asking for that name. It reads the certificate that comes back without testing whether it is expired or trusted; only the names on it are judged. A name is covered when it matches an entry in the certificate list of names exactly, or matches a wildcard entry such as *.example.com that stands in for exactly one label, or equals the certificate common name. A wildcard does not cover the bare domain itself. The check passes when the name is covered. It fails when the host answers over https but the certificate does not cover its name; the message lists up to 4 names that the certificate does cover. It is an info note, which does not lower the score, when the other host has no DNS record, because a one-hostname setup is fair. If the connection did not complete (for example when port 443 is closed), the result is an info note marked as not measured, and a security score that has any check not measured cannot go above 79. A failed connection is retried once. The scan does not check expiry or the chain of the other host; the certificate of the host you scanned is a separate check.

Why it matters

A certificate is only valid for the names it lists. The Let’s Encrypt FAQ explains that one certificate can hold several names through the Subject Alternative Name field, so one certificate can cover both versions of your address.

web.dev notes that https is how visitors know they are talking to the real site. Anyone who types or follows the other version of your address then meets a security warning before they ever reach your pages.

How to fix it

  1. Find which version the warning names (www or the bare domain) and open its certificate in the browser to see its list of names.
  2. Reissue or extend the certificate so that it lists both example.com and www.example.com. Most certificate providers and hosts let you add a name to an existing order.
  3. If you use a wildcard certificate, add the bare domain as a second name, since a wildcard alone does not cover it.
  4. Install the new certificate, then open both addresses in a browser and check there is no warning.
Subject Alternative Name:
  DNS:example.com
  DNS:www.example.com

Does your site pass this check? A free scan runs it with every other check and shows the result in about a minute.

Scan my site

Sources

Related checks

Last reviewed 2026-11-13.