Reputation: 1849
I want to build and code-sign a WPF application and deploy it using ClickOnce using Jenkins.
My setup is:
signtool.exe sign /a /v "<path>\Shared.dll"
in the admin console works wellSignTool error : No certificates were found that met all the given criteria.
Found a few related issues here and here, but no solutions yet.
How can I make sure the Jenkins service finds the USB token when running the signtool command?
Upvotes: 2
Views: 2010
Reputation: 4260
If you are running jenkins as a windows service you need to change properties of Jenkins from services.
Right-click and select properties. On the "Log On" tab, select "this account" and enter your credentials.
Do not forget to check "enable single sign on" from the SafeNet Authentication Client as described here
To sign with USB token;
"signtool.exe" sign /a /tr http://timestamp.globalsign.com/?signature=sha2 /td SHA256 "your_file"
It worked for me. I hope it helps you, too.
Upvotes: 2