在我们的构建服务器上使用signtool进行代码签名时,jenkins显示以下错误消息:
Done Adding Additional Store
Error information: "Error: SignerSign() failed." (-2147023673/0x800704c7)
SignTool Error: An unexpected internal error has occurred.
Run Code Online (Sandbox Code Playgroud)
我们在USB令牌上使用EV代码签名证书。所有工具都是实际可用的最新工具。
有任何想法吗?
使用相同的构建任务并在运行jenkins的同一台计算机(如下所述的用户)上手动运行它,以及在相同的环境/目录下根本不是问题。
Jenkins服务以具有管理员权限的简单用户身份(而不是本地系统)在Windows 10 pro VM上运行。
有关更多详细信息,请参阅Jenkins日志的以下摘录:
Signiere FlinkySchule.FormularEditor.exe:
Verbindung zu Token auf- bzw. abbauen
***** code signing *****
Aktueller Pfad des signtool:
c:\JW\FS\Production\Deployment\Tools\signtool\kits
Zu signierende Datei:
c:\JW\FS\Production\Application\Assemblies\FlinkySchule.FormularEditor\bin\Release\\FlinkySchule.FormularEditor.exe
The following certificate was selected:
Issued to: Dirk W.
Issued by: GlobalSign CodeSigning CA - SHA256 - G3
Expires: Fri Apr 03 15:58:51 2020
SHA1 hash: 4187Cxyxyxyxyxyxyxyxyxyxyx7978C4
Done Adding Additional Store
EXEC …Run Code Online (Sandbox Code Playgroud)