From f350ae44c1f6c2af08f6023e57c726a1090cac86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20L=C3=B3pez=20Dato?= Date: Thu, 12 Jan 2017 19:37:34 -0300 Subject: [PATCH] Add key-change URL support Fixes warning when retrieving LE URLs on staging or prod --- lib/get-acme-urls.js | 3 ++- node.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/get-acme-urls.js b/lib/get-acme-urls.js index 5ded272..ece0680 100644 --- a/lib/get-acme-urls.js +++ b/lib/get-acme-urls.js @@ -39,7 +39,7 @@ module.exports.create = function (deps) { } } - if (4 !== Object.keys(data).length) { + if (5 !== Object.keys(data).length) { console.warn("This Let's Encrypt / ACME server has been updated with urls that this client doesn't understand"); console.warn(data); } @@ -56,6 +56,7 @@ module.exports.create = function (deps) { , newCert: data['new-cert'] , newReg: data['new-reg'] , revokeCert: data['revoke-cert'] + , keyChange: data['key-change'] }); }); } diff --git a/node.js b/node.js index c156e29..fe0fb70 100644 --- a/node.js +++ b/node.js @@ -9,7 +9,7 @@ var defaults = { productionServerUrl: 'https://acme-v01.api.letsencrypt.org/directory' , stagingServerUrl: 'https://acme-staging.api.letsencrypt.org/directory' , acmeChallengePrefix: '/.well-known/acme-challenge/' -, knownEndpoints: [ 'new-authz', 'new-cert', 'new-reg', 'revoke-cert' ] +, knownEndpoints: [ 'new-authz', 'new-cert', 'new-reg', 'revoke-cert', 'key-change' ] , challengeType: 'http-01' , rsaKeySize: 2048 };