Go To IDN!

`service/get_list` returns domains in utf. But if use utf-domains in acme.sh, then appears error `Error parsing certificate request: x509: SAN dNSName is malformed`.

Lets use idn-domains in acme.sh command string! Then we need `service/get_list` will be in IDN!
This commit is contained in:
Vitaly Kireev 2021-12-22 22:36:27 +03:00 committed by GitHub
parent 5490a2f3ba
commit da3ddee208
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,9 +92,10 @@ _get_root() {
domains_list=$(echo "${response}" | grep dname | sed -r "s/.*dname=\"([^\"]+)\".*/\\1/g")
for ITEM in ${domains_list}; do
IDN_ITEM="$(echo "${ITEM}" | idn)"
case "${domain}" in
*${ITEM}*)
_domain=${ITEM}
*${IDN_ITEM}*)
_domain=${IDN_ITEM}
_debug _domain "${_domain}"
return 0
;;