always revalidate challenges if --force is set (fixes #370)

This commit is contained in:
Lukas Schauer
2017-11-07 14:43:30 +01:00
parent 742c0ad176
commit 3d97799d6a

View File

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