ServerCertificateSelectionCallback Delegate
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Selects the server Secure Sockets Layer (SSL) certificate.
public delegate System::Security::Cryptography::X509Certificates::X509Certificate ^ ServerCertificateSelectionCallback(System::Object ^ sender, System::String ^ hostName);
public delegate System.Security.Cryptography.X509Certificates.X509Certificate ServerCertificateSelectionCallback(object sender, string? hostName);
public delegate System.Security.Cryptography.X509Certificates.X509Certificate ServerCertificateSelectionCallback(object sender, string hostName);
type ServerCertificateSelectionCallback = delegate of obj * string -> X509Certificate
Public Delegate Function ServerCertificateSelectionCallback(sender As Object, hostName As String) As X509Certificate
- hostName
- String
The host name requested by the client. If the client doesn't use the host_name TLS extension, the hostName
is an empty string.
An X509Certificate used for establishing an SSL connection.
The server uses this delegate to select a server connection certificate.
This delegate is used by the SslStream class. The SslStream class is used to help secure information exchanged between a client and server.
Get |
Gets an object that represents the method represented by the specified delegate. |
Product | Versions |
---|---|
.NET | Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Standard | 2.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: