From 865f3f536a919e275a141d5185be09ac1cee85d2 Mon Sep 17 00:00:00 2001 From: René Korthaus Date: Wed, 17 Jun 2015 21:59:40 +0200 Subject: Increase default keysize to 2048 bit in keygen tool The keygen tool would generate a 1024 bit RSA key by default. As 1024 bit RSA is not considered secure from todays standards, default keysize is increased to 2048 bit. --- src/cmd/keygen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd') diff --git a/src/cmd/keygen.cpp b/src/cmd/keygen.cpp index 99769a62f..846836ae7 100644 --- a/src/cmd/keygen.cpp +++ b/src/cmd/keygen.cpp @@ -80,7 +80,7 @@ int keygen(int argc, char* argv[]) opts.parse(argv); const std::string algo = opts.value_or_else("algo", "rsa"); - const size_t bits = opts.int_value_or_else("bits", 1024); + const size_t bits = opts.int_value_or_else("bits", 2048); const std::string pass = opts.value_or_else("passphrase", ""); const std::string pbe = opts.value_or_else("pbe", ""); -- cgit v1.2.3