Certificate Management Functions

The following Win32® functions manage the storage, work with certificates, and manage certificate stores.

Function Description
CertAddCertificateContextToStore Adds a certificate context to the certificate store.
CertAddCRLContextToStore Adds a CRL context to the certificate store.
CertAddCTLContextToStore Adds a CTL context to the certificate store.
CertAddCertificateLinkToStore Adds a link in a certificate store to a certificate context in a different store.
CertAddCRLLinkToStore Adds a link in a store to a CRL context in a different store.
CertAddCTLLinkToStore Adds a link in a store to a CTL context in a different Store.
CertAddEncodedCertificateToStore Converts the encoded certificate to a certificate context and then adds the context to the certificate store.
CertAddEncodedCRLToStore Converts the encoded CRL to a CRL context and then adds the context to the certificate store.
CertAddEncodedCTLToStore Converts the encoded CTL to a CTL context and then adds the context to the certificate store.
CertAddSerializedElementToStore Adds the serialized certificate or CRL element to the store.
CertAddStoreToCollection Adds a sibling certificate store to a collection store.
CertCloseStore Closes a certificate store handle.
CertControlStore Notifies application when a change has been made to the persisted store, re-syncs the cached store with the persisted store and commits changes made in the cached store.
CertCreateCertificateContext Creates a certificate context from an encoded certificate. The created context is not put in a certificate store.
CertCreateContext Creates the specified context from the encoded bytes. The new context is not put into a store.
CertCreateCRLContext Creates a CRL context from an encoded CRL. The created context is not put in a certificate store.
CertCreateCTLContext Creates a CTL context from an encoded certificate trust list. The created context is not put in a certificate store.
CertDeleteCertificateFromStore Deletes a certificate from the certificate store.
CertDeleteCRLFromStore Deletes a CRL from the certificate store.
CertDeleteCTLFromStore Deletes a CTL from the certificate store.
CertDuplicateCertificateContext Duplicates a certificate context by incrementing its reference count.
CertDuplicateCRLContext Duplicates a CRL context by incrementing its reference count.
CertDuplicateCTLContext Duplicates a CTL context by incrementing its reference count.
CertDuplicateStore Duplicates a store context by incrementing reference counts.
CertEnumCertificateContextProperties Enumerates the properties for the specified certificate context.
CertEnumCRLContextProperties Enumerates the properties for the specified CRL context.
CertEnumCTLContextProperties Enumerates the properties for the specified CTL context.
CertEnumCertificatesInStore Enumerates the certificate contexts in the certificate store.
CertEnumCRLsInStore Enumerates the CRL contexts in a store.
CertEnumCTLsInStore Enumerates the CTL contexts in the certificate store.
CertEnumPhysicalStore Enumerates the physical stores for a specified system store.
CertEnumSubjectInSortedCTL Enumerates through the TrustedSubjects in a sorted CTL context.
CertEnumSystemStore Enumerates all available system stores.
CertEnumSystemStoreLocation Enumerates all of the locations that have an available system store.
CertFindCertificateInStore Finds the first, or next, certificate context in the certificate store meeting a search criteria.
CertFindCRLInStore Finds the first, or next, CRL context in the certificate store meeting a search criteria.
CertFindCTLInStore Finds the first, or next, CTL context in the certificate store meeting a search criteria.
CertFindSubjectInSortedCTL Attempts to find the specified subject in a sorted CTL.
CertFreeCertificateContext Frees a certificate context.
CertFreeCRLContext Frees a CRL context.
CertFreeCTLContext Frees a CTL context.
CertGetCertificateContextProperty Gets a property of the specified certificate context.
CertGetCRLContextProperty Gets a property of the specified CRL context.
CertGetCRLFromStore Gets the first, or next, CRL context from the certificate store for the specified issuer certificate.
CertGetIssuerCertificateFromStore Gets a certificate context from the certificate store for the fist, or next, issuer of the specified subject certificate.
CertGetStoreProperty Gets a certificate store property
CertGetSubjectCertificateFromStore Gets the subject certificate context, uniquely identified by its issuer and serial number, from the certificate store.
CertOpenStore Opens a certificate store using the specified store provider.
CertOpenSystemStore Opens a system certificate store based on a system name.
CertRegisterPhysicalStore Adds a physical store to a system store collection.
CertRegisterSystemStore Registers a system store.
CertRemoveStoreFromCollection Removes a sibling certificate store from a collection store.
CertSaveStore Saves the certificate store.
CertSerializeCertificateStoreElement Serializes the certificate context's encoded certificate and its properties.
CertSerializeCRLStoreElement Serializes the CRL context's encoded CRL and its properties.
CertSerializeCTLStoreElement Serializes the CTL context's encoded CTL and its properties.
CertSetCertificateContextProperty Sets a property for the specified certificate context.
CertSetCRLContextProperty Sets a property for the specified CRL context.
CertSetCTLContextProperty Sets a property for the specified CTL context.
CertSetStoreProperty Sets a store property.
CertUnregisterPhysicalStore Removes a physical store from a system store collection.
CertUnregisterSystemStore Unregisters a system store.
CertVerifySubjectCertificateContext Performs the enabled verification checks on the subject certificate using the issuer.