System.Net.Mail.SmtpClient.ClientCertificates Property

Specify which certificates should be used to establish the Secure Sockets Layer (SSL) connection.

Syntax

[System.MonoTODO("Client certificates not used")]
public System.Security.Cryptography.X509Certificates.X509CertificateCollection ClientCertificates { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Client certificates are, by default, optional; however, the server configuration might require that the client present a valid certificate as part of the initial connection negotiation.

Note:

The Framework caches SSL sessions as they are created and attempts to reuse a cached session for a new request, if possible. When attempting to reuse an SSL session, the Framework uses the first element of SmtpClient.ClientCertificates (if there is one), or tries to reuse an anonymous sessions if SmtpClient.ClientCertificates is empty.

Requirements

Namespace: System.Net.Mail
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0