PATH=/sbin:/usr/sbin:/bin:/usr/bin # Replace letsencrypt with certbot / certbot-auto or the full path to letsencrypt command # Replace nginx test and reload with relevant HTTP server # Try renewing certs once a week 0 0 * * 0 root letsencrypt renew && nginx -t && service nginx reload # certbot-auto with apache2 #0 0 * * 0 root certbot-auto renew && apache2ctl configtest && service apache2 reload