Partager via


HttpsConnectionAdapterOptions.ServerCertificateSelector Propriété

Définition

Rappel qui sera appelé pour sélectionner dynamiquement un certificat de serveur. Il s’agit d’une priorité plus élevée que ServerCertificate. Si SNI n’est pas disponible, le paramètre name est null. le ConnectionContext sera null pour les connexions HTTP/3.

Si le certificat de serveur a une extension d’utilisation de clé étendue, les utilisations doivent inclure l’authentification du serveur (OID 1.3.6.1.5.5.7.3.1).

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)

Valeur de propriété

S’applique à