From 51ac8a3483f9427b298104fdec588d0d1e950d9a Mon Sep 17 00:00:00 2001 From: Tim Kimber Date: Fri, 29 Jan 2021 20:05:21 +0000 Subject: [PATCH] Check for Valid ACME response and continue waiting --- getssl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/getssl b/getssl index bbeb969..b14e465 100755 --- a/getssl +++ b/getssl @@ -491,8 +491,9 @@ check_challenge_completion() { # checks with the ACME server if our challenge is error_exit "$domain:Verify error:$err_detail" fi - # if ACME response is pending ( they haven't completed checks yet) then wait and try again. - if [[ "$status" == "pending" ]] ; then + # if ACME response is pending (they haven't completed checks yet) + # or valid (completed checks but not created certificate) then wait and try again. + if [[ "$status" == "pending" ]] || [[ "$status" == "valid" ]]; then info "Pending" else err_detail=$(echo "$response" | grep "detail")