diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 01:32:54 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 01:32:54 +0000 |
commit | faf57d3dc105fd837c5052ad1e8507188767f52b (patch) | |
tree | d95403b654d47ec7f0a332b9f50e47fce866885b /debian/patches/progress-linux | |
parent | Setting default key type in ssh-keygen to ED25519. (diff) | |
download | openssh-faf57d3dc105fd837c5052ad1e8507188767f52b.tar.xz openssh-faf57d3dc105fd837c5052ad1e8507188767f52b.zip |
Setting default RSA size in ssh-keygen to 4096.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/progress-linux')
-rw-r--r-- | debian/patches/progress-linux/0002-ssh-keygen-default-rsa-size.patch | 29 |
1 files changed, 29 insertions, 0 deletions
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 <daniel.baumann@progress-linux.org> +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; |