Question

How to renew certificate

Hello.

I have my wordpress site in a droplet.

The staging site has been offline for a while and the certificate failed to renew on time. I brought it up for some testing and it didn’t update. Ok, I thought it was too late. I generated one manually yesterday using certbot and the certificate is there, but the site is still with the old. I already restarted the droplet twice and stopped-started the docker service. No changes.

So, my questions are:

  1. How can I make the server use this certificate and not the old one?
  2. My production site certificate will expire in a few days and hasn’t renewed also. Will a “certbot renew” be enough or is the same issue?

Any advice?

Thanks in advance.

Subscribe
Share

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.

Hello, @sarariobom

If you’ve installed certbot it should run regularly on a corn job to make sure all SSLs are automatically renewed.

To test the renewal process, you can do a dry run with certbot:

  1. sudo certbot renew --dry-run

If you see no errors, you’re all set. When necessary, Certbot will renew your certificates and reload Apache to pick up the changes. If the automated renewal process ever fails, Let’s Encrypt will send a message to the email you specified, warning you when your certificate is about to expire.

You can find the information in our tutorial as well:

https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-20-04#step-5-—-verifying-certbot-auto-renewal

Regards, Alex