Auto Letsencrypt

Automatically adds or removes domains from existing SSL Certificate generated by certbot.

This plugin requires that the user running PHP-FPM can run function exec and has sudo access to following commands:

service nginx reload
nginx -t

To add these commands to be sudoed you can create a file named /etc/sudoers.d/auto-letsencrypt with the following content:

someuser ALL = NOPASSWD: /usr/sbin/service nginx reload
someuser ALL = NOPASSWD: /usr/bin/certbot
someuser ALL = NOPASSWD: /usr/sbin/nginx -t

Replace someuser with the actual username of the user running PHP-FPM.