Skip to content

Commit

Permalink
Merge pull request #1 from BOPOHA/patch-1
Browse files Browse the repository at this point in the history
update weak RSA Key size up to 4096; fixes go-httpproxy#15
  • Loading branch information
BOPOHA authored Apr 28, 2022
2 parents 6977c68 + 27bddfe commit 16917a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion casigner.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func SignHosts(ca tls.Certificate, hosts []string) (*tls.Certificate, error) {
}
}
rnd := mrand.New(mrand.NewSource(serial.Int64()))
certPriv, err := rsa.GenerateKey(rnd, 1024)
certPriv, err := rsa.GenerateKey(rnd, 4096)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 16917a7

Please sign in to comment.