letsencrypt_pre.sh and letsencrypt_post.sh

Version 1.501


Custom scripts for before and after calls to letsencrypt.sh. Environmental variables: acme-challenge-dir=/var/www/html/.well-known/acme-challenge OR /home/fred/domains/domain.com/public_html/.well-known/acme-challenge username=fred domain=domain.com action=request|renew|revoke keysize=2048|4096 (Note: LE only supports 2048 bit at this time, so regardless of what's passed, you'll get a 2048 bit cert) the letsencrypt_post.sh has all of the above, with the addition of: exit_code=0|# where 0 means everything worked during the letsencrypt.sh call. The letsencrypt_pre.sh must exit with a zero status, or the process will abort. The exit status of letsencrypt_post.sh will not affect any aborts since everything is already done.

Interested to try DirectAdmin? Get a 30-day Free Trial!