It produced this output:
NET::ERR_CERT_COMMON_NAME_INVALID
My web server is (include version):
A Google Cloud compute instance (free-tier) with public IP address 35.212.220.106. The operating system my web server runs on is (include version):
Ubuntu 18.04.3 LTS
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don’t know):
Yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel):
no…?
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot):
certbot 1.2.0
Other Thoughts
Since I am running this website off of a compute engine, I wanted to redirect my name – haveibeenexploited – to the IP address and serve my website there. This works, but I am getting the error mentioned, I think, because my cert is not for public IP address 35.212.220.106, but is for *.haveibeenexploited.com
Is there a way to make this error go away and provide HTTPS encryption for my website?
You don't need to redirect your domain name.
Just make an virtualhost with the domain on your server, and point your domain to the server.
You'll be able to use the certificate directly with your domain.
P.S. This means, set A record for your domain to 35.212.220.106 instead of using the current redirection service.
Thank you so much! I will try everything you said. Also, the A record works great.
I got it working without the Apache server, but I think that it is going to be best to do what you suggested since the way is kind of hardcoded with certificates.
Again, thanks so much for your help! Probably the best help I’ve ever gotten online!