Skip to content

Commit

Permalink
Add more CA presets
Browse files Browse the repository at this point in the history
Now that support for CA presets is implemented, add some more:

- letsencrypt-test (LE staging CA)
- buypass (verified to work with the new json parsing, see dehydrated-io#653)
- buypass-test analogously
  • Loading branch information
danimo committed Sep 17, 2020
1 parent b3abc41 commit 923bd51
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions dehydrated
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,9 @@ load_config() {
# Preset
CA_ZEROSSL="https://acme.zerossl.com/v2/DV90"
CA_LETSENCRYPT="https://acme-v02.api.letsencrypt.org/directory"
CA_LETSENCRYPT_TEST="https://acme-staging-v02.api.letsencrypt.org/directory"
CA_BUYPASS="https://api.buypass.com/acme/directory"
CA_BUYPASS_TEST="https://api.test4.buypass.no/acme/directory"

# Default values
CA="letsencrypt"
Expand Down Expand Up @@ -432,8 +435,14 @@ load_config() {
# Preset CAs
if [ "${CA}" = "letsencrypt" ]; then
CA="${CA_LETSENCRYPT}"
elif [ "${CA}" = "letsencrypt-test" ]; then
CA="${CA_LETSENCRYPT_TEST}"
elif [ "${CA}" = "zerossl" ]; then
CA="${CA_ZEROSSL}"
elif [ "${CA}" = "buypass" ]; then
CA="${CA_BUYPASS}"
elif [ "${CA}" = "buypass-test" ]; then
CA="${CA_BUYPASS_TEST}"
fi

if [[ -z "${OLDCA}" ]] && [[ "${CA}" = "https://acme-v02.api.letsencrypt.org/directory" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/config
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#IP_VERSION=

# URL to certificate authority or internal preset
# Presets: letsencrypt, zerossl
# Presets: letsencrypt, letsencrypt-test, zerossl, buypass, buypass-test
# default: letsencrypt
#CA="letsencrypt"

Expand Down

0 comments on commit 923bd51

Please sign in to comment.