Fix undefined private key when checking keys apart from certs #37

Merged
coolaj86 merged 2 commits from bugfixes into master 2019-05-09 03:46:52 +00:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit ded979fa22 - Show all commits

View File

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

View File

@ -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": [