Skip to main content

Certbot - List, renew, and delete certificates


sudo certbot certificates
Saving debug log to /var/log/letsencrypt/letsencrypt.log
  Certificate Name:
    Expiry Date: 2024-04-10 05:00:55+00:00 (VALID: 31 days)
    Certificate Path: /etc/letsencrypt/live/
    Private Key Path: /etc/letsencrypt/live/


Renew one certificate:

sudo certbot renew --cert-name

Renew with different domains:

sudo certbot certonly --nginx --cert-name "" --renew-with-new-domains -d ","

Side note: Add --dry-run option at first to see what certbot would do.

Don’t forget to restart the application.


sudo certbot delete
Saving debug log to /var/log/letsencrypt/letsencrypt.log

Which certificate(s) would you like to delete?
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel):

or with the name of the certificate:

sudo certbot delete --cert-name