MailServiceGetSslClientAuthenticationOptions Method

Gets the SSL/TLS client authentication options for use with .NET5's SslStream.AuthenticateAsClient() API.

Definition

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
protected virtual SslClientAuthenticationOptions GetSslClientAuthenticationOptions(
	string host,
	RemoteCertificateValidationCallback remoteCertificateValidationCallback
)

Parameters

host  String
The target host that the client is connected to.
remoteCertificateValidationCallback  RemoteCertificateValidationCallback
The remote certificate validation callback.

Return Value

SslClientAuthenticationOptions
The client SSL/TLS authentication options.

Remarks

Gets the SSL/TLS client authentication options for use with .NET5's SslStream.AuthenticateAsClient() API.

  Note

This method is only available on .NETStandard 2.1 and .NET 8.0 and later.

See Also