X509Certificate2 Members
The following tables list the members exposed by the X509Certificate2 type.
Public Constructors
Name | Description | |
---|---|---|
X509Certificate2 | Overloaded. Initializes a new instance of the X509Certificate2 class. |
Public Properties
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. | |
KeyType | Gets the key type 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 asymmetric algorithm object that represents the private key associated with a certificate. | |
PublicKey | Gets an asymmetric algorithm object that represents the public key 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. | |
Thumbprint | Gets the thumbprint of a certificate. |
Public Methods
Name | Description | |
---|---|---|
Equals | Overloaded. Compares two X509Certificate objects for equality. | |
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. | |
GetEffectiveDateString | Returns the effective date of this X.509v3 certificate. | |
GetExpirationDateString | Returns the expiration date of this X.509v3 certificate. | |
GetHashCode | Returns the hash code for the X.509v3 certificate as an integer. | |
GetRawCertData | Returns the raw data for the entire X.509v3 certificate. | |
GetSerialNumber | Returns the serial number of the X.509v3 certificate. | |
ToString | Overloaded. Returns a string representation of the current X509Certificate2 object. | |
Verify | Performs a X.509 chain validation using basic validation policy. |
See Also
Reference
X509Certificate2 Class
System.Security.Cryptography.X509Certificates Namespace