From 67294ae3ebe6d921f72c307e7de9715f2ac33e67 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 28 May 2019 04:40:59 -0600 Subject: [PATCH] fix POST-as-POST --- app/js/bluecrypt-acme.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/js/bluecrypt-acme.js b/app/js/bluecrypt-acme.js index b669ec8..26eb37f 100644 --- a/app/js/bluecrypt-acme.js +++ b/app/js/bluecrypt-acme.js @@ -2220,12 +2220,12 @@ ACME._postChallenge = function (me, options, auth) { function respondToChallenge() { //#console.debug('[acme-v2.js] responding to accept challenge:'); - // POST-as-GET + // POST-as-POST (empty JSON object) return ACME._jwsRequest(me, { options: options , url: auth.url , protected: { kid: options._kid } - , payload: Enc.binToBuf('') + , payload: Enc.binToBuf(JSON.stringify({})) }).then(function (/*#resp*/) { //#console.debug('respond to challenge: resp.body:'); //#console.debug(resp.body);