]> git.ipfire.org Git - thirdparty/dehydrated.git/commitdiff
Fix challenge response POST body in ACMEv2 726/head
authorRogdham <contact@rogdham.net>
Mon, 30 Mar 2020 19:26:00 +0000 (21:26 +0200)
committerRogdham <contact@rogdham.net>
Mon, 30 Mar 2020 19:34:43 +0000 (21:34 +0200)
Per https://tools.ietf.org/html/rfc8555#section-7.5.1

> The client indicates to the server that it is ready for the challenge
> validation by sending an empty JSON body ("{}") carried in a POST
> request to the challenge URL (not the authorization URL).

dehydrated

index aacb66bf5fbbc9d345147b455b5c02920105b226..1362f8ac84a59972f3da4f8fc5633db2451f628d 100755 (executable)
@@ -809,7 +809,7 @@ sign_csr() {
     if [[ ${API} -eq 1 ]]; then
       result="$(signed_request "${challenge_uris[${idx}]}" '{"resource": "challenge", "keyAuthorization": "'"${keyauths[${idx}]}"'"}' | clean_json)"
     else
-      result="$(signed_request "${challenge_uris[${idx}]}" '{"keyAuthorization": "'"${keyauths[${idx}]}"'"}' | clean_json)"
+      result="$(signed_request "${challenge_uris[${idx}]}" '{}' | clean_json)"
     fi
 
     reqstatus="$(printf '%s\n' "${result}" | get_json_string_value status)"