Skip to content

Commit

Permalink
Merge pull request #325 from jack-w-shaw/JUJU-2465_increase_rsa_bits
Browse files Browse the repository at this point in the history
[JUJU-2465] Increase SSH rsa keys size to 3072 bits
  • Loading branch information
jack-w-shaw authored Jan 23, 2023
2 parents c3fbc78 + 829a6b4 commit ce9eede
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ssh/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ var rsaGenerateKey = rsa.GenerateKey

// KeyBits is used to determine the number of bits to use for the RSA keys
// created using the GenerateKey function.
var KeyBits = 2048
var KeyBits = 3072

// GenerateKey makes a 2048 bit RSA no-passphrase SSH capable key. The bit
// GenerateKey makes a 3072 bit RSA no-passphrase SSH capable key. The bit
// size is actually controlled by the KeyBits var. The private key returned is
// encoded to ASCII using the PKCS1 encoding. The public key is suitable to
// be added into an authorized_keys file, and has the comment passed in as the
Expand Down

0 comments on commit ce9eede

Please sign in to comment.