fix POST-as-GET
This commit is contained in:
parent
ed1170fc7c
commit
96b9cd1a74
|
@ -2174,7 +2174,7 @@ ACME._postChallenge = function (me, options, auth) {
|
||||||
options: options
|
options: options
|
||||||
, url: auth.url
|
, url: auth.url
|
||||||
, protected: { kid: options._kid }
|
, protected: { kid: options._kid }
|
||||||
, payload: Enc.binToBuf(JSON.stringify({}))
|
, payload: Enc.binToBuf('')
|
||||||
}).then(function (resp) {
|
}).then(function (resp) {
|
||||||
if ('processing' === resp.body.status) {
|
if ('processing' === resp.body.status) {
|
||||||
//#console.debug('poll: again');
|
//#console.debug('poll: again');
|
||||||
|
@ -2225,7 +2225,7 @@ ACME._postChallenge = function (me, options, auth) {
|
||||||
options: options
|
options: options
|
||||||
, url: auth.url
|
, url: auth.url
|
||||||
, protected: { kid: options._kid }
|
, protected: { kid: options._kid }
|
||||||
, payload: Enc.binToBuf(JSON.stringify({}))
|
, payload: Enc.binToBuf('')
|
||||||
}).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);
|
||||||
|
@ -2431,7 +2431,7 @@ ACME._finalizeOrder = function (me, options) {
|
||||||
options: options
|
options: options
|
||||||
, url: options._certificate
|
, url: options._certificate
|
||||||
, protected: { kid: options._kid }
|
, protected: { kid: options._kid }
|
||||||
, payload: Enc.binToBuf(JSON.stringify({}))
|
, payload: Enc.binToBuf('')
|
||||||
}).then(function (resp) {
|
}).then(function (resp) {
|
||||||
//#console.debug('acme-v2: csr submitted and cert received:');
|
//#console.debug('acme-v2: csr submitted and cert received:');
|
||||||
// https://github.com/certbot/certbot/issues/5721
|
// https://github.com/certbot/certbot/issues/5721
|
||||||
|
|
Loading…
Reference in New Issue