From c0f0e8d315a099b9f01f7a0c9353ab8b474cedd5 Mon Sep 17 00:00:00 2001 From: Jim Conner Date: Tue, 7 Jan 2020 13:30:54 -0800 Subject: [PATCH] Might need to be more involved than this, but this works for my usecase. Implement forced V_TYPE DNS for wildcard domains. --- acme.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/acme.sh b/acme.sh index 4d4957f5..bdc3bcff 100755 --- a/acme.sh +++ b/acme.sh @@ -4071,7 +4071,6 @@ $_authorizations_map" _debug "_currentRoot" "$_currentRoot" vtype="$VTYPE_HTTP" - #todo, v2 wildcard force to use dns if _startswith "$_currentRoot" "$W_DNS"; then vtype="$VTYPE_DNS" fi @@ -4081,6 +4080,10 @@ $_authorizations_map" fi if [ "$ACME_VERSION" = "2" ]; then + if _startswith "$_is_idn_d" "\*"; then + vtype="$VTYPE_DNS" + fi + _idn_d="$(_idn "$d")" _candindates="$(echo "$_authorizations_map" | grep "^$_idn_d,")" _debug2 _candindates "$_candindates"