The getCertFromPKCS7 method is used to retrieve from a PKCS #7 just the single certificate that was issued. (The PKCS #7 may contain many certificates specifying the certification chain of authority that issued the certificate.)
[VB] BSTR getCertFromPKCS7(
BSTR wszPKCS7
);
[C++] HRESULT getCertFromPKCS7(
BSTR wszPKCS7, // in
BSTR *pbstrCert // in
);
Returns the single certificate (in BSTR form) that was issued.