The CertificateStore type exposes the following members.

Constructors

  NameDescription
Public methodCertificateStore()()()()
Initializes a new temporary CertificateStore in memory.
Public methodCertificateStore(IEnumerable)
Initializes a new temporary CertificateStore in memory and adds the specified certificates to it.
Public methodCertificateStore(IntPtr)
Initializes a new CertificateStore from a given handle.
Public methodCertificateStore(String)
Initializes a new CertificateStore from a given store name.
Public methodCertificateStore(CertificateStore)
Duplicates an exisiting CertificateStore.
Public methodCertificateStore(array<Byte>[]()[][], CertificateStoreType)
Opens a serialized certificate store or a certificate store with signed PKCS7 messages.
Public methodCertificateStore(IntPtr, Boolean)
Initializes a new CertificateStore from a given handle.
Public methodCertificateStore(StoreLocation, String)
Initializes a new CertificateStore from a given store name and a given store location.

Methods

  NameDescription
Public methodAddCertificate
Adds a Certificate to the CertificateStore.
Public methodStatic memberCreateFromCerFile
Creates a new certificate store from a certificate file.
Public methodStatic memberCreateFromPfxFile(array<Byte>[]()[][], String)
Creates a new certificate store from a PFX/P12 encoded file.
Public methodStatic memberCreateFromPfxFile(String, String)
Creates a new certificate store from a PFX/P12 encoded file.
Public methodStatic memberCreateFromPfxFile(array<Byte>[]()[][], String, Boolean)
Creates a new certificate store from a PFX/P12 encoded file.
Public methodStatic memberCreateFromPfxFile(String, String, Boolean)
Creates a new certificate store from a PFX/P12 encoded file.
Public methodStatic memberCreateFromPfxFile(array<Byte>[]()[][], String, Boolean, KeysetLocation)
Creates a new certificate store from a PFX/P12 encoded file.
Public methodStatic memberCreateFromPfxFile(String, String, Boolean, KeysetLocation)
Creates a new certificate store from a PFX/P12 encoded file.
Public methodDeleteCertificate
Deletes a Certificate from the CertificateStore.
Public methodEnumCertificates()()()()
Enumerates all the certificates in the store.
Public methodEnumCertificates(array<String>[]()[][])
Enumerates all the certificates in the store.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Disposes of the CertificateStore.
(Overrides Object..::..Finalize()()()().)
Public methodFindCertificate()()()()
Returns the first certificate from the CertificateStore.
Public methodFindCertificate(Certificate)
Returns a certificate from the CertificateStore.
Public methodFindCertificateByHash(array<Byte>[]()[][])
Finds a certificate with a matching hash.
Public methodFindCertificateByHash(array<Byte>[]()[][], HashType)
Finds a certificate with a matching hash.
Public methodFindCertificateByKeyIdentifier
Finds a certificate with a matching key identifier.
Public methodFindCertificateBySubjectName(String)
Finds a certificate with a matching subject name.
Public methodFindCertificateBySubjectName(String, Certificate)
Finds a certificate with a matching subject name.
Public methodFindCertificateBySubjectString(String)
Finds a certificate with a subject that contains a specified string.
Public methodFindCertificateBySubjectString(String, Certificate)
Finds a certificate with a subject that contains a specified string.
Public methodFindCertificateByUsage(array<String>[]()[][])
Finds a certificate having an enhanced key extension that matches one of the keyUsage members.
Public methodFindCertificateByUsage(array<String>[]()[][], Certificate)
Finds a certificate having an enhanced key extension that matches one of the keyUsage members.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodInitStore
Initializes a new CertificateStore from a given handle.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToCerBuffer
Saves the CertificateStore in a buffer.
Public methodToCerFile
Saves the CertificateStore in a file.
Public methodToPfxBuffer
Saves the CertificateStore as a PFX encoded file.
Public methodToPfxFile
Saves the CertificateStore as a PFX encoded file.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

Fields

  NameDescription
Public fieldStatic memberCAStore
Represents the predefined system certificate store "CA". This field is constant.
Public fieldStatic memberMyStore
Represents the predefined system certificate store "My". This field is constant.
Public fieldStatic memberRootStore
Represents the predefined system certificate store "Root". This field is constant.
Public fieldStatic memberSoftwarePublisherStore
Represents the software publisher certificate store. This field is constant.
Public fieldStatic memberTrustStore
Represents the predefined system certificate store "Trust". This field is constant.
Public fieldStatic memberUnTrustedStore
Represents the untrusted certificate store. This field is constant.

Properties

  NameDescription
Public propertyHandle
Gets the handle of the CertificateStore.

See Also