summaryrefslogtreecommitdiffstats
path: root/sm/certreqgen.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2009-11-10 17:35:59 +0100
committerWerner Koch <wk@gnupg.org>2009-11-10 17:35:59 +0100
commit5741eace292f429c61e32d76db3595104b24a045 (patch)
tree0ff8222133688f2a6d7c09dd973ff9bb3f1f3d60 /sm/certreqgen.c
parent2009-11-10 Marcus Brinkmann <marcus@g10code.de> (diff)
downloadgnupg2-5741eace292f429c61e32d76db3595104b24a045.tar.xz
gnupg2-5741eace292f429c61e32d76db3595104b24a045.zip
Change fallback keysize to 2048
Diffstat (limited to '')
-rw-r--r--sm/certreqgen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sm/certreqgen.c b/sm/certreqgen.c
index 59e667981..49b2b9208 100644
--- a/sm/certreqgen.c
+++ b/sm/certreqgen.c
@@ -61,7 +61,7 @@ The format of the native parameter file is follows:
This is a required parameter. For now the only supported
algorithm is "rsa".
Key-Length: <length-in-bits>
- Length of the key in bits. Default is 1024.
+ Length of the key in bits. Default is 2048.
Key-Grip: hexstring
This is optional and used to generate a request for an already
existing key. Key-Length will be ignored when given,
@@ -83,7 +83,7 @@ Here is an example:
$ cat >foo <<EOF
%echo Generating a standard key
Key-Type: RSA
-Key-Length: 1024
+Key-Length: 2048
Name-DN: CN=test cert 1,OU=Aegypten Project,O=g10 Code GmbH,L=Düsseldorf,C=DE
Name-Email: joe@foo.bar
# Do a commit here, so that we can later print "done" :-)
@@ -477,7 +477,7 @@ proc_parameters (ctrl_t ctrl,
/* Check the keylength. */
if (!get_parameter (para, pKEYLENGTH, 0))
- nbits = 1024;
+ nbits = 2048;
else
nbits = get_parameter_uint (para, pKEYLENGTH);
if ((nbits < 1024 || nbits > 4096) && !cardkeyid)