共用方式為


TlsOptions.LocalServerCertificateSelector 屬性

定義

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

如果憑證具有擴充金鑰使用延伸模組,則使用方式必須包含伺服器驗證 (OID 1.3.6.1.5.5.7.3.1) 。

public Func<Microsoft.AspNetCore.Connections.ConnectionContext,string,System.Security.Cryptography.X509Certificates.X509Certificate2> LocalServerCertificateSelector { get; set; }
member this.LocalServerCertificateSelector : Func<Microsoft.AspNetCore.Connections.ConnectionContext, string, System.Security.Cryptography.X509Certificates.X509Certificate2> with get, set
Public Property LocalServerCertificateSelector As Func(Of ConnectionContext, String, X509Certificate2)

屬性值

適用於