letsencrypt for nginx renew code example
Example 1: letsencrypt auto renew nginx
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
0 */12 * * * root certbot -q renew --nginx
Example 2: how to renew let's encrypt certificate nginx
sudo certbot renew --nginx