win32crypt.PFXVerifyPassword

boolean = PFXVerifyPassword(PFX, Password , Flags )

Checks if a PFX blob can be decrypted with given password

Parameters

PFX : bytes

Buffer containing PKCS#12-formatted certificate(s)

Password : str

Password used to encrypt the data, may be None

Flags : int

Allowed flags are CRYPT_EXPORTABLE,CRYPT_USER_PROTECTED,CRYPT_MACHINE_KEYSET, and CRYPT_USER_KEYSET

Win32 API References

Search for PFXVerifyPassword at msdn, google or google groups.