在我们的构建服务器 Jenkins 上使用 signtool 进行代码签名时,会显示以下错误消息:
Done Adding Additional Store
Error information: "Error: SignerSign() failed." (-2147023673/0x800704c7)
SignTool Error: An unexpected internal error has occurred.
我们在USB令牌上使用EV代码签名证书,所有工具都是实际可用的最新版本。
有什么想法吗?
在同一台机器上使用相同的构建任务并手动运行它没有问题(如下面提到的用户),该机器与jenkins运行的环境/目录相同。
Jenkins服务作为简单用户以管理员权限(而不是Local System)在Windows 10专业版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 : error information: "Error: SignerSign() failed." (2147023673/0x800704c7) [c:\JW\FS\Production\Application\Assemblies\FlinkySchule.FormularEditor\FlinkySchule.FormularEditor.csproj]
EXEC : SignTool error : An unexpected internal error has occurred. [c:\JW\FS\Production\Application\Assemblies\FlinkySchule.FormularEditor\FlinkySchule.FormularEditor.csproj]
一个问题是整个路径长度: 即使在2017年,您仍然会遇到260个字符的路径长度限制。令人烦恼!但我们解决了这个问题,错误有时仍会发生。