Skip to content

Gift shoppingAn unfamiliar online shop? Check it for free before you pay.Check a shop

The browser says the certificate is not trusted

Why does the browser report a certificate problem on our website?

Short answer

A certificate warning usually has one of four causes: the certificate has expired, it is not valid for the address the visitor typed, it is not from a public certificate authority, or the full certificate chain was not installed. The browser says which one it is in the details of the warning — the error code is always there. To a visitor all four are indistinguishable from a real attack, which is why this is fixed straight away, not at the next maintenance window.

What is actually going on

The cases that are easy to confuse, and how they differ.

The validity has run out. The error code is usually NET::ERR_CERT_DATE_INVALID. The certificate is otherwise fine; its validity period has simply ended.

The name does not match. The code is usually NET::ERR_CERT_COMMON_NAME_INVALID. Typically the certificate is valid for the domain without www and the visitor came to the www variant, or the other way round.

The issuer is not trusted. The code is usually NET::ERR_CERT_AUTHORITY_INVALID. Most often the certificate is self-signed — on an internal tool that may be intended, on a public service it means a permanent warning.

An incomplete chain. The server sends only its own certificate and leaves out the intermediate. Some browsers cope, some do not, so the error shows only for some people — which makes it the hardest one to track down.

A fifth possibility is on the visitor’s side: a wrongly set clock on their device. You can tell because one person sees the warning and nobody else does.

How to tell what it is

Go through it in this order before you change anything.

  1. 01Click on the details in the warning and read the error code. It answers “which of the four causes” faster than anything else.
  2. 02Open the certificate details and look at three things: whom it was issued to, who issued it and until when it is valid.
  3. 03Try the address with www and without. If you see the warning on only one variant, a name is missing from the certificate.
  4. 04Try it from another device and another network. If only one person sees the warning, suspect the clock on their device.
  5. 05If the website has several servers behind a load balancer, repeat the test several times. Deploying to only some servers looks like a random error.

How Tegmia measures it

What exactly the check does — and what of this situation it cannot measure.

  1. We open one TLS connection to port 443 and read the certificate. We send no request for the website’s content.
  2. We check that the domain name matches with the standard server identity check. On a mismatch we report tls.hostname_mismatch and write into the finding which names the certificate is valid for.
  3. We recognise a self-signed certificate from the verification error and report tls.self_signed.
  4. An incomplete chain, an expired authority certificate in the chain, an untrusted authority or a certificate that is not valid yet we report as tls.chain_untrusted, with the verification error code.
  5. An expired certificate we report as tls.cert_expired with critical severity and the date its validity ended.
  6. We deliberately do not enforce verification in the socket, because we need to be able to read a faulty certificate in order to describe it. The verification result is kept as evidence.

What this does not measure

  • We do not check certificate revocation (OCSP, CRL).
  • We check port 443 on the domain you entered. The www variant is a separate domain and has to be added to the account on its own.

The rules that apply

Straight from the catalogue of findings. You will see the same text in the report.

The certificate is no longer valid

Critical

tls.cert_expired · Certificate and TLS

Browsers show a warning page on such a site. Most customers leave, and payments through it will not go through.

What to do: Renew the certificate with your hosting provider or switch on automatic renewal (ACME / Let’s Encrypt). After renewing, check that the new certificate has been deployed to every server behind the load balancer.

Default severity critical: Deal with it now. The flaw can be exploited from outside or is already breaking the service. The full rule in the catalogue

The certificate is not valid for this domain

High

tls.hostname_mismatch · Certificate and TLS

The name in the certificate does not match the address the service runs on. The browser shows a warning, and a visitor cannot tell a configuration mistake from a real attack.

What to do: Have a certificate issued that includes this domain (or add it to the SAN of the existing one). Also check the redirect between the www and non-www versions.

Default severity high: Plan it within a week. It makes a successful attack considerably more likely. The full rule in the catalogue

The certificate was not issued by a trusted authority

High

tls.self_signed · Certificate and TLS

Nobody outside can verify a self-signed certificate. For a public service, that means a permanent warning in the browser.

What to do: Deploy a certificate from a public certificate authority. For an ordinary website, the free option via ACME is enough.

Default severity high: Plan it within a week. It makes a successful attack considerably more likely. The full rule in the catalogue

The certificate cannot be traced back to a trusted authority

High

tls.chain_untrusted · Certificate and TLS

Usually the server does not send the intermediate certificate or sends one that has already expired, the certificate was issued by an authority browsers do not trust, or the certificate is not valid yet. Common browsers often find a missing intermediate certificate on their own. Phone apps and services that connect to the site automatically may not, and will refuse the connection.

What to do: Deploy the full current chain on the server: the certificate and the intermediate certificates the authority issues now (for Let’s Encrypt, the file fullchain.pem, not cert.pem). Deploy a certificate that is not yet valid only once its validity begins, or have a new one issued.

Default severity high: Plan it within a week. It makes a successful attack considerably more likely. The full rule in the catalogue

The certificate expires in less than 14 days

High

tls.cert_expiring_soon · Certificate and TLS

If automatic renewal fails, the site will stop working within two weeks. Most HTTPS outages happen exactly this way.

What to do: Check that automatic renewal is running and has access to the domain. If you renew the certificate by hand, plan the renewal before the end of this week.

Default severity high: Plan it within a week. It makes a successful attack considerably more likely. The full rule in the catalogue

A typical misconfiguration

A certificate issued only for the domain without www, while the website runs on both variants. Everything looks fine until someone types the other one — and because both lead to the same server, nobody finds it odd.

The second state: a renewed certificate deployed on only one of two servers. Half of the visitors see a warning, depending on where their connection lands.

How to fix it

Specific steps, in the order in which they make sense.

  1. 01Use the error code to work out the cause. Without it you are fixing blind.
  2. 02Expired: issue a new certificate and deploy it. The procedure, and how to find out why renewal failed, has its own page.
  3. 03Missing name: have the certificate issued again with both variants of the domain (SAN). With ACME it is enough to add the domain to the configuration.
  4. 04Replace a self-signed certificate on a public service with one from a public authority; for an ordinary website the free option via ACME is enough.
  5. 05Incomplete chain: deploy the whole bundle including the intermediate certificate, the way the authority supplies it.
  6. 06After the fix, check what the server actually sends — on every server that serves the domain, not just one.

Check it on your own domain

We read only what the domain has published.

The scan reads the domain’s public records and configuration and shows which part of this situation applies to you. You get the result with the evidence we based it on.

Related checks

  • SSL certificate check

    What one TLS connection reveals about a certificate: the issuer, the domain names, the key strength and the protocol version.

  • Certificate expiry check

    When a certificate expires, how far ahead we warn depending on its validity period, and what changes as the maximum validity gets shorter.

  • HTTP to HTTPS redirect check

    How we measure that a website does not stay on an unencrypted connection, and why the www variant is so often forgotten.

Last updated 3 November 2026. We write this page by hand and correct it when what we measure changes. Found a mistake? Tell us via the contact page.