ChecklistClientCertificate Method

public static bool ChecklistClientCertificate(
    System.Security.Cryptography.X509Certificates.X509Certificate clientCertificate,
    System.Security.Cryptography.X509Certificates.X509Chain chain,
    System.Security.Security.CertChainPolicyError sslPolicyErrors
);

This topic has been moved and is available here: RemoteSubjectNameChecker.GetRemoteSubjectName.

Syntax

public static bool ChecklistClientCertificate(
    System.Security.Cryptography.X509Certificates.X509Certificate clientCertificate,
    System.Security.Cryptography.X509Certificates.X509Chain chain,
    System.Security.Security.CertChainPolicyError sslPolicyErrors
);

Parameters

Returns

Exceptions

Remarks

This method is used to validate a client certificate against a set of policy rules. It checks for various conditions such as revocation, expiration, and trusted issuers.

The sslPolicyErrors parameter is an enumeration that can specify a combination of errors to check for. For example, you might want to allow expired certificates in certain scenarios by excluding the RemoteCertificateExpired flag.

This method is typically called within the callback of an RemoteCertificateValidationCallback delegate.

Requirements

Namespace: System.Net.Security

Assembly: System (in System.dll)

.NET Framework Versions

Platform Notes