Browse Source

fix POST-as-POST

master
AJ ONeal 5 years ago
parent
commit
67294ae3eb
  1. 4
      app/js/bluecrypt-acme.js

4
app/js/bluecrypt-acme.js

@ -2220,12 +2220,12 @@ ACME._postChallenge = function (me, options, auth) {
function respondToChallenge() { function respondToChallenge() {
//#console.debug('[acme-v2.js] responding to accept challenge:'); //#console.debug('[acme-v2.js] responding to accept challenge:');
// POST-as-GET // POST-as-POST (empty JSON object)
return ACME._jwsRequest(me, { return ACME._jwsRequest(me, {
options: options options: options
, url: auth.url , url: auth.url
, protected: { kid: options._kid } , protected: { kid: options._kid }
, payload: Enc.binToBuf('') , payload: Enc.binToBuf(JSON.stringify({}))
}).then(function (/*#resp*/) { }).then(function (/*#resp*/) {
//#console.debug('respond to challenge: resp.body:'); //#console.debug('respond to challenge: resp.body:');
//#console.debug(resp.body); //#console.debug(resp.body);

Loading…
Cancel
Save