SetSignProcessCNGKeyFromFileA

Security and signatures

Description

ANSI variant of SetSignProcessCNGKeyFromFile

Accepts string parameters as ANSI text and otherwise behaves identically to the wide-string entry point

Syntax

DLL

int DLSetSignProcessCNGKeyFromFileA(int InstanceID, int SignProcessID, const char* CertificateFile, const char* ProviderName, const char* KeyName, int UseMachineKey, int AllowUI);

Return values

1The certificate was read and the configuration was attached
0The file, process id, or key name was invalid

Remarks

The DLL also exports DLSetSignProcessCNGKeyFromFileA for ANSI paths and names

The certificate bytes are retained by the sign process, while the private key remains inside its provider

See also

SetSignProcessCNGKey, SetSignProcessPFXFromFile