remove displayName validation, potentially harmful

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

@ -356,9 +356,9 @@ func (o *Order) sans(csr *x509.CertificateRequest) ([]x509util.SubjectAlternativ
}
//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)
}
//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