From 2ede03b8f2eeaa4d25bf4c455d91ef51b237f9cd Mon Sep 17 00:00:00 2001 From: Karsten Sperling Date: Mon, 28 May 2018 16:15:13 +1200 Subject: [PATCH] Fix authorization lookup problem with similar domain names. E.g. api.example.com previously also matched api-example.com --- acme.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acme.sh b/acme.sh index 5e794a5a..b0c30f44 100755 --- a/acme.sh +++ b/acme.sh @@ -3692,7 +3692,7 @@ $_authorizations_map" fi if [ "$ACME_VERSION" = "2" ]; then - response="$(echo "$_authorizations_map" | grep "^$d," | sed "s/$d,//")" + response="$(echo "$_authorizations_map" | grep "^${d//./\.}," | sed "s/$d,//")" _debug2 "response" "$response" if [ -z "$response" ]; then _err "get to authz error."