|
|
|
@ -568,7 +568,7 @@ check_challenge_completion_dns() { # perform validation via DNS challenge |
|
|
|
|
|
|
|
# add +noidnout if idn-domain so search for domain in results works |
|
|
|
if [[ "${d}" == xn--* || "${d}" == *".xn--"* ]]; then |
|
|
|
if [[ "$DNS_CHECK_FUNC" == "nslookup" || "$DNS_CHECK_FUNC" == "host" || ("$DNS_CHECK_FUNC" == "dig" && "$DIG_SUPPORTS_NOIDNOUT" == "false") ]]; then |
|
|
|
if [[ "$DNS_CHECK_FUNC" == "nslookup" || "$DNS_CHECK_FUNC" == "host" || ("$DNS_CHECK_FUNC" == "$HAS_DIG_OR_DRILL" && "$DIG_SUPPORTS_NOIDNOUT" == "false") ]]; then |
|
|
|
info "Info: idn domain but $DNS_CHECK_FUNC doesn't support +noidnout" |
|
|
|
else |
|
|
|
debug "adding +noidnout to DNS_CHECK_OPTIONS" |
|
|
|
@ -1418,6 +1418,8 @@ for d in "${alldomains[@]}"; do |
|
|
|
# get the token and uri from the dns-01 component |
|
|
|
token=$(json_get "$response" "challenges" "type" "dns-01" "token") |
|
|
|
uri=$(json_get "$response" "challenges" "type" "dns-01" "url") |
|
|
|
# when using pebble this sometimes appears to have a newline which causes problems in send_signed_request |
|
|
|
uri=$(echo "$uri" | tr -d '\r') |
|
|
|
debug uri "$uri" |
|
|
|
fi |
|
|
|
|
|
|
|
@ -2516,7 +2518,7 @@ send_signed_request() { # Sends a request to the ACME server, signed with your p |
|
|
|
|
|
|
|
code="500" |
|
|
|
loop_limit=5 |
|
|
|
while [[ "$code" -eq 500 ]]; do |
|
|
|
while [[ "$code" == 5* ]]; do |
|
|
|
if [[ "$outfile" ]] ; then |
|
|
|
$CURL -X POST -H "Content-Type: application/jose+json" --data "$body" "$url" > "$outfile" |
|
|
|
errcode=$? |
|
|
|
@ -2562,13 +2564,13 @@ send_signed_request() { # Sends a request to the ACME server, signed with your p |
|
|
|
fi |
|
|
|
fi |
|
|
|
debug "response status = $response_status" |
|
|
|
if [[ "$code" -eq 500 ]]; then |
|
|
|
info "_error on acme server - trying again ...." |
|
|
|
if [[ "$code" == 5* ]]; then |
|
|
|
info "_error on acme server - waiting 30s then trying again ...." |
|
|
|
debug "loop_limit = $loop_limit" |
|
|
|
sleep 5 |
|
|
|
sleep 30 |
|
|
|
loop_limit=$((loop_limit - 1)) |
|
|
|
if [[ $loop_limit -lt 1 ]]; then |
|
|
|
error_exit "500 error from ACME server: $response" |
|
|
|
error_exit "$code error from ACME server: $response" |
|
|
|
fi |
|
|
|
fi |
|
|
|
done |
|
|
|
|