Might need to be more involved than this, but this works for my usecase. Implement forced V_TYPE DNS for wildcard domains.

This commit is contained in:
Jim Conner 2020-01-07 13:30:54 -08:00
parent ef15e55947
commit c0f0e8d315

View File

@ -4071,7 +4071,6 @@ $_authorizations_map"
_debug "_currentRoot" "$_currentRoot" _debug "_currentRoot" "$_currentRoot"
vtype="$VTYPE_HTTP" vtype="$VTYPE_HTTP"
#todo, v2 wildcard force to use dns
if _startswith "$_currentRoot" "$W_DNS"; then if _startswith "$_currentRoot" "$W_DNS"; then
vtype="$VTYPE_DNS" vtype="$VTYPE_DNS"
fi fi
@ -4081,6 +4080,10 @@ $_authorizations_map"
fi fi
if [ "$ACME_VERSION" = "2" ]; then if [ "$ACME_VERSION" = "2" ]; then
if _startswith "$_is_idn_d" "\*"; then
vtype="$VTYPE_DNS"
fi
_idn_d="$(_idn "$d")" _idn_d="$(_idn "$d")"
_candindates="$(echo "$_authorizations_map" | grep "^$_idn_d,")" _candindates="$(echo "$_authorizations_map" | grep "^$_idn_d,")"
_debug2 _candindates "$_candindates" _debug2 _candindates "$_candindates"