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>
This commit is contained in:
Nicola Murino 2024-05-24 18:20:58 +02:00
parent 699b28acaa
commit c45be00963
No known key found for this signature in database
GPG key ID: 935D2952DEC4EECF

View file

@ -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
}