From de9afbbab90b3a89ae1cbe4a205b181efe8e49f6 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 4 Apr 2019 14:08:41 -0600 Subject: [PATCH] v1.7.5: bugfix unchecked property thanks to #19 --- node.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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",