Historical Content Alert

This is a historical content for Windows NT 4.0 product and is presented for informative purposes only. All content in this directory is copyrighted and owned by Microsoft.

acceptPKCS7

This method accepts and processes a base64 encoded PKCS 7 (in BSTR form) containing a certificate. The PKCS 7 is input as a parameter.

The acceptPKCS7 method takes one parameter, a base64 encoded PKCS 7 (in BSTR form) that contains a certificate and the chain of certificates, possibly up to the root, identifying the issuer of the certificate. The certificate and the associated keys generated for it are put in the MY store. A root certificate is placed in the ROOT store and the rest of the chain of certificates are placed in the Certification Authority (CA) store. If any ROOT certificates found in the PKCS 7 are accepted, Crypt32 will notify the user that a ROOT is being added to his store. The user has the option of declining the ROOT certificate, but Certificate Enrollment Control will not fail acceptance for this reason.

By default the system stores MY, CA, ROOT, and REQUEST are used for storing the certificates. However the stores to use may be specified by assigning the following properties before calling this method:
MyStoreName
CAStoreName
RootStoreName
RequestStoreName (a Certificate Enrollment defined system store)
[VB] void acceptPKCS7 (
  BSTR PKCS7
);
 
[C++] HRESULT acceptPKCS7 (
  BSTR PKCS7 // in
);
 

Parameters

[VB][C++] PKCS7
The base64 encoded PKCS 7 containing the certificate and the chain of certificates, possibly up to the root, identifying the issuer of the certificate.

Return Values

acceptPKCS7 returns nothing. However, an error will be thrown on failure.


Share this article: