SetSignProcessPFXFromFileA

Security and Signatures

Description

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to SetSignProcessPFXFromFile and string arguments are interpreted using the current SetAnsiMode code page

Sets a file to use as the digital identity for a digital signature process.

The file should be in PKCS #12 format, also known as a PFX file, and contain a private key as well as an X.509 certificate. PFX files are usually protected with a password.

Syntax

Delphi

Function DLSetSignProcessPFXFromFileA(InstanceID, SignProcessID: Integer; PFXFileName, PFXPassword: PAnsiChar): Integer;

DLL

int DLSetSignProcessPFXFromFileA(int InstanceID, int SignProcessID, const char* PFXFileName, const char* PFXPassword);

Parameters

SignProcessIDA value returned by the NewSignProcessFromFile, NewSignProcessFromStream or NewSignProcessFromString functions.
PFXFileNameThe path and name of the PFX signature file (PKCS #12 format).
PFXPasswordThe password to open the PFX file.