X509Certificate2 Class
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Represents an X.509 certificate.
System.Security.Cryptography.X509Certificates..::..X509Certificate
System.Security.Cryptography.X509Certificates..::..X509Certificate2
Namespace: System.Security.Cryptography.X509Certificates
Assembly: System.Security (in System.Security.dll)
The X509Certificate2 type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | X509Certificate2(Session, array<CryptokiAttribute>[]()[][]) | Initializes a new instance of the X509Certificate2 class with the specified session and template. |
![]() | X509Certificate2(Session, array<Byte>[]()[][], String) | Initializes a new instance of the X509Certificate2 class with specified session, data and password. |
| Name | Description | |
|---|---|---|
![]() | HasPrivateKey | Gets a value that indicates whether an X509Certificate2 object contains a private key. |
![]() | Issuer | Gets the name of the certificate authority that issued the X.509v3 certificate. (Overrides X509Certificate..::..Issuer.) |
![]() | KeyType | Gets the KeyType (RSA, DSA, etc.) associated with a certificate. |
![]() | NotAfter | Gets the date in local time after which a certificate is no longer valid. |
![]() | NotBefore | Gets the date in local time on which a certificate becomes valid. |
![]() | PrivateKey | Gets or sets the AsymmetricAlgorithm object that represents the private key associated with a certificate. |
![]() | PublicKey | Gets a PublicKey object associated with a certificate. |
![]() | RawData | Gets the raw data of a certificate. |
![]() | SerialNumber | Gets the serial number of a certificate. |
![]() | SignatureAlgorithm | Gets the algorithm used to create the signature of a certificate. |
![]() | Subject | Gets the subject distinguished name from the certificate. (Overrides X509Certificate..::..Subject.) |
![]() | Thumbprint | Gets the thumbprint of a certificate. |
| Name | Description | |
|---|---|---|
![]() | CreateHexString | Creates a hexamdecimal string. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Equals(X509Certificate2) | Compares two X509Certificate2 objects for equality. |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetCertHash | Returns the hash value for the X.509v3 certificate as an array of bytes. |
![]() | GetCertHashString | Returns the SHA1 hash value for the X.509v3 certificate as a hexadecimal string. |
![]() | GetEffectiveDate | Retrieves the effective date of the certificate. (Inherited from X509Certificate.) |
![]() | GetEffectiveDateString | Returns the effective date of this X.509v3 certificate. |
![]() | GetExpirationDate | Retrieves the expiration date of the certificate. (Inherited from X509Certificate.) |
![]() | GetExpirationDateString | Returns the expiration date of this X.509v3 certificate. |
![]() | GetHashCode | Returns the hash code for the X.509v3 certificate as an integer. (Overrides Object..::..GetHashCode()()()().) |
![]() | GetRawCertData | Returns the raw data for the entire X.509v3 certificate. (Overrides X509Certificate..::..GetRawCertData()()()().) |
![]() | GetSerialNumber | Returns the serial number of the X.509v3 certificate. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString()()()() | Displays an X.509 certificate in text format. (Overrides Object..::..ToString()()()().) |
![]() | ToString(Boolean) | Displays an X.509 certificate in text format. |
![]() | Verify | Performs a X.509 chain validation using basic validation policy. |
| Name | Description | |
|---|---|---|
![]() | m_effectiveDate | Contains the effective date of the certificate. (Inherited from X509Certificate.) |
![]() | m_expirationDate | Contains the expiration date of the certificate. (Inherited from X509Certificate.) |
![]() | m_handle | Contains the handle. (Inherited from X509Certificate.) |
![]() | m_issuer | Contains the certificate issuer. (Inherited from X509Certificate.) |
![]() | m_sessionHandle | Contains the session handle. (Inherited from X509Certificate.) |
![]() | m_subject | Contains the subject. (Inherited from X509Certificate.) |
The X.509 structure originated in the International Organization for Standardization (ISO) working groups. This structure can be used to represent various types of information including identity, entitlement, and holder attributes (permissions, age, sex, location, affiliation, and so forth). Although the ISO specifications are most informative on the structure itself, the X509Certificate2 class is designed to model the usage scenarios defined in specifications issued by the Internet Engineering Task Force (IETF) Public Key Infrastructure, X.509 (PKIX) working group. The most informative of these specifications is RFC 3280, "Certificate and Certificate Revocation List (CRL) Profile."
| Topic | Location |
|---|---|
| How to: Encrypt XML Elements with X.509 Certificates | .NET Framework: Security |
| How to: Decrypt XML Elements with X.509 Certificates | .NET Framework: Security |
| How to: Encrypt XML Elements with X.509 Certificates | .NET Framework: Security |
| How to: Decrypt XML Elements with X.509 Certificates | .NET Framework: Security |
