public static bool PfxVerifyPassword( byte rawData, string password )
Public Shared Function PfxVerifyPassword ( rawData As Byte(), password As String ) As Boolean
public: static bool PfxVerifyPassword( array<unsigned char>^ rawData, String^ password )
static member PfxVerifyPassword : rawData : byte * password : string -> bool
If you set this value to an empty string or NULL, this function typically attempts to decrypt the password embedded in the PFX BLOB by using the empty string or NULL.
However, beginning with Windows 8 and Windows Server 2012, if a NULL or empty password was specified when the PFX BLOB was created and the application also specified that the password should be protected to an Active Directory (AD) principal, the Cryptography API (CAPI) randomly generates a password, encrypts it to the AD principal and embeds it in the PFX BLOB. The PFXVerifyPassword function will then try to use the specified AD principal (current user, computer, or AD group member) to decrypt the password.
|ArgumentNullException||If the rawData parameter is null.|