Dela via


HttpsConnectionAdapterOptions.ServerCertificate Property

Definition

Specifies the server certificate information presented when an https connection is initiated. This is ignored if ServerCertificateSelector is set.

If the server certificate has an Extended Key Usage extension, the usages must include Server Authentication (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

Property Value

Applies to