v2.7.18: bugfix checking private key

This commit is contained in:
AJ ONeal 2019-05-08 21:44:55 -06:00 committed by Gitea
parent 6aafe3d663
commit 1766790424
2 changed files with 2 additions and 2 deletions

View File

@ -505,7 +505,7 @@ module.exports.create = function (gl) {
return cert; return cert;
} else { } else {
return gl.store.certificates.checkKeypairAsync(args).then(function (keypair) { return gl.store.certificates.checkKeypairAsync(args).then(function (keypair) {
cert.privkey = RSA.exportPrivatePem(keypair).privateKeyPem; cert.privkey = keypair.privateKeyPem || RSA.exportPrivatePem(keypair);
return cert; return cert;
}); });
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "greenlock", "name": "greenlock",
"version": "2.7.17", "version": "2.7.18",
"description": "Let's Encrypt for node.js on npm", "description": "Let's Encrypt for node.js on npm",
"main": "index.js", "main": "index.js",
"files": [ "files": [