From 7e3cbb4661f6a962dc353767f428cd4a32642c07 Mon Sep 17 00:00:00 2001 From: neil Date: Sat, 6 Feb 2016 13:32:46 +0800 Subject: [PATCH] fix issue, decode the error message. --- le.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/le.sh b/le.sh index 6603c3c6..111caca9 100755 --- a/le.sh +++ b/le.sh @@ -457,7 +457,7 @@ _clearupwebbroot() { _debug "remove $__webroot/.well-known/acme-challenge/$3" rm -rf "$__webroot/.well-known/acme-challenge/$3" else - _info "skip for removelevel:$2" + _info "Skip for removelevel:$2" fi return 0 @@ -830,8 +830,8 @@ issue() { if [ -z "$Le_LinkCert" ] ; then - response="$(echo $response | openssl base64 -d)" - _err "Sign failed: $response" + response="$(echo $response | openssl base64 -d -A)" + _err "Sign failed: $(echo "$response" | grep -o '"detail":"[^"]*"')" return 1 fi