From bedf86eda29c405ba9a194cc01f99974ba9a7333 Mon Sep 17 00:00:00 2001 From: Santiago Date: Sat, 18 May 2024 01:28:35 +0200 Subject: [PATCH] Fix generateCertificate helper function (prober tests) --- prober/utils_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prober/utils_test.go b/prober/utils_test.go index 1b1c41dc..47e806a6 100644 --- a/prober/utils_test.go +++ b/prober/utils_test.go @@ -104,7 +104,7 @@ func generateCertificateTemplate(expiry time.Time, IPAddressSAN bool) *x509.Cert } func generateCertificate(template, parent *x509.Certificate, publickey *rsa.PublicKey, privatekey *rsa.PrivateKey) (*x509.Certificate, []byte) { - derCert, err := x509.CreateCertificate(rand.Reader, template, template, publickey, privatekey) + derCert, err := x509.CreateCertificate(rand.Reader, template, parent, publickey, privatekey) if err != nil { panic(fmt.Sprintf("Error signing test-certificate: %s", err)) }