mirror of
https://github.com/outbackdingo/certificates.git
synced 2026-01-27 10:18:34 +00:00
fix: invalid OID for display name in CSR
This commit is contained in:
@@ -321,7 +321,7 @@ func (o *Order) subject(csr *x509.CertificateRequest) (subject x509util.Subject,
|
||||
|
||||
// TODO: temporarily using a custom OIDC for carrying the display name without having it listed as a DNS SAN.
|
||||
// reusing LDAP's OID for diplay name see http://oid-info.com/get/2.16.840.1.113730.3.1.241
|
||||
displayNameOid := asn1.ObjectIdentifier{1, 2, 840, 113549, 1, 9, 1}
|
||||
displayNameOid := asn1.ObjectIdentifier{2, 16, 840, 1, 113730, 3, 1, 241}
|
||||
var foundDisplayName = false
|
||||
for _, entry := range csr.Subject.Names {
|
||||
if entry.Type.Equal(displayNameOid) {
|
||||
|
||||
Reference in New Issue
Block a user