HttpClientHandler.ClientCertificates Property

Definition

Gets the collection of security certificates that are associated with requests to the server.

C#
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public System.Security.Cryptography.X509Certificates.X509CertificateCollection ClientCertificates { get; }
C#
public System.Security.Cryptography.X509Certificates.X509CertificateCollection ClientCertificates { get; }

Property Value

The X509CertificateCollection that is presented to the server when performing certificate based client authentication.

Attributes

Remarks

On .NET Core, the key usage attribute on the X509 certificate, if present, is required to have the value "Digital Signature" in order to be used when sending the request.

Applies to

Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.3, 1.4, 1.6, 2.0, 2.1