New certificate err_cert_common_name_invalid error


#1

I installed ssl certificate for betmodo.com, but get an ERR_CERT_COMMON_NAME_INVALID error…any idea what could be the issue

  1. server stack: node.js/express
  2. hosting provider: AWS
  3. OS: ubuntu

funny thing is if I accept to ignore the warning in the browser and “proceed at my own risk” and load the site and view the certificate (by clicking on the lock sign in the URL bar)…it says it is a valid certificate


#2

Hi @satyendra

that’s the problem using a browser. A browser caches redirects, so some urls may be partial invisible.

Checking your domain ( https://check-your-website.server-daten.de/?q=betmodo.com ) it’s simple:

Both http versions redirect direct (without a new dns query) to their https version, this is good (Grade A).

But your certificate

CN=betmodo.com
	27.01.2019
	27.04.2019
	betmodo.com - 1 entry

has only one domain name, so your www - version isn’t secure. But if you confirm, then your browser redirects to the non-www version.

So create one certificate with both domain names:

-d betmodo.com -d www.betmodo.com

and use this certificate.