SocketTools .NET Edition

ImapClient.CertificateName Property

Gets and sets a value that specifies the name of the client certificate.

[Visual Basic]
Public Property CertificateName As String
[C#]
public string CertificateName {get; set;}

Property Value

A string which specifies the certificate name.

Remarks

The CertificateName property is used to specify the name of a client certificate to use when establishing a secure connection. It is only required that you set this property value if the server requires a client certificate for authentication. If this property is not set, a client certificate will not be provided to the server. If a certificate name is specified, the certificate must have a private key associated with it, otherwise the connection attempt will fail because the control will be unable to create a security context for the session.

When the certificate store is searched for a matching certificate, it will first search for any certificate with a friendly name that matches the property value. If no valid certificate is found, it will then search for a certificate with a matching common name.

Certificates may be installed and viewed on the local system using the Certificate Manager that is included with the Windows operating system. For more information, refer to the documentation for the Microsoft Management Console.

See Also