Find the cause of Chrome's privacy warning from the code under it

Your connection is not private is Chrome's warning that the certificate a site sent failed one of its checks, and the heading stays the same for most failures. The code printed under it, such as NET::ERR_CERT_DATE_INVALID, is what tells you the cause. When every visitor sees the warning, the certificate on your server is at fault; when only one device or network sees it, start there.

What the code under the warning means

CodeWhat failedHow to fix it
NET::ERR_CERT_DATE_INVALIDThe certificate has expired, or isn't valid yet, by the visitor's clock.Renew it, then reload whatever serves HTTPS so it sends the new one.
NET::ERR_CERT_COMMON_NAME_INVALIDThe certificate doesn't cover the address in the address bar, such as the www version of your domain.Get a certificate that lists every name visitors use.
NET::ERR_CERT_AUTHORITY_INVALIDChrome can't trace the certificate to an authority it trusts, as with a self-signed certificate or a missing intermediate.Install a certificate from a public authority and send the full chain.
NET::ERR_CERT_REVOKEDThe certificate has been revoked, and Chrome gives visitors no way past this warning.Replace it with a newly issued certificate.
NET::ERR_CERT_WEAK_SIGNATURE_ALGORITHMThe certificate is signed with a weak signature algorithm.Replace it with a newly issued certificate.
NET::ERR_CERTIFICATE_TRANSPARENCY_REQUIREDChrome requires public certificates to come with proof they were publicly logged, and this one didn't meet Chrome's policy.Replace it with a newly issued certificate, and ask your certificate authority if the error comes back.

Ask openssl why the certificate fails

# Verify the certificate yoursite.com sends, including the name it covers
echo | openssl s_client -connect yoursite.com:443 -servername yoursite.com \
  -verify_hostname yoursite.com 2>/dev/null | grep -E "Verify return code|no peer certificate"

Match the openssl result to Chrome's code

  • 0 (ok) means openssl trusts the certificate and it covers the name, unless the output also says no peer certificate available: then the handshake failed before any certificate arrived, and the 0 means nothing. Run the command again without 2>/dev/null to see why it failed. A message that the certificate has expired or isn't yet valid matches NET::ERR_CERT_DATE_INVALID, hostname mismatch matches NET::ERR_CERT_COMMON_NAME_INVALID, and self-signed certificate, unable to get local issuer certificate or unable to verify the first certificate match NET::ERR_CERT_AUTHORITY_INVALID. OpenSSL's verification error list explains each message, and its verification options cover -verify_hostname. Each of the three codes has its own guide, linked at the end of this page.

  • If openssl reports 0 (ok) but visitors still see the warning, test each address your domain points to, since a CDN location or a second server can send a different certificate. If those pass too, the cause is on the visitor's side, and the list below sorts it by who sees the warning.

Who sees the warning points to the cause

  • Every visitor on every network

    The certificate your server or CDN sends is the problem. Read the code and fix the certificate.

  • Only one hostname, such as www

    That name is missing from the certificate, or DNS sends it to a server set up for a different site.

  • One computer or phone

    Check that device's date and time; Chrome shows "Your clock is behind" or "Your clock is ahead" when it spots a wrong clock. Then check any antivirus software that scans HTTPS traffic.

  • One network, such as an office or cafe

    A Wi-Fi sign-in page or a proxy that inspects HTTPS is swapping in its own certificate. A work proxy usually shows NET::ERR_CERT_AUTHORITY_INVALID on devices missing its certificate.

Chromium lists each certificate code in net_error_list.h, and for the date, name and authority codes it names possible causes: a misconfigured server, a wrong clock, a network login page and an attacker. Chrome's error guide covers the steps for visitors, including the clock warnings.

Frequently asked questions

Can visitors click past the warning?

Often, yes: Chrome's Advanced button reveals a link to proceed that it marks unsafe. Chrome leaves that link out for a revoked certificate and for a site that uses HSTS, and says the site can't be visited right now instead. Chromium's interstitial strings hold the wording for each case.

Does the warning mean someone is attacking my site?

Not necessarily. Chromium's error list names an attacker and a misconfigured server as possible causes of the same codes, and one connection can't tell them apart. Check the certificate your server sends with openssl before assuming an attack.

Why does Chrome say attackers might steal passwords?

That sentence appears on every version of this warning, whatever the code says. Chrome can't confirm who it's talking to, so it warns that information sent to the site could reach someone else. The code under the heading tells you what actually failed.

How do I get a warning before my SSL certificate expires?

SiteCMD emails you before your SSL certificate runs out, so a renewal that failed reaches you before your visitors do.