Browse Source

fix https://github.com/Neilpang/acme.sh/issues/1105

neilpang 7 years ago
parent
commit
716f727753
1 changed files with 1 additions and 1 deletions
  1. 1 1
      acme.sh

+ 1 - 1
acme.sh

@@ -4100,7 +4100,7 @@ $_authorizations_map"
   _savedomainconf "Le_LinkCert" "$Le_LinkCert"
   _savedomainconf "Le_LinkCert" "$Le_LinkCert"
 
 
   if [ -z "$Le_LinkCert" ] || ! _checkcert "$CERT_PATH"; then
   if [ -z "$Le_LinkCert" ] || ! _checkcert "$CERT_PATH"; then
-    response="$(echo "$response" | _dbase64 "multiline" | _normalizeJson)"
+    response="$(echo "$response" | _dbase64 "multiline" | tr -d '\0' | _normalizeJson)"
     _err "Sign failed: $(echo "$response" | _egrep_o '"detail":"[^"]*"')"
     _err "Sign failed: $(echo "$response" | _egrep_o '"detail":"[^"]*"')"
     _on_issue_err "$_post_hook"
     _on_issue_err "$_post_hook"
     return 1
     return 1