Using signtool.exe through Jenkins

1

I am using an EV Code Token USB for this process.

I've got this .bat which signs an .exe with the help of signtool.exe

The bat works fine when i call it locally from cmd. It first calls an Autohotkey script (that is looking for the Windows Security window that is triggered by the signtool.exe (where you have to enter the PIN in order to successfully sign the .exe), starts the signtool process, the pin is entered automatically and all's good.

I'm trying to call the same .bat with the help of Jenkins, but no matter what I do, I keep getting this error

Error information: "Error: SignerSign() failed." (-2147023892/0x800703ec)

SignTool Error: An unexpected internal error has occurred.

The error means invalid flags but I literally do not know what that means. The signing command line looks like this:

signtool.exe sign /tr http://timestamp.globalsign.com/?signature=sha2 /td SHA256 /sha1 [thumbprint] .exe

It doesn't change a thing if I run just the above command in Jenkins' "execute windows batch command" build step.

How could I get past this?

jenkins
automation
digital-signature
signtool
asked on Stack Overflow Jul 29, 2020 by SBlackheart

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0