Skip to content

Commit

Permalink
Add email addresses to ASN.1 marshalled Name RDN sequences (#375)
Browse files Browse the repository at this point in the history
* add email addresses to ASN.1 marshalled Name RDN sequences

* Moving email up in rdn output

---------

Co-authored-by: Zakir Durumeric <[email protected]>
  • Loading branch information
robplee and zakird authored Nov 6, 2023
1 parent 293c098 commit 94c8f62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions x509/pkix/pkix.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ func (n Name) ToRDNSequence() (ret RDNSequence) {
if len(n.CommonName) > 0 {
ret = n.appendRDNs(ret, []string{n.CommonName}, oidCommonName)
}
ret = n.appendRDNs(ret, n.EmailAddress, oidDNEmailAddress)
ret = n.appendRDNs(ret, n.OrganizationalUnit, oidOrganizationalUnit)
ret = n.appendRDNs(ret, n.Organization, oidOrganization)
ret = n.appendRDNs(ret, n.StreetAddress, oidStreetAddress)
Expand Down

0 comments on commit 94c8f62

Please sign in to comment.