Edit

Share via


TlsOptions.LocalCertificate Property

Definition

Specifies the local certificate used to authenticate TLS connections. This is ignored on server if LocalCertificateSelector is set.

To omit client authentication set to null on client and set RemoteCertificateMode to AllowCertificate or NoCertificate on server.

If the certificate has an Extended Key Usage extension, the usages must include Server Authentication (OID 1.3.6.1.5.5.7.3.1) for server and Client Authentication (OID 1.3.6.1.5.5.7.3.2) for client.

public System.Security.Cryptography.X509Certificates.X509Certificate2 LocalCertificate { get; set; }
member this.LocalCertificate : System.Security.Cryptography.X509Certificates.X509Certificate2 with get, set
Public Property LocalCertificate As X509Certificate2

Property Value

Applies to