The Certificate type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| AssociateWithPrivateKey(String, String) |
Associates the certificate with a private key from a PVK file.
| |
| AssociateWithPrivateKey(String, String, Boolean) |
Associates the certificate with a private key from a PVK file.
| |
| Clone |
Creates a copy of this Certificate.
| |
| CreateFromBase64String |
Creates a new Certificate from a string representation.
| |
| CreateFromCerFile(array<Byte>[]()[][]) |
Creates a new instance of the Certificate class by reading a certificate from a certificate blob.
| |
| CreateFromCerFile(String) |
Creates a new instance of the Certificate class by opening a certificate file and retrieving the first certificate from it.
| |
| CreateFromCerFile(array<Byte>[]()[][], Int32, Int32) |
Creates a new instance of the Certificate class by reading a certificate from a certificate blob.
| |
| CreateFromPemFile(array<Byte>[]()[][]) |
Creates a new instance of the Certificate class by reading a certificate from a PEM encoded file.
| |
| CreateFromPemFile(String) |
Creates a new instance of the Certificate class by reading a certificate from a PEM encoded file.
| |
| CreateFromPfxFile(array<Byte>[]()[][], String) |
Creates a new instance of the Certificate class by opening a PFX file and retrieving the first certificate from it.
| |
| CreateFromPfxFile(String, String) |
Creates a new instance of the Certificate class by opening a PFX file and retrieving the first certificate from it.
| |
| CreateFromPfxFile(array<Byte>[]()[][], String, Boolean) |
Creates a new instance of the Certificate class by opening a PFX file and retrieving the first certificate from it.
| |
| CreateFromPfxFile(String, String, Boolean) |
Creates a new instance of the Certificate class by opening a PFX file and retrieving the first certificate from it.
| |
| CreateFromPfxFile(array<Byte>[]()[][], String, Boolean, KeysetLocation) |
Creates a new instance of the Certificate class by opening a PFX file and retrieving the first certificate from it.
| |
| CreateFromPfxFile(String, String, Boolean, KeysetLocation) |
Creates a new instance of the Certificate class by opening a PFX file and retrieving the first certificate from it.
| |
| CreateFromX509Certificate |
Creates a new instance of the Certificate class by duplicating an existing X509Certificate instance.
| |
| DecodeExtension(Extension, Int32, Type) |
Decodes the specified extension and returns an object of the specified type that is instantiated with the decoded bytes.
| |
| DecodeExtension(Extension, IntPtr, Type) |
Decodes the specified extension and returns an object of the specified type that is instantiated with the decoded bytes.
| |
| DecodeExtension(Extension, String, Type) |
Decodes the specified extension and returns an object of the specified type that is instantiated with the decoded bytes.
| |
| Equals(Object) |
Compares two Certificate objects for equality.
(Overrides Object..::..Equals(Object).) | |
| Equals(X509Certificate) |
Compares a Certificate object and an X509Certificate object for equality.
| |
| Equals(Certificate) |
Compares two Certificate objects for equality.
| |
| ExportPrivateKey |
Exports the private key of this certificate to a PVK file.
| |
| Finalize |
Disposes of the certificate and frees unmanaged resources.
(Overrides Object..::..Finalize()()()().) | |
| FindExtension |
Searches for a certificate extension.
| |
| GetCertHash()()()() |
Returns the hash value for the X.509v3 certificate as an array of bytes.
| |
| GetCertHash(HashType) |
Returns the hash value for the X.509v3 certificate as an array of bytes.
| |
| GetCertHashString()()()() |
Returns the hash value for the X.509v3 certificate as a hexadecimal string.
| |
| GetCertHashString(HashType) |
Returns the hash value for the X.509v3 certificate as a hexadecimal string.
| |
| GetCertificateChain |
Returns a CertificateChain where the leaf certificate corresponds to this Certificate.
| |
| GetDistinguishedName |
Returns a list of attributes of the X.509v3 certificate.
| |
| GetEffectiveDate |
Returns the effective date of this X.509v3 certificate.
| |
| GetEnhancedKeyUsage |
Returns a list of enhanced key usages of the X.509v3 certificate.
| |
| GetExpirationDate |
Returns the expiration date of this X.509v3 certificate.
| |
| GetExtensions |
Returns a list of extensions of the X.509v3 certificate.
| |
| GetFormat |
Returns the name of the format of this X.509v3 certificate.
| |
| GetHashCode |
Returns the hash code for the X.509v3 certificate as an integer.
(Overrides Object..::..GetHashCode()()()().) | |
| GetIntendedKeyUsage |
Returns a list of intended key usages of the X.509v3 certificate.
| |
| GetIssuerName |
Returns the name of the certification authority that issued the X.509v3 certificate.
| |
| GetKeyAlgorithmParameters |
Returns the key algorithm parameters for the X.509v3 certificate.
| |
| GetKeyAlgorithmParametersString |
Returns the key algorithm parameters for the X.509v3 certificate.
| |
| GetKeyIdentifier |
Gets the unique identifier associated with the key.
| |
| GetPublicKey |
Returns the public key for the X.509v3 certificate.
| |
| GetPublicKeyLength |
Returns the length of the public key of the X.509v3 certificate.
| |
| GetPublicKeyString |
Returns the public key for the X.509v3 certificate.
| |
| GetRawCertData |
Returns the raw data for the entire X.509v3 certificate.
| |
| GetRawCertDataString |
Returns the raw data for the entire X.509v3 certificate.
| |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| GetValidUsages |
Returns an array of usages consisting of the intersection of the valid usages for all certificates in an array of certificates.
| |
| HasPrivateKey |
Checks whether the Certificate has a private key associated with it.
| |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ToBase64String |
Returns a Base64-encoded representation of the certificate.
| |
| ToCerBuffer |
Saves the Certificate as an encoded buffer.
| |
| ToCerFile |
Saves the Certificate as an encoded file.
| |
| ToPemBuffer |
Converts the Certificate to a PEM encoded buffer.
| |
| ToPfxBuffer |
Saves the Certificate as a PFX encoded buffer.
| |
| ToPfxFile |
Saves the Certificate as a PFX encoded file.
| |
| ToString()()()() |
Returns a string representation of the current Certificate object.
(Overrides Object..::..ToString()()()().) | |
| ToString(Boolean) |
Returns a string representation of the current X509Certificate object, with extra information, if specified.
| |
| ToX509 |
Returns an X509Certificate object that corresponds to this Certificate.
| |
| VerifyRevocation |
Verifies whether this certificate has been revoked or not.
|