HttpsConnectionAdapterOptions.ServerCertificateSelector 屬性

定義

將叫用以動態方式選取伺服器憑證的回呼。 此優先順序高於 ServerCertificate。 如果無法使用 SNI,則 name 參數會是 Null。 HTTP ConnectionContext /3 連線的 會是 Null。

如果伺服器憑證具有擴充金鑰使用方式延伸模組,則使用方式必須包含伺服器驗證 (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)

屬性值

適用於