casaout
casaout

Reputation: 1849

SignTool under Jenkins cannot find matching certificate with USB Token

I want to build and code-sign a WPF application and deploy it using ClickOnce using Jenkins.

My setup is:

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

Answers (1)

Yusuf K.
Yusuf K.

Reputation: 4260

If you are running jenkins as a windows service you need to change properties of Jenkins from services. Jenkins Service

Right-click and select properties. On the "Log On" tab, select "this account" and enter your credentials.

Log On Screen

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

Related Questions