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.
[VB] void acceptPKCS7 ( BSTR PKCS7 ); [C++] HRESULT acceptPKCS7 ( BSTR PKCS7 // in );
acceptPKCS7 returns nothing. However, an error will be thrown on failure.