mirror of
https://github.com/hashicorp/packer.git
synced 2026-06-09 08:42:33 -04:00
bump default RSA bits to 4096
This commit is contained in:
parent
9b68099ad5
commit
3712cd8e2c
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue