Hello! I recently bought a domain and decided to install a Letsencrypt certificate on it on a Digitalocean droplet. I followed the tutorial here and did
sudo letsencrypt certonly -a webroot --webroot-path=/var/www/html -d example.com -d www.example.com
I also made it pass through Cloudflare for protection and now when I go to hask.me, it work (with Cloudflare SSL) and when I go to https://serverip I get this
(net::ERR_CERT_COMMON_NAME_INVALID). and it doesnt redirect to my domain. but when I use http://serverip , it does redirect to the domain and I dont have any problem.
The thing I would like to fix here is the https://serverip , I also use Nginx
English is my second language sorry about the mistake I made