Commit 72cc024e authored by Nathan Neulinger's avatar Nathan Neulinger

Retain full result when submitting challenge. Fixes #102

parent 23b0ef5a
......@@ -342,7 +342,8 @@ sign_domain() {
while [[ "${status}" = "pending" ]]; do
sleep 1
status="$(http_request get "${challenge_uri}" | get_json_string_value status)"
result="$(http_request get "${challenge_uri}")"
status="$(printf '%s\n' "${result}" | get_json_string_value status)"
done
[[ "${CHALLENGETYPE}" = "http-01" ]] && rm -f "${WELLKNOWN}/${challenge_token}"
......@@ -355,7 +356,7 @@ sign_domain() {
if [[ "${status}" = "valid" ]]; then
echo " + Challenge is valid!"
else
_exiterr "Challenge is invalid! (returned: ${status})"
_exiterr "Challenge is invalid! (returned: ${status}) (result: ${result})"
fi
done
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment