v1.7.5: bugfix unchecked property thanks to #19

This commit is contained in:
AJ ONeal 2019-04-04 14:08:41 -06:00
parent d41e7e5650
commit de9afbbab9
2 changed files with 2 additions and 2 deletions

View File

@ -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"));

View File

@ -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",