Skip to content
Snippets Groups Projects
Commit 8a21f276 authored by ale's avatar ale
Browse files

Always include all names as subjectAltNames

parent 49bac552
Branches
No related tags found
No related merge requests found
......@@ -325,9 +325,7 @@ func concatDER(der [][]byte) []byte {
func certRequest(key crypto.Signer, domains []string) ([]byte, error) {
req := &x509.CertificateRequest{
Subject: pkix.Name{CommonName: domains[0]},
}
if len(domains) > 1 {
req.DNSNames = domains[1:]
DNSNames: domains,
}
return x509.CreateCertificateRequest(rand.Reader, req, key)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment