HttpsConnectionAdapterOptions.ServerCertificateSelector 属性

定义

将调用以动态选择服务器证书的回调。 此优先级高于 ServerCertificate。 如果 SNI 不可用,则 name 参数将为 null。 ConnectionContext对于 HTTP/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)

属性值

适用于