From faf57d3dc105fd837c5052ad1e8507188767f52b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 6 May 2024 03:32:54 +0200 Subject: Setting default RSA size in ssh-keygen to 4096. Signed-off-by: Daniel Baumann --- .../0002-ssh-keygen-default-rsa-size.patch | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 debian/patches/progress-linux/0002-ssh-keygen-default-rsa-size.patch (limited to 'debian/patches/progress-linux/0002-ssh-keygen-default-rsa-size.patch') diff --git a/debian/patches/progress-linux/0002-ssh-keygen-default-rsa-size.patch b/debian/patches/progress-linux/0002-ssh-keygen-default-rsa-size.patch new file mode 100644 index 0000000..325060f --- /dev/null +++ b/debian/patches/progress-linux/0002-ssh-keygen-default-rsa-size.patch @@ -0,0 +1,29 @@ +Author: Daniel Baumann +Description: Setting default RSA size in ssh-keygen to 4096. + +diff -Naurp openssh.orig/ssh-keygen.1 openssh/ssh-keygen.1 +--- openssh.orig/ssh-keygen.1 ++++ openssh/ssh-keygen.1 +@@ -242,8 +242,8 @@ This option specifies the number of prim + Show the bubblebabble digest of specified private or public key file. + .It Fl b Ar bits + Specifies the number of bits in the key to create. +-For RSA keys, the minimum size is 1024 bits and the default is 2048 bits. +-Generally, 2048 bits is considered sufficient. ++For RSA keys, the minimum size is 1024 bits and the default is 4096 bits. ++Generally, 3072 bits is currently considered sufficient. + DSA keys must be exactly 1024 bits as specified by FIPS 186-2. + For ECDSA keys, the + .Fl b +diff -Naurp openssh.orig/ssh-keygen.c openssh/ssh-keygen.c +--- openssh.orig/ssh-keygen.c ++++ openssh/ssh-keygen.c +@@ -64,7 +64,7 @@ + #define DEFAULT_KEY_TYPE_NAME "ed25519" + + /* Number of bits in the RSA/DSA key. This value can be set on the command line. */ +-#define DEFAULT_BITS 2048 ++#define DEFAULT_BITS 4096 + #define DEFAULT_BITS_DSA 1024 + #define DEFAULT_BITS_ECDSA 256 + u_int32_t bits = 0; -- cgit v1.2.3