From b4f72454b6dc42b3f1945eac969c4f1c90dfde24 Mon Sep 17 00:00:00 2001 From: Jeff Wong Date: Sat, 2 Aug 2025 23:56:43 -0700 Subject: [PATCH] Force switch to default staging CA when staging flag is detected. --- acme.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/acme.sh b/acme.sh index 10a44fa3..cc4c0dbb 100755 --- a/acme.sh +++ b/acme.sh @@ -5454,7 +5454,10 @@ renew() { . "$DOMAIN_CONF" _debug Le_API "$Le_API" - if [ -z "$STAGE" ]; then + if [ "$STAGE" ]; then + _info "Switching to $DEFAULT_STAGING_CA" + $Le_API="$DEFAULT_STAGING_CA" + else case "$Le_API" in "$CA_LETSENCRYPT_V2_TEST") _info "Switching back to $CA_LETSENCRYPT_V2"