CertificateValidity Enumeration
Represents the validity status of an X.509 certificate.
Namespace: System.Net.Security
Assembly: System (in System.dll)
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 certificate's issuance chain.
- The certificate's expiration date.
- Whether the certificate has been revoked.
- Whether the certificate is trusted by the local system.
The resulting validity status is returned as a member of the CertificateValidity enumeration.
Requirements
| Requirement | Description |
|---|---|
| Namespace | System.Net.Security |
| Assembly | System.dll |