win32crypt.CryptGetMessageCertificates

PyCERTSTORE = CryptGetMessageCertificates(SignedBlob, MsgAndCertEncodingType , CryptProv , Flags )

Extracts certificates encoded in a message

Parameters

SignedBlob : buffer

Buffer containing a signed message

MsgAndCertEncodingType=X509_ASN_ENCODING|PKCS_7_ASN_ENCODING : int

Message and certificate encoding types

CryptProv=None : PyCRYPTPROV

Handle to a CSP, use None for default

Flags=0 : int

Same flags used with win32crypt::CertOpenStore