Skip to content

Commit f5e1037

Browse files
committed
Enable idn support for let's encrypt, thanks to @moucho!
1 parent 02fe912 commit f5e1037

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin/v-add-letsencrypt-domain

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ fi
112112
url="$LE_API/acme/new-order"
113113
payload='{"identifiers":['
114114
for identifier in $(echo $domain,$aliases |tr ',' '\n' |sort -u); do
115+
if [[ "$identifier" = *[![:ascii:]]* ]]; then
116+
identifier=$(idn -t --quiet -a $identifier)
117+
fi
115118
payload=$payload'{"type":"dns","value":"'$identifier'"},'
116119
done
117120
payload=$(echo "$payload"|sed "s/,$//")

0 commit comments

Comments
 (0)