Authenticode-JS icon indicating copy to clipboard operation
Authenticode-JS copied to clipboard

func is not a function

Open si458 opened this issue 3 years ago • 1 comments

TypeError: func is not a function
    at C:\Users\sas_2\Documents\Developer\ourbackups\node_modules\authenticode-js\authenticode.js:1557:32
    at IncomingMessage.<anonymous> (C:\Users\sas_2\Documents\Developer\ourbackups\node_modules\authenticode-js\authenticode.js:1590:45)
    at IncomingMessage.emit (node:events:539:35)
    at endReadableNT (node:internal/streams/readable:1345:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)

si458 avatar Aug 21 '22 16:08 si458

found the issue, indeed func for the function obj.sign is undefined i have to pass a function, which isnt explained in the readme exehandler.sign(cert, { out: 'windowsexecutable-signed.exe', time: "http://timestamp.sectigo.com" }, (error) => { if (error) { console.error(error); } else { console.log('complete'); } });

si458 avatar Aug 21 '22 16:08 si458