]> git.ipfire.org Git - thirdparty/dehydrated.git/commitdiff
always revalidate challenges if `--force` is set (fixes #370)
authorLukas Schauer <lukas@schauer.so>
Tue, 7 Nov 2017 13:43:30 +0000 (14:43 +0100)
committerLukas Schauer <lukas@schauer.so>
Tue, 7 Nov 2017 13:43:41 +0000 (14:43 +0100)
dehydrated

index c47503afb9ceb7692140ffe9eb704c2cbaa4371f..e7be38a8e153ba6c927434976ae5f25df90de659 100755 (executable)
@@ -537,7 +537,7 @@ sign_csr() {
     response="$(signed_request "${CA_NEW_AUTHZ}" '{"resource": "new-authz", "identifier": {"type": "dns", "value": "'"${altname}"'"}}' | clean_json)"
 
     challenge_status="$(printf '%s' "${response}" | rm_json_arrays | get_json_string_value status)"
-    if [ "${challenge_status}" = "valid" ]; then
+    if [ "${challenge_status}" = "valid" ] && [ ! "${PARAM_FORCE:-no}" = "yes" ]; then
        echo " + Already validated!"
        continue
     fi