Skip to content

Commit ff27245

Browse files
andy-a-d-nguyenmaxmoehl
authored andcommitted
Address gosec rule G403
1 parent 0df993a commit ff27245

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/code.cloudfoundry.org/test-helpers/tls_helpers.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func mapToX509Cert(PemEncodedCertFilePath string) []*x509.Certificate {
5858
}
5959

6060
func buildCaFile() (string, *rsa.PrivateKey, error) {
61-
privKey, err := rsa.GenerateKey(rand.Reader, 1024)
61+
privKey, err := rsa.GenerateKey(rand.Reader, 2048)
6262
if err != nil {
6363
return "", nil, err
6464
}
@@ -102,7 +102,6 @@ func buildCaFile() (string, *rsa.PrivateKey, error) {
102102
Type: "CERTIFICATE",
103103
Bytes: caCert,
104104
})
105-
106105
if err != nil {
107106
return "", nil, err
108107
}

0 commit comments

Comments
 (0)