Renewal notes
certbot –nginx certonly -n -d domain1.com
certbot –nginx certonly -n -d domain1.com –force-renewal –dry-run
certbot renew –deploy-hook /path/to/deploy-hook-script
certbot renew –pre-hook “service nginx stop” –post-hook “service nginx start”
–apache for apache server, use –nginx flag for nginx server
-n option execute the command without prompt
-d domain1.com to execute only for domain1.com
You can test with –dry-run, and you can use –pre-hook and –post-hook like with certbot renew
Cerbot Guide : https://certbot.eff.org/docs/using.html#renewing-certificates
Remove from Reverse Proxy: https://www.datanovia.com/en/lessons/how-to-remove-a-domain-from-certbot-and-nginx/
On VTS LB
sudo certbot certonly --nginx --force-renewal --post-hook "service nginx restart" -d sub1.example.com -d sub2.example.com --redirect