HttpsConnectionAdapterOptions.ServerCertificateSelector Özellik

Tanım

Dinamik olarak bir sunucu sertifikası seçmek için çağrılacak bir geri çağırma. Bu, ServerCertificate'ten daha yüksek önceliklidir. SNI kullanılamıyorsa ad parametresi null olur. HTTP ConnectionContext /3 bağlantıları için null olacaktır.

Sunucu sertifikasının Genişletilmiş Anahtar Kullanımı uzantısı varsa, kullanımlar Sunucu Kimlik Doğrulamasını (OID 1.3.6.1.5.5.7.3.1) içermelidir.

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)

Özellik Değeri

Şunlara uygulanır