From 971ef09ff820e680e8642720c530a28e8628d4a4 Mon Sep 17 00:00:00 2001 From: Hossy Date: Tue, 30 Jan 2024 01:15:52 -0600 Subject: [PATCH] fix for issue 4972; error can not get domain token entry --- acme.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acme.sh b/acme.sh index 75030acd8c..2dc478ff72 100755 --- a/acme.sh +++ b/acme.sh @@ -4690,7 +4690,7 @@ $_authorizations_map" _debug keyauthorization "$keyauthorization" fi - entry="$(echo "$response" | _egrep_o '[^\{]*"type":"'$vtype'"[^\}]*')" + entry="$(echo "$response" | sed -n 's#"challenges":\[\([^]]*\)\]#\1#p' | sed 's#\(\}\),\({\)#\1\n\2#' | grep '"type":"'$vtype'"')" _debug entry "$entry" if [ -z "$keyauthorization" -a -z "$entry" ]; then