net::ERR_CERT_COMMON_NAME_INVALID

I have a domain (sahaypay.com) that is pointing to my firebase application which is secured by an SSL certificate auto-generated by Google, and I also have a subdomain (server.sahaypay.com) which points to my server which is also secured by SSL generated by lets-encrypt. The problem is as follows

when I make an API request from my application hosted on firebase to my locally hosted server I am getting net::ERR_CERT_COMMON_NAME_INVALID

My web server is (include version): node js

The operating system my web server runs on is (include version): windows server 2016

Hi @amo

your exact command is required.

May be you use the ip address or a wrong domain name.

1 Like

ooh yeah, I am using an IP address to make a request to the server using HTTPS protocol.
my exact command is https://myip:port

That won’t work, because the IP address isn’t included in the certificates subjectAltNames. Currently, Let’s Encrypt doesn’t support IP addresses in the subjectAltNames, so you’re required to use a FQDN (hostname) which is included in the certificate.

1 Like

Then change it.

With the ip, the result is expected.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.