mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-26 23:11:44 +00:00
Display ZeroSSL usage
This commit is contained in:
parent
8d811760a9
commit
85503655ab
5
acme.sh
5
acme.sh
@ -3522,13 +3522,14 @@ _regAccount() {
|
|||||||
if [ -z "$_eab_id" ] || [ -z "$_eab_hmac_key" ]; then
|
if [ -z "$_eab_id" ] || [ -z "$_eab_hmac_key" ]; then
|
||||||
_info "No EAB credentials found for ZeroSSL, let's get one"
|
_info "No EAB credentials found for ZeroSSL, let's get one"
|
||||||
if [ -z "$_email" ]; then
|
if [ -z "$_email" ]; then
|
||||||
_err "Please provide a email address for zerossl account."
|
_err "Please provide a email address for ZeroSSL account."
|
||||||
|
_err "See ZeroSSL usage: $_ZEROSSL_WIKI"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
_eabresp=$(_post "email=$_email" $_ZERO_EAB_ENDPOINT)
|
_eabresp=$(_post "email=$_email" $_ZERO_EAB_ENDPOINT)
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
_debug2 "$_eabresp"
|
_debug2 "$_eabresp"
|
||||||
_err "Can not get EAB credentials from zerossl."
|
_err "Can not get EAB credentials from ZeroSSL."
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
_eab_id="$(echo "$_eabresp" | tr ',}' '\n' | grep '"eab_kid"' | cut -d : -f 2 | tr -d '"')"
|
_eab_id="$(echo "$_eabresp" | tr ',}' '\n' | grep '"eab_kid"' | cut -d : -f 2 | tr -d '"')"
|
||||||
|
Loading…
Reference in New Issue
Block a user