diff --git a/node.js b/node.js index f46d9d9..afca1ef 100644 --- a/node.js +++ b/node.js @@ -698,7 +698,7 @@ ACME._getCertificate = function (me, options) { // It's just fine if there's no account, we'll go get the key id we need via the public key if (!me._kid) { - if (options.accountKid || options.account.kid) { + if (options.accountKid || options.account && options.account.kid) { me._kid = options.accountKid || options.account.kid; } else { //return Promise.reject(new Error("must include KeyID")); diff --git a/package.json b/package.json index ab73729..84048d8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "acme-v2", - "version": "1.7.4", + "version": "1.7.5", "description": "Free SSL. A framework for building Let's Encrypt v2 clients, and other ACME v2 (draft 11) clients. Successor to le-acme-core.js", "homepage": "https://git.coolaj86.com/coolaj86/acme-v2.js", "main": "node.js",