certbot renew certificate nginx code example
Example 1: certbot renew
sudo certbot renew --dry-run
Example 2: certbot remove certificate nginx
# Show the list of certificates
certbot certificates
# Remove certificates for a given domain
sudo certbot delete --cert-name $mydomain
Example 3: certbot dry run renew
certbot renew
Example 4: how to renew let's encrypt certificate nginx
sudo certbot renew --nginx