Share via


HttpsConnectionAdapterOptions.ServerCertificateSelector Eigenschaft

Definition

Ein Rückruf, der aufgerufen wird, um ein Serverzertifikat dynamisch auszuwählen. Dies hat höhere Priorität als ServerCertificate. Wenn SNI nicht verfügbar ist, ist der name-Parameter NULL. Der ConnectionContext ist NULL für HTTP/3-Verbindungen.

Wenn das Serverzertifikat über eine Erweiterte Schlüsselverwendungserweiterung verfügt, müssen die Verwendungen die Serverauthentifizierung (OID 1.3.6.1.5.5.7.3.1) umfassen.

public:
 property Func<Microsoft::AspNetCore::Connections::ConnectionContext ^, System::String ^, System::Security::Cryptography::X509Certificates::X509Certificate2 ^> ^ ServerCertificateSelector { Func<Microsoft::AspNetCore::Connections::ConnectionContext ^, System::String ^, System::Security::Cryptography::X509Certificates::X509Certificate2 ^> ^ get(); void set(Func<Microsoft::AspNetCore::Connections::ConnectionContext ^, System::String ^, System::Security::Cryptography::X509Certificates::X509Certificate2 ^> ^ value); };
public Func<Microsoft.AspNetCore.Connections.ConnectionContext,string,System.Security.Cryptography.X509Certificates.X509Certificate2> ServerCertificateSelector { get; set; }
public Func<Microsoft.AspNetCore.Connections.ConnectionContext?,string?,System.Security.Cryptography.X509Certificates.X509Certificate2?>? ServerCertificateSelector { get; set; }
member this.ServerCertificateSelector : Func<Microsoft.AspNetCore.Connections.ConnectionContext, string, System.Security.Cryptography.X509Certificates.X509Certificate2> with get, set
Public Property ServerCertificateSelector As Func(Of ConnectionContext, String, X509Certificate2)

Eigenschaftswert

Gilt für: