Skip to content

Commit

Permalink
use new acme-v02 endpoint by default
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas2511 committed Mar 13, 2018
1 parent 8a414e5 commit 947dbb9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ This file contains a log of major changes in dehydrated

## [x.x.x] - xxxx-xx-xx
## Changed
- ??
- Use new ACME v2 endpoint by default

## Added
- ??
Expand Down
6 changes: 5 additions & 1 deletion dehydrated
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ load_config() {
fi

# Default values
CA="https://acme-v01.api.letsencrypt.org/directory"
CA="https://acme-v02.api.letsencrypt.org/directory"
OLDCA=
CERTDIR=
ACCOUNTDIR=
Expand Down Expand Up @@ -218,6 +218,10 @@ load_config() {
# Check BASEDIR and set default variables
[[ -d "${BASEDIR}" ]] || _exiterr "BASEDIR does not exist: ${BASEDIR}"

if [[ -z "${OLDCA}" ]] && [[ "${CA}" = "https://acme-v02.api.letsencrypt.org/directory" ]]; then
OLDCA="https://acme-v01.api.letsencrypt.org/directory"
fi

# Create new account directory or symlink to account directory from old CA
CAHASH="$(echo "${CA}" | urlbase64)"
[[ -z "${ACCOUNTDIR}" ]] && ACCOUNTDIR="${BASEDIR}/accounts"
Expand Down

0 comments on commit 947dbb9

Please sign in to comment.