]> git.ipfire.org Git - thirdparty/dehydrated.git/commit
fixed logic to check status from our challenge 11/head
authorMarkus Germeier <markus@germeier.com>
Sun, 6 Dec 2015 14:51:38 +0000 (15:51 +0100)
committerMarkus Germeier <markus@germeier.com>
Sun, 6 Dec 2015 14:51:38 +0000 (15:51 +0100)
commit76a37834be8b55d5afae5d0d164e3bf2358e9916
treeb5e14bb1b45a7912f426b96ca334f28f4b33ce73
parente300c0a17344481c2f6ae0d0e216024b427f891f
fixed logic to check status from our challenge

the old code had a problem and would interpret a challenge that
returned "pending" and then "invalid" as valid.

This code actually has another problem. The RFC defines:

"status (optional, string):  The status of this authorization.
 Possible values are: "pending", "valid", and "invalid".  If this
 field is missing, then the default value is "pending"."

So actually the correct way to implement this would be:

while [[ -z "${status}" ]] || [[ "${status}" = "pending" ]]; do

But without further checks this might lead to an endless loop. So this
is "good enough(tm)". ;)
letsencrypt.sh