mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-06-16 05:02:45 +00:00
Merge 835f8051cd9054f3279ce1fdc5a186c7e4f94557 into 18d10a9c9c34a0de760fdda96772856928c0f5b9
This commit is contained in:
commit
fa12798678
18
le.sh
18
le.sh
@ -648,6 +648,12 @@ issue() {
|
|||||||
alldomains=$(echo "$Le_Domain,$Le_Alt" | sed "s/,/ /g")
|
alldomains=$(echo "$Le_Domain,$Le_Alt" | sed "s/,/ /g")
|
||||||
for d in $alldomains
|
for d in $alldomains
|
||||||
do
|
do
|
||||||
|
# check if domain is already verified for the account
|
||||||
|
_info "Checking if domain is already verified"
|
||||||
|
uri=$(echo $d | cut -d $sep -f 3)
|
||||||
|
if ! _get $uri ; then
|
||||||
|
_err "$d:Verify pending"
|
||||||
|
|
||||||
_info "Geting token for domain" $d
|
_info "Geting token for domain" $d
|
||||||
_send_signed_request "$API/acme/new-authz" "{\"resource\": \"new-authz\", \"identifier\": {\"type\": \"dns\", \"value\": \"$d\"}}"
|
_send_signed_request "$API/acme/new-authz" "{\"resource\": \"new-authz\", \"identifier\": {\"type\": \"dns\", \"value\": \"$d\"}}"
|
||||||
if [ ! -z "$code" ] && [ ! "$code" == '201' ] ; then
|
if [ ! -z "$code" ] && [ ! "$code" == '201' ] ; then
|
||||||
@ -672,6 +678,9 @@ issue() {
|
|||||||
_debug dvlist "$dvlist"
|
_debug dvlist "$dvlist"
|
||||||
|
|
||||||
vlist="$vlist$dvlist,"
|
vlist="$vlist$dvlist,"
|
||||||
|
else
|
||||||
|
_info "$d:Already verified"
|
||||||
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -758,6 +767,12 @@ issue() {
|
|||||||
d=$(echo $ventry | cut -d $sep -f 1)
|
d=$(echo $ventry | cut -d $sep -f 1)
|
||||||
keyauthorization=$(echo $ventry | cut -d $sep -f 2)
|
keyauthorization=$(echo $ventry | cut -d $sep -f 2)
|
||||||
uri=$(echo $ventry | cut -d $sep -f 3)
|
uri=$(echo $ventry | cut -d $sep -f 3)
|
||||||
|
|
||||||
|
# check if domain is already verified for the account
|
||||||
|
_info "Checking if domain is already verified"
|
||||||
|
if ! _get $uri ; then
|
||||||
|
_err "$d:Verify pending"
|
||||||
|
|
||||||
_info "Verifying:$d"
|
_info "Verifying:$d"
|
||||||
_debug "d" "$d"
|
_debug "d" "$d"
|
||||||
_debug "keyauthorization" "$keyauthorization"
|
_debug "keyauthorization" "$keyauthorization"
|
||||||
@ -846,6 +861,9 @@ issue() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
else
|
||||||
|
_info "$d:Already verified"
|
||||||
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user