Skip to content

Commit

Permalink
add more CAs, now that support for CA presets is implemented
Browse files Browse the repository at this point in the history
- 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 4a7de4b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ This file contains a log of major changes in dehydrated
## Added
- Support for external account bindings
- Special support for ZeroSSL
- Support presets for some CAs instead of requiring URLs

## Fixed
- No more silent failures on broken hook-scripts
Expand Down
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 4a7de4b

Please sign in to comment.