]> git.street.me.uk Git - andy/dehydrated.git/blame - config.sh.example
- make private key a config option
[andy/dehydrated.git] / config.sh.example
CommitLineData
c70b77a9
LS
1#!/bin/bash
2
cb6dc26c
LS
3########################################################
4# This is the config file for letsencrypt.sh #
5# #
6# This file is looked for in the following locations: #
7# $SCRIPTDIR/config.sh (next to this script) #
454c164b
LS
8# ${HOME}/.letsencrypt.sh/config.sh (in user home) #
9# /usr/local/etc/letsencrypt.sh/config.sh #
10# /etc/letsencrypt.sh/config.sh #
11# ${PWD}/config.sh (in current working-directory) #
cb6dc26c
LS
12# #
13# Default values of this config are in comments #
14########################################################
f11bb1db 15
09729186
LS
16# Path to certificate authority (default: https://acme-v01.api.letsencrypt.org/directory)
17#CA="https://acme-v01.api.letsencrypt.org/directory"
18
19# Path to license agreement (default: https://letsencrypt.org/documents/LE-SA-v1.0.1-July-27-2015.pdf)
20#LICENSE="https://letsencrypt.org/documents/LE-SA-v1.0.1-July-27-2015.pdf"
cb6dc26c
LS
21
22# Output directory for challenge-tokens to be served by webserver or deployed in HOOK (default: $SCRIPTDIR/.acme-challenges)
23#WELLKNOWN="${SCRIPTDIR}/.acme-challenges"
24
0e92aba2
MG
25# Location of private account key
26#PRIVATE_KEY=${BASEDIR}/private_key.pem
27
cb6dc26c
LS
28# Default keysize for private keys (default: 4096)
29#KEYSIZE="4096"
30
454c164b
LS
31# Base directory for account key, generated certificates and list of domains (default: $SCRIPTDIR -- uses config directory if undefined)
32#BASEDIR=$SCRIPTDIR
cb6dc26c
LS
33
34# Path to openssl config file (default: <unset> - tries to figure out system default)
35#OPENSSL_CNF=
36
37# Name of root certificate (default: lets-encrypt-x1-cross-signed.pem)
329acb58 38#ROOTCERT="lets-encrypt-x1-cross-signed.pem"
b33f1288 39
c24843c6 40# Program or function called in certain situations
41#
f527eef8 42# After generating the challenge-response, or after failed challenge (in this case altname is empty)
e32ea24c 43# Given arguments: clean_challenge|deploy_challenge altname token-filename token-content
c24843c6 44#
45# After successfully signing certificate
e32ea24c 46# Given arguments: deploy_cert domain path/to/privkey.pem path/to/cert.pem path/to/fullchain.pem
c24843c6 47#
48# BASEDIR and WELLKNOWN variables are exported and can be used in an external program
cb6dc26c 49# default: <unset>
c24843c6 50#HOOK=
e300c0a1 51
cb6dc26c 52# Minimum days before expiration to automatically renew certificate (default: 14)
ff3dbc58 53#RENEW_DAYS="14"
3dbbb461 54
cb6dc26c
LS
55# Regenerate private keys instead of just signing new certificates on renewal (default: no)
56#PRIVATE_KEY_RENEW="no"
ea5b70a3 57
cb6dc26c 58# E-mail to use during the registration (default: <unset>)
ea5b70a3 59#CONTACT_EMAIL=