0 votes
by (120 points)
edited

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
by (13.3k points)
edited

If the certificate includes Subject Alternative Name extension (OID = 2.5.29.17) 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.

...