Bagikan melalui


HttpsConnectionAdapterOptions.ServerCertificateSelector Properti

Definisi

Panggilan balik yang akan dipanggil untuk memilih sertifikat server secara dinamis. Ini adalah prioritas yang lebih tinggi daripada ServerCertificate. Jika SNI tidak tersedia, maka parameter nama akan null. ConnectionContext akan null untuk koneksi HTTP/3.

Jika sertifikat server memiliki ekstensi Penggunaan Kunci yang Diperpanjang, penggunaan harus menyertakan Autentikasi Server (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)

Nilai Properti

Berlaku untuk