From: Tony Finch Date: Wed, 19 Jun 2019 10:31:43 +0000 (+0100) Subject: Use 2048 bits as the default ZSK RSA key size in dnssec-keygen X-Git-Tag: v9.15.2~45^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=24f23e7fad8e2108d430bb11f66138ff759ddaa9;p=thirdparty%2Fbind9.git Use 2048 bits as the default ZSK RSA key size in dnssec-keygen --- diff --git a/bin/dnssec/dnssec-keygen.c b/bin/dnssec/dnssec-keygen.c index aae310341da..be6779ca1dd 100644 --- a/bin/dnssec/dnssec-keygen.c +++ b/bin/dnssec/dnssec-keygen.c @@ -554,11 +554,7 @@ main(int argc, char **argv) { case DST_ALG_NSEC3RSASHA1: case DST_ALG_RSASHA256: case DST_ALG_RSASHA512: - if ((kskflag & DNS_KEYFLAG_KSK) != 0) { - size = 2048; - } else { - size = 1024; - } + size = 2048; if (verbose > 0) { fprintf(stderr, "key size not " "specified; defaulting" diff --git a/bin/dnssec/dnssec-keygen.docbook b/bin/dnssec/dnssec-keygen.docbook index 8d157adb54a..5833b798419 100644 --- a/bin/dnssec/dnssec-keygen.docbook +++ b/bin/dnssec/dnssec-keygen.docbook @@ -176,10 +176,8 @@ If the key size is not specified, some algorithms have - pre-defined defaults. For example, RSA keys for use as - DNSSEC zone signing keys have a default size of 1024 bits; - RSA keys for use as key signing keys (KSKs, generated with - ) default to 2048 bits. + pre-defined defaults. For instance, RSA keys have a default + size of 2048 bits.