Browse Source

ssh: use 3072-bits for the auto-generated RSA key

This is the same as ssh-keygen

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
Nicola Murino 1 year ago
parent
commit
3f2604d33f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      internal/util/util.go

+ 1 - 1
internal/util/util.go

@@ -380,7 +380,7 @@ func GenerateRSAKeys(file string) error {
 	if err := createDirPathIfMissing(file, 0700); err != nil {
 		return err
 	}
-	key, err := rsa.GenerateKey(rand.Reader, 4096)
+	key, err := rsa.GenerateKey(rand.Reader, 3072)
 	if err != nil {
 		return err
 	}