Skip to content

Commit

Permalink
util: Correctly use specificed RSA keysize
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden committed Aug 31, 2021
1 parent d58d39e commit 37efebd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ func QueryStrForLog(query string) string {
}

func createTLSCertificates(certpath string, keypath string, rsaKeySize int) error {
privkey, err := rsa.GenerateKey(rand.Reader, 4096)
privkey, err := rsa.GenerateKey(rand.Reader, rsaKeySize)
if err != nil {
return err
}
Expand Down

0 comments on commit 37efebd

Please sign in to comment.