Bump new users RSA key strength

This commit is contained in:
Hypolite Petovan 2018-01-18 23:47:54 -05:00
parent de70007a46
commit cadf8c5e5d

View File

@ -471,7 +471,7 @@ class DFRN
/* get site pubkey. this could be a new installation with no site keys*/
$pubkey = Config::get('system', 'site_pubkey');
if (! $pubkey) {
$res = FriendicaCrypto::newKeypair(1024);
$res = FriendicaCrypto::newKeypair(2048);
Config::set('system', 'site_prvkey', $res['prvkey']);
Config::set('system', 'site_pubkey', $res['pubkey']);
}