Update to acme v2

This commit is contained in:
巢鹏 2019-10-11 10:30:30 -04:00 committed by GitHub
parent 60310354e8
commit e9fb0cfe4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -60,8 +60,8 @@ auto_enable_configs() {
# EMAIL environment variable, to register the proper support email address.
get_certificate() {
echo "Getting certificate for domain $1 on behalf of user $2"
PRODUCTION_URL='https://acme-v01.api.letsencrypt.org/directory'
STAGING_URL='https://acme-staging.api.letsencrypt.org/directory'
PRODUCTION_URL='https://acme-v02.api.letsencrypt.org/directory'
STAGING_URL='https://acme-staging-v02.api.letsencrypt.org/directory'
if [ "${IS_STAGING}" = "1" ]; then
letsencrypt_url=$STAGING_URL