Solved: NET::ERR_CERT_COMMON_NAME_INVALID

Better Stack Team
Updated on May 4, 2022

Problem

NET::ERRCERTCOMMONNAMEINVALID error when opening your website.

Cause of the problem

A NET::ERRCERTCOMMONNAMEIN error occurs when the domain the SSL certificate is installed on is not listed on the certificate (either as the common name, subject alternative name or covered by a wildcard).

Solution

Check if the domain has the correct certificate installed

The most common reason for this error to occur is installing an incorrect certificate to a domain. The easiest way to check whether this is to inspect the certificate and compare the issued to domain information to the domain the certificate is installed on.

Check redirects and www vs. non-www

Check if the browser is not redirecting users to the other version of your website. Then check if you're forcing the traffic through the www version of your domain. Some certificates don't cover www versions along with non-www versions.

Got an article suggestion? Let us know
Explore more
Licensed under CC-BY-NC-SA

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

We are hiring.

Software is our way of making the world a tiny bit better. We build tools for the makers of tomorrow.

Explore all positions →

Reliability is the
ultimate feature

Delightful observability tools that turn your logs & monitoring into a secret weapon for shipping better software faster.

Explore Better Stack