Compare commits

..

2 Commits

Author SHA1 Message Date
52ce530aff fix POST-as-POST 2019-05-28 04:40:59 -06:00
96b9cd1a74 fix POST-as-GET 2019-05-28 04:31:50 -06:00

View File

@ -2174,7 +2174,7 @@ ACME._postChallenge = function (me, options, auth) {
options: options
, url: auth.url
, protected: { kid: options._kid }
, payload: Enc.binToBuf(JSON.stringify({}))
, payload: Enc.binToBuf('')
}).then(function (resp) {
if ('processing' === resp.body.status) {
//#console.debug('poll: again');
@ -2220,7 +2220,7 @@ 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
@ -2431,7 +2431,7 @@ ACME._finalizeOrder = function (me, options) {
options: options
, url: options._certificate
, protected: { kid: options._kid }
, payload: Enc.binToBuf(JSON.stringify({}))
, payload: Enc.binToBuf('')
}).then(function (resp) {
//#console.debug('acme-v2: csr submitted and cert received:');
// https://github.com/certbot/certbot/issues/5721