#!/bin/bash # Default values are commented #CA="https://acme-v01.api.letsencrypt.org" #WELLKNOWN=".acme-challenges" #KEYSIZE=4096 #BASEDIR=./ #OPENSSL_CNF=.... # system default (see openssl version -d) #ROOTCERT="lets-encrypt-x1-cross-signed.pem" # Program or function called in certain situations # # After generating the challenge-response, or after failed challenge # Given arguments: clean_challenge|deploy_challenge token-filename token-content # # After successfully signing certificate # Given arguments: deploy_cert path/to/privkey.pem path/to/cert.pem path/to/fullchain.pem # # BASEDIR and WELLKNOWN variables are exported and can be used in an external program #HOOK= # try to renew certs that are within RENEW_DAYS days of their expiration date #RENEW_DAYS="14" # create new private key for each csr (yes|no) #PRIVATE_KEY_RENEW=no # email to use during the registration #CONTACT_EMAIL=