Browse Source

fix https://github.com/acmesh-official/acme.sh/issues/3898

https://github.com/acmesh-official/acme.sh/issues/3898
neil 3 years ago
parent
commit
90b65c6618
1 changed files with 2 additions and 1 deletions
  1. 2 1
      acme.sh

+ 2 - 1
acme.sh

@@ -1253,7 +1253,8 @@ _createcsr() {
     domainlist="$(_idn "$domainlist")"
     _debug2 domainlist "$domainlist"
     alt="$(_getIdType "$domain" | _upper_case):$(_idn "$domain")"
-    for dl in $(echo "$domainlist" | tr "," ' '); do
+    for dl in $(echo "'$domainlist'" | sed "s/,/' '/g"); do
+      dl=$(echo "$dl" | tr -d "'")
       alt="$alt,$(_getIdType "$dl" | _upper_case):$dl"
     done
     #multi