X509Certificate2 Members

The following tables list the members exposed by the X509Certificate2 type.

Public Constructors

Name Description
Public Method X509Certificate2 Overloaded. Initializes a new instance of the X509Certificate2 class.

Public Properties

Name Description
Public Property HasPrivateKey Gets a value that indicates whether an X509Certificate2 object contains a private key.
Public Property Issuer Gets the name of the certificate authority that issued the X.509v3 certificate.
Public Property KeyType Gets the key type associated with a certificate.
Public Property NotAfter Gets the date in local time after which a certificate is no longer valid.
Public Property NotBefore Gets the date in local time on which a certificate becomes valid.
Public Property PrivateKey Gets or sets the asymmetric algorithm object that represents the private key associated with a certificate.
Public Property PublicKey Gets an asymmetric algorithm object that represents the public key associated with a certificate.
Public Property RawData Gets the raw data of a certificate.
Public Property SerialNumber Gets the serial number of a certificate
Public Property SignatureAlgorithm Gets the algorithm used to create the signature of a certificate.
Public Property Subject Gets the subject distinguished name from the certificate.
Public Property Thumbprint Gets the thumbprint of a certificate.

Public Methods

Name Description
Public Method Equals Overloaded. Compares two X509Certificate objects for equality.
Public Method GetCertHash Returns the hash value for the X.509v3 certificate as an array of bytes.
Public Method GetCertHashString Returns the SHA1 hash value for the X.509v3 certificate as a hexadecimal string.
Public Method GetEffectiveDateString Returns the effective date of this X.509v3 certificate.
Public Method GetExpirationDateString Returns the expiration date of this X.509v3 certificate.
Public Method GetHashCode Returns the hash code for the X.509v3 certificate as an integer.
Public Method GetRawCertData Returns the raw data for the entire X.509v3 certificate.
Public Method GetSerialNumber Returns the serial number of the X.509v3 certificate.
Public Method ToString Overloaded. Returns a string representation of the current X509Certificate2 object.
Public Method Verify Performs a X.509 chain validation using basic validation policy.

See Also

Reference

X509Certificate2 Class
System.Security.Cryptography.X509Certificates Namespace