Browse Source

Skip verification if the account is already verified

pull/37/head
Pedro González Serrano 9 years ago
parent
commit
4d14d2e911
  1. 9
      le.sh

9
le.sh

@ -553,6 +553,12 @@ issue() {
alldomains=$(echo "$Le_Domain,$Le_Alt" | sed "s/,/ /g")
for d in $alldomains
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
_send_signed_request "$API/acme/new-authz" "{\"resource\": \"new-authz\", \"identifier\": {\"type\": \"dns\", \"value\": \"$d\"}}"
if [ ! -z "$code" ] && [ ! "$code" == '201' ] ; then
@ -577,6 +583,9 @@ issue() {
_debug dvlist "$dvlist"
vlist="$vlist$dvlist,"
else
_info "$d:Already verified"
fi
done

Loading…
Cancel
Save