CertificateValidity Enumeration

Represents the validity status of an X.509 certificate.

Namespace: System.Net.Security
Assembly: System (in System.dll)

Syntax

public enum CertificateValidity

Members

Member Description
Valid The certificate is valid.
Invalid The certificate is invalid.
Expired The certificate has expired.
NotYetValid The certificate is not yet valid.
Untrusted The certificate is not trusted.
Revoked The certificate has been revoked.
Unknown The validity of the certificate is unknown.

Remarks

The CertificateValidity enumeration is used by the SslPolicy class to determine the validity of an X.509 certificate during SSL/TLS communication.

When a client or server presents a certificate, the security layer validates it against various criteria, including:

The resulting validity status is returned as a member of the CertificateValidity enumeration.

Requirements

Requirement Description
Namespace System.Net.Security
Assembly System.dll

See Also