Compartir a través de


HttpsConnectionAdapterOptions.ServerCertificateSelector Propiedad

Definición

Devolución de llamada que se invocará para seleccionar dinámicamente un certificado de servidor. Esta es una prioridad más alta que ServerCertificate. Si SNI no está disponible, el parámetro name será NULL. ConnectionContext será null para las conexiones HTTP/3.

Si el certificado de servidor tiene una extensión uso de clave extendida, los usos deben incluir la autenticación del servidor (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)

Valor de propiedad

Se aplica a