First log into the machine containing Certbot and access the user who has permissions to execute the command or use sudo.

To check when your cert(s) are about to expire:

sudo certbot certificates

You can renew your cert(s) with this command. It will check if any certs have less than 30 days until it expires, if so it will renew.

sudo certbot renew

You can chose to only renew a cert for a domain by using the d option.

sudo certbot certonly -d example.com

If no certs are renewable, then you can wait or force certbot to renew the cert(s) with this command.

sudo certbot renew --force-renew

Once certificates are renewed you should see a message stating: Congratulations, all renewals succeeded, with a list of the renewed domains.

Share this content: