How to update Let's Encrypt certification

In Ubuntu server 16.04 with LAMP, I had installed Let’s encrypt certification follow this guide!

However, now the command certbot renew --dry-run messed up the server and I had to reboot it in order to get back to normal…

So my question is how can I update my certificate?

Thanks a lot!


I am not sure if any files were modified. I noticed only that the site was not accessible with an error message like “connection is refused” and then I restarted my entire server.

When you do your renewal dry run, do your apache config files become modified or does it just turn apache off for a moment?

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.


What I would suggest in this case is:

  • Schedule a maintenance window for your website and run the renewal again

  • If this takes down Apache again, what you need to do is to check your Apache error log at: /var/log/apache2/error.log and also run a config test with:

apachectl -t

This would point you to the error that is preventing Apache from starting.

If you are not sure you could paste your Apache config here along with some of the errors that you are seeing in the error log and the output of the apachectl -t config test.

Hope that this helps! Regards, Bobby

This comment has been deleted