Last year I decided enable https in my server. I am using a digital ocean node and I followed the tutorial:, but I didn’t enable the auto renew of the certificate. Why ??

After one year the certificate was experied and this is what you see when you access the page:

My problem was I can run the command in the tutorial [1] to renew because I change the nginx root path to the jekyll root in /var/www/

So to renew the https certificate I have to change the webroot.The command to do this:

certbot certonly --force-renewal -a webroot -d -w 
/var/www/ -d

Happy day!

[1] sudo certbot certonly –webroot –webroot-path=/var/www/html -d -d

Post created with only markdown editor: