I'm setting up a Web API based on NodeJS and want to support HTTPS. Where can I get a valid SSL certificate?
I have a Windows VM running on a given IP address that is hosting a NodeJS API on a specific port. Everything works fine via HTTP but when I change it to HTTPS I get this error: ERR_CERT_COMMON_NAME_INVALID
https://i.ibb.co/cxvmZBf/Capture.png (Sorry, not enough reputation points)
I've tried many approaches including using a valid certificate associated with a sub-domain and redirecting it to the VM's address. Also, I've created a DNS Type A, and configured the given IP address. Then, with Let's Encrypt Certbot I've tried to generate a valid non-signed certificate but I've reached inconclusive errors due to incompatible IP settings.
Is it possible to buy a certificate to the given IP? If so, where? What other approaches can I try?