Unable to renew let's encrypt certificate

Posted November 1, 2016 9.7k views

Hello DOies,

Following the link below to set up auto renew certificate.

At step 4 when I execute the command

> certbot-auto renew

command not found.

Can someone direct me from where the command should be executed. I am executing from home directory.

Thank you,

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
3 answers


First you have to install certbot :

Step 1 in

Then you can go back to Step 4 and use certbot-auto renew

by Mitchell Anicas
In this tutorial, we will show you how to use Let's Encrypt to obtain a free SSL certificate and use it with Nginx on Ubuntu 14.04. We will also show you how to automatically renew your SSL certificate. If you're running a different web server, simply follow your web server's documentation to learn how to use the certificate with your setup.
  • Thank much @romain821d4c16d . I was able renew my certificate. Now I have trouble starting the node js app using pm2. Its because pm2 is unable to take NODE_ENV variable. My server.js is reading ‘env’ variable to pick the appropriate environment logger settings and configuration.

    'env’ is read as 'development’ and which is not what I am looking for. Can you suggest me how to set the environment variable NODE_ENV to 'prod’ once and for all so that whenever I use pm2 start <appname> it should read as 'prod’.

    Look forward to hear from you.

I’m getting an error with sudo letsencrypt renew

WARNING:letsencrypt.cli:Attempting to renew cert from /etc/letsencrypt/renewal/ produced an unexpected error: ‘server’. Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/ (failure)
1 renew failure(s), 0 parse failure(s)

I already have the certificate, but it is expired, when I type in the terminal “certbot renew” I get the same error. I’m inside the “certbot” folder ....... can anyone help me if: 1) am I on the right track? if not the correct path, and 2) how do I solve it?

Thank you.