Verifies the signature in a pkcs-12 file.
Public Declare Function PFX_VerifySig Lib "diCrPKI.dll"
(ByVal strPfxFile As String, ByVal strPassword As String,
ByVal nOptions As Long) As Long
nRet = PFX_VerifySig(strPfxFile, strPassword, nOptions)
long __stdcall PFX_VerifySig(const char *szFileName, const char *szPassword, long nOptions);
If successful, the return value is zero; otherwise it returns a nonzero error code.
static Pfx.sig_is_valid(pfxfile, password)
Just checks that the MacData signature is OK using the given password. Makes no other checks. The PFX file can be in either BER-encoded binary or PEM format. You can also pass the data directly as a PEM string in the szPfxFile parameter.
[New in v3.8] If there is no MacData signature in the PFX file and the supplied szPassword is empty, it will consider that to be a "valid" signature and return zero.
See the example for PFX_MakeFile
above.
PFX_MakeFile RSA_GetPrivateKeyFromPFX