Browse Source

Merge pull request #632 from srvrco/timkimber/issue624

Don't request the certificate until the ACME status is Ready
pull/638/head
Tim Kimber 5 years ago
committed by GitHub
parent
commit
3f94eb78c0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      getssl

+ 3
- 2
getssl View File

@ -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")


Loading…
Cancel
Save