From 3712cd8e2c767c37995d0a70c4740a895d43d552 Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Tue, 13 Oct 2020 17:50:43 +0200 Subject: [PATCH] bump default RSA bits to 4096 --- helper/communicator/sshkey/generate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper/communicator/sshkey/generate.go b/helper/communicator/sshkey/generate.go index d90295bc6..8db0004db 100644 --- a/helper/communicator/sshkey/generate.go +++ b/helper/communicator/sshkey/generate.go @@ -171,7 +171,7 @@ func GeneratePair(t Algorithm, rand io.Reader, bits int) (*Pair, error) { return NewPair(publicKey, privateKey) case RSA: if bits == 0 { - bits = 3072 + bits = 4096 } if bits < 1024 { return nil, ErrInvalidRSAKeySize