mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +01:00
fix: change size of dummy key to 2048
This fixes the CodeQL scan issue for using a weak key.
This commit is contained in:
parent
42963f4287
commit
550e93e62a
@ -40,7 +40,7 @@ func (uice UserInputCancelError) Error() string {
|
||||
// different public keys even when the current key cannot be
|
||||
// properly parsed
|
||||
func createDummySigner() ([]ssh.Signer, error) {
|
||||
dummyKey, err := rsa.GenerateKey(rand.Reader, 1024)
|
||||
dummyKey, err := rsa.GenerateKey(rand.Reader, 2048)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user