HttpsConnectionAdapterOptions.ServerCertificate 属性

定义

指定启动 https 连接时显示的服务器证书信息。 如果设置了 ServerCertificateSelector,则忽略此情况。

如果服务器证书具有扩展密钥用法扩展,则用法必须包括服务器身份验证 (OID 1.3.6.1.5.5.7.3.1) 。

public:
 property System::Security::Cryptography::X509Certificates::X509Certificate2 ^ ServerCertificate { System::Security::Cryptography::X509Certificates::X509Certificate2 ^ get(); void set(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ value); };
public System.Security.Cryptography.X509Certificates.X509Certificate2 ServerCertificate { get; set; }
public System.Security.Cryptography.X509Certificates.X509Certificate2? ServerCertificate { get; set; }
member this.ServerCertificate : System.Security.Cryptography.X509Certificates.X509Certificate2 with get, set
Public Property ServerCertificate As X509Certificate2

属性值

适用于