System.Security.Cryptography.X509Certificates.X500DistinguishedName Class

Represents the distinguished name of an X509 certificate. This class cannot be inherited.

See Also: X500DistinguishedName Members

Syntax

[System.MonoTODO("Some X500DistinguishedNameFlags options aren't supported, like DoNotUsePlusSign, DoNotUseQuotes and ForceUTF8Encoding")]
public sealed class X500DistinguishedName : System.Security.Cryptography.AsnEncodedData

Remarks

This class is like an extension to the X509Certificate2.SubjectName or X509Certificate2.IssuerName property, which is the name of the person or entity that the certificate is being issued to. X.500 is an international standard for distributed directory services. The distinguished name uses the following format:

[X500:/C=CountryCode/O=Organization/OU=OrganizationUnit/CN=CommonName]

The following field length limits apply:

CountryCode

2 characters

Organization

Up to 64 characters

OrganizationUnit

Up to 32 characters

CommonName

Up to 64 characters

The following guidelines apply:

The following is an example of a correctly formatted name: [X500:/ C=US/ O=Microsoft/ OU=WGA/ CN=TedSt]

Requirements

Namespace: System.Security.Cryptography.X509Certificates
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0