fix: exclude displayName from SAN DNS

pull/1671/head
beltram 1 year ago committed by Herman Slatman
parent 3f474f77d4
commit 79501df5a2
No known key found for this signature in database
GPG Key ID: F4D8A44EA0A75A4F

@ -354,8 +354,11 @@ func (o *Order) sans(csr *x509.CertificateRequest) ([]x509util.SubjectAlternativ
if err != nil {
return sans, NewErrorISE("unsupported identifier value in order: %s", n.Value)
}
orderNames[indexDNS] = wireID.Name
indexDNS++
//orderNames[indexDNS] = wireID.Name
//indexDNS++
if wireID.Name != csr.Subject.CommonName {
return sans, NewError(ErrorBadCSRType, "CSR Subject CommonName should match displayName exactly: CSR Subj CN = %v, displayName = %v", csr.Subject.CommonName, wireID.Name)
}
orderURIs[indexURI] = wireID.ClientID
indexURI++
orderURIs[indexURI] = wireID.Handle

Loading…
Cancel
Save