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

Scalone
coolaj86 scala 2 commity/ów z bugfixes do master 2019-05-09 03:46:52 +00:00
2 zmienionych plików z 2 dodań i 2 usunięć
Showing only changes of commit ded979fa22 - Show all commits

Wyświetl plik

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

Wyświetl plik

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