Skip to content

Commit 2abcf01

Browse files
Fix generateCertificate helper function (prober tests)
Signed-off-by: Santiago Hernández <[email protected]> Signed-off-by: Santiago <[email protected]>
1 parent 6efcf0c commit 2abcf01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prober/utils_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func generateCertificateTemplate(expiry time.Time, IPAddressSAN bool) *x509.Cert
104104
}
105105

106106
func generateCertificate(template, parent *x509.Certificate, publickey *rsa.PublicKey, privatekey *rsa.PrivateKey) (*x509.Certificate, []byte) {
107-
derCert, err := x509.CreateCertificate(rand.Reader, template, template, publickey, privatekey)
107+
derCert, err := x509.CreateCertificate(rand.Reader, template, parent, publickey, privatekey)
108108
if err != nil {
109109
panic(fmt.Sprintf("Error signing test-certificate: %s", err))
110110
}

0 commit comments

Comments
 (0)