Share 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 System.Security.Cryptography.X509Certificates.X509Certificate2 ServerCertificate { get; set; }
public System.Security.Cryptography.X509Certificates.X509Certificate2? ServerCertificate { get; set; }

Property Value

Applies to

Product Versions
ASP.NET Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0