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)) }