PyCERTSTORE = PFXImportCertStore(PFX, Password
, Flags
)
Creates a certificate store from PKCS#12 data (*.PFX files)
Parameters
PFX : bytes
Buffer containing PKCS#12-formatted certificate(s)Password : str
Password used to encrypt the data, may be NoneFlags : int
Allowed flags are
CRYPT_EXPORTABLE,CRYPT_USER_PROTECTED,CRYPT_MACHINE_KEYSET, and CRYPT_USER_KEYSETComments
MSDN docs specify that *one* of the Flags can be used, but in practice a combination is allowed
Depending on the encrypting application, a blank password ("") may be treated differently that a NULL
password (None), so if you have a PFX with no password try both.
Win32 API References
Search for PFXImportCertStore at msdn, google or google groups.