From 35d81825fa9ca6158e343ccbdcfbe00bebe20f43 Mon Sep 17 00:00:00 2001 From: Tim Kimber Date: Fri, 11 Jul 2025 16:43:02 +0100 Subject: [PATCH] Shorten some of the waits to speed up tests --- getssl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/getssl b/getssl index c03ed11..e779da4 100755 --- a/getssl +++ b/getssl @@ -306,6 +306,7 @@ VERSION="2.49" # defaults ACCOUNT_KEY_LENGTH=4096 ACCOUNT_KEY_TYPE="rsa" +ACME_RESPONSE_PENDING_WAIT=2 CA_CERT_LOCATION="" CA="https://acme-staging-v02.api.letsencrypt.org/directory" CHALLENGE_CHECK_TYPE="http" @@ -358,7 +359,7 @@ CHECK_PUBLIC_DNS_SERVER="true" # Check the public DNS server as well as the aut DNS_ADD_COMMAND="" # Use this command/script to add the challenge token to the DNS entries for the domain DNS_DEL_COMMAND="" # Use this command/script to remove the challenge token from the DNS entries for the domain DNS_WAIT_COUNT=100 # How many times to wait for the DNS record to update -DNS_WAIT=10 # How long to wait before checking the DNS record again +DNS_WAIT=2 # How long to wait before checking the DNS record again DNS_EXTRA_WAIT=60 # How long to wait after the DNS entries are visible to us before telling the ACME server to check. DNS_WAIT_RETRY_ADD="false" # Try the dns_add_command again if the DNS record hasn't updated @@ -559,7 +560,7 @@ check_challenge_completion() { # checks with the ACME server if our challenge is error_exit "$domain:Verify error:$status:$err_detail" fi debug "sleep 5 secs before testing verify again" - sleep 5 + sleep "$ACME_RESPONSE_PENDING_WAIT" done return 0 } @@ -1850,7 +1851,7 @@ get_certificate() { # get certificate for csr, if all domains validated. count=0 while [[ "$response_status" != "valid" ]]; do info "ACME server still Processing certificates" - sleep 5 + sleep $ACME_RESPONSE_PENDING_WAIT send_signed_request "$OrderLink" "" ((count++)) if [[ $count -gt 10 ]]; then