1 ########################################################
2 # This is the main config file for dehydrated #
4 # This file is looked for in the following locations: #
5 # $SCRIPTDIR/config (next to this script) #
6 # /usr/local/etc/dehydrated/config #
7 # /etc/dehydrated/config #
8 # ${PWD}/config (in current working-directory) #
10 # Default values of this config are in comments #
11 ########################################################
13 # Resolve names to addresses of IP version only. (curl)
14 # supported values: 4, 6
18 # Path to certificate authority (default: https://acme-v01.api.letsencrypt.org/directory)
19 #CA="https://acme-staging.api.letsencrypt.org/directory"
20 CA="https://acme-v01.api.letsencrypt.org/directory"
22 # Path to certificate authority license terms redirect (default: https://acme-v01.api.letsencrypt.org/terms)
23 #CA_TERMS="https://acme-staging.api.letsencrypt.org/terms"
24 CA_TERMS="https://acme-v01.api.letsencrypt.org/terms"
26 # Path to license agreement (default: <unset>)
29 # Which challenge should be used? Currently http-01 and dns-01 are supported
30 #CHALLENGETYPE="http-01"
32 # Path to a directory containing additional config files, allowing to override
33 # the defaults found in the main configuration file. Additional config files
34 # in this directory needs to be named with a '.sh' ending.
38 # Base directory for account key, generated certificates and list of domains (default: $SCRIPTDIR -- uses config directory if undefined)
41 # File containing the list of domains to request certificates for (default: $BASEDIR/domains.txt)
42 #DOMAINS_TXT="${BASEDIR}/domains.txt"
44 # Output directory for generated certificates
45 #CERTDIR="${BASEDIR}/certs"
47 # Directory for account keys and registration information
48 #ACCOUNTDIR="${BASEDIR}/accounts"
50 # Output directory for challenge-tokens to be served by webserver or deployed in HOOK (default: /var/www/dehydrated)
51 #WELLKNOWN="/var/www/dehydrated"
52 WELLKNOWN="/usr/local/apache2/htdocs/.well-known/acme-challenge/"
54 # Default keysize for private keys (default: 4096)
57 # Path to openssl config file (default: <unset> - tries to figure out system default)
60 # Path to OpenSSL binary (default: "openssl")
63 # Extra options passed to the curl binary (default: <unset>)
66 # Program or function called in certain situations
68 # After generating the challenge-response, or after failed challenge (in this case altname is empty)
69 # Given arguments: clean_challenge|deploy_challenge altname token-filename token-content
71 # After successfully signing certificate
72 # Given arguments: deploy_cert domain path/to/privkey.pem path/to/cert.pem path/to/fullchain.pem
74 # BASEDIR and WELLKNOWN variables are exported and can be used in an external program
78 # Chain clean_challenge|deploy_challenge arguments together into one hook call per certificate (default: no)
81 # Minimum days before expiration to automatically renew certificate (default: 30)
84 # Regenerate private keys instead of just signing new certificates on renewal (default: yes)
85 #PRIVATE_KEY_RENEW="yes"
86 PRIVATE_KEY_RENEW="no"
88 # Create an extra private key for rollover (default: no)
89 #PRIVATE_KEY_ROLLOVER="no"
91 # Which public key algorithm should be used? Supported: rsa, prime256v1 and secp384r1
94 # E-mail to use during the registration (default: <unset>)
95 CONTACT_EMAIL=webmaster@{{ virtual_host }}
97 # Lockfile location, to prevent concurrent access (default: $BASEDIR/lock)
98 #LOCKFILE="${BASEDIR}/lock"
100 # Option to add CSR-flag indicating OCSP stapling to be mandatory (default: no)
101 #OCSP_MUST_STAPLE="no"
103 # Fetch OCSP responses (default: no)
106 # Issuer chain cache directory (default: $BASEDIR/chains)
107 #CHAINCACHE="${BASEDIR}/chains"
109 # Automatic cleanup (default: no)