Friday, May 25, 2018

Letsencrypt renewal command thats working for me

I had problem with my configuration for letsencrypt certificate so I searched a little. I did not wanted to waste too much time in fixing the configuration. I just figured out how it will work for me.
I am noting down the renewal command here for further usage.

I am using the standalone method for renewal so first stop the nginx server to free up the port
service nginx stop

then run this command for renewal:
sudo certbot certonly --standalone --preferred-challenges http -d domain.com

Thats it