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
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.