use 2048 bits by default

This commit is contained in:
AJ ONeal 2016-08-05 09:06:07 -06:00
parent efed0c23d9
commit 98f887a59a
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ var forgec = module.exports = {
// Generate New Keypair
//
, generateKeypair: function (bitlen, exp, options, cb) {
var fkeypair = forge.pki.rsa.generateKeyPair({ bits: bitlen || 1024, e: exp || 0x10001 });
var fkeypair = forge.pki.rsa.generateKeyPair({ bits: bitlen || 2048, e: exp || 0x10001 });
var result = {
_forge: fkeypair.privateKey
, _forgePublic: fkeypair.publicKey