From a099f2d3b4465b34d600db3282f438665c19b12a Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 15 Feb 2023 18:46:09 +0100 Subject: [PATCH] Check validity of authz for wildcard domains, too Authorizations for wildcard domains can also be already valid (esp. when using external account bindings). --- acme.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/acme.sh b/acme.sh index 1df8a053..6c9c5312 100755 --- a/acme.sh +++ b/acme.sh @@ -4674,13 +4674,11 @@ $_authorizations_map" _debug entry "$entry" keyauthorization="" if [ -z "$entry" ]; then - if ! _startswith "$d" '*.'; then - _debug "Not a wildcard domain, lets check whether the validation is already valid." - if echo "$response" | grep '"status":"valid"' >/dev/null 2>&1; then - _debug "$d is already valid." - keyauthorization="$STATE_VERIFIED" - _debug keyauthorization "$keyauthorization" - fi + _debug "Let's check whether the validation is already valid." + if echo "$response" | grep '"status":"valid"' >/dev/null 2>&1; then + _debug "$d is already valid." + keyauthorization="$STATE_VERIFIED" + _debug keyauthorization "$keyauthorization" fi if [ -z "$keyauthorization" ]; then _err "Error, can not get domain token entry $d for $vtype"