v2.3.8: update rsa-compat

This commit is contained in:
AJ ONeal 2018-07-13 04:20:57 -06:00
parent aece586c90
commit 1abd3e43de
2 changed files with 6 additions and 7 deletions

View File

@ -80,8 +80,6 @@ module.exports.create = function (gl) {
}
return utils.testEmail(args.email).then(function () {
var keypairOpts = { public: true, pem: true };
var promise = gl.store.accounts.checkKeypairAsync(args).then(function (keypair) {
if (keypair) {
return RSA.import(keypair);
@ -91,7 +89,8 @@ module.exports.create = function (gl) {
return gl.store.accounts.setKeypairAsync(args, RSA.import(args.accountKeypair));
}
return RSA.generateKeypairAsync(args.rsaKeySize, 65537, keypairOpts).then(function (keypair) {
var keypairOpts = { bitlen: args.rsaKeySize, exp: 65537, public: true, pem: true };
return RSA.generateKeypairAsync(keypairOpts).then(function (keypair) {
keypair.privateKeyPem = RSA.exportPrivatePem(keypair);
keypair.publicKeyPem = RSA.exportPublicPem(keypair);
keypair.privateKeyJwk = RSA.exportPrivateJwk(keypair);
@ -253,8 +252,8 @@ module.exports.create = function (gl) {
return gl.store.certificates.setKeypairAsync(args, RSA.import(args.domainKeypair));
}
var keypairOpts = { public: true, pem: true };
return RSA.generateKeypairAsync(args.rsaKeySize, 65537, keypairOpts).then(function (keypair) {
var keypairOpts = { bitlen: args.rsaKeySize, exp: 65537, public: true, pem: true };
return RSA.generateKeypairAsync(keypairOpts).then(function (keypair) {
keypair.privateKeyPem = RSA.exportPrivatePem(keypair);
keypair.publicKeyPem = RSA.exportPublicPem(keypair);
keypair.privateKeyJwk = RSA.exportPrivateJwk(keypair);

View File

@ -1,6 +1,6 @@
{
"name": "greenlock",
"version": "2.3.7",
"version": "2.3.8",
"description": "Let's Encrypt for node.js on npm",
"main": "index.js",
"files": [
@ -62,7 +62,7 @@
"le-store-certbot": "^2.1.7",
"node.extend": "^1.1.5",
"pkijs": "^1.3.27",
"rsa-compat": "^1.4.0"
"rsa-compat": "^1.5.0"
},
"engines": {
"node": ">=4.5"