SetSignProcessPFXFromFile
Security and Signatures
Description
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 TPDFlib.SetSignProcessPFXFromFile(SignProcessID: Integer; Const PFXFileName, PFXPassword: WideString): Integer;
ActiveX
Function PDFlib::SetSignProcessPFXFromFile(SignProcessID As Long, PFXFileName As String, PFXPassword As String) As Long
DLL
int DLSetSignProcessPFXFromFile(int InstanceID, int SignProcessID, const wchar_t* PFXFileName, const wchar_t* PFXPassword);
int DLSetSignProcessPFXFromFileA(int InstanceID, int SignProcessID, const char* PFXFileName, const char* PFXPassword);
Parameters
| SignProcessID | A value returned by the NewSignProcessFromFile, NewSignProcessFromStream or NewSignProcessFromString functions |
|---|---|
| PFXFileName | The path and name of the PFX signature file (PKCS #12 format). |
| PFXPassword | The password to open the PFX file |
Return values
| 1 | The PFX file name and password were stored as the signing identity, replacing any certificate store or key type identity |
|---|---|
| 0 | SignProcessID is not a valid sign process |