SslServerAuthenticationOptions.ServerCertificateSelectionCallback Property

Definition

Gets or sets the ServerCertificateSelectionCallback delegate responsible for the server certificate selection.

C#
public System.Net.Security.ServerCertificateSelectionCallback? ServerCertificateSelectionCallback { get; set; }
C#
public System.Net.Security.ServerCertificateSelectionCallback ServerCertificateSelectionCallback { get; set; }

Property Value

Remarks

During the server connection establishment, the server first uses ServerCertificateSelectionCallback callback. If the delegate is not provided server uses LocalCertificateSelectionCallback provided as argument of SslStream.SslStream (for the .NET Framework compatibility). If none/neither of those callback are provided, the server falls back to ServerCertificate.

Applies to

Product Versions
.NET Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.1