From 1766790424fe622e92168de4f7128017479735b1 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 8 May 2019 21:44:55 -0600 Subject: [PATCH] v2.7.18: bugfix checking private key --- lib/core.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core.js b/lib/core.js index 325550c..c938e4e 100644 --- a/lib/core.js +++ b/lib/core.js @@ -505,7 +505,7 @@ module.exports.create = function (gl) { return cert; } else { return gl.store.certificates.checkKeypairAsync(args).then(function (keypair) { - cert.privkey = RSA.exportPrivatePem(keypair).privateKeyPem; + cert.privkey = keypair.privateKeyPem || RSA.exportPrivatePem(keypair); return cert; }); } diff --git a/package.json b/package.json index ed2301c..8db0f9a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "greenlock", - "version": "2.7.17", + "version": "2.7.18", "description": "Let's Encrypt for node.js on npm", "main": "index.js", "files": [