Certificate mail addresses

0 votes
asked Aug 5, 2010 by Francois (120 points)
edited Mar 21, 2011

The class Rebex.Security.Certificates.Certificate implements a method GetMailAddresses(). I just wonder where the returned addresses come from (which fields of the certficate). Thanks for any response.. Froggy

Applies to: Rebex Secure Mail

1 Answer

0 votes
answered Aug 9, 2010 by Martin Vobr (12,950 points)
edited Aug 9, 2010

If the certificate includes Subject Alternative Name extension (OID = the GetMailAddresses() returns value(s) from Subject Alternative Name field.

If this extension is not present, the email section of Distinguished Name (text after the 'E=' in Subject field) is returned.