From 97390e087d81281276e37073a92b30cf3a737d14 Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Sun, 3 Oct 2010 14:58:18 -0700 Subject: [PATCH] default to 2k rsa keys, for performance reasons you might want to generate 1k rsa keys though --- lib/hx509/crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hx509/crypto.c b/lib/hx509/crypto.c index de7717af0..91732aff2 100644 --- a/lib/hx509/crypto.c +++ b/lib/hx509/crypto.c @@ -812,7 +812,7 @@ rsa_generate_private_key(hx509_context context, unsigned long bits; static const int default_rsa_e = 65537; - static const int default_rsa_bits = 1024; + static const int default_rsa_bits = 2048; private_key->private_key.rsa = RSA_new(); if (private_key->private_key.rsa == NULL) {