如何解决“SignTool错误:IStore2 ::加载返回的错误:0x80090345”

我有一个Jenkins作业在远程节点上运行signtool实用程序,控制台日志看起来像这样:

Started by user anonymous Building remotely on vm-builder [VE] $ cmd /c call "C:\Documents and Settings\builder\hudson6959487656440210459.bat" USERNAME=builder d:\work\workspace\VE>d:\work\workspace\VE\CodeSign\signtool.exe sign /fd:\work\workspace\VE\CodeSign\Shunra.pfx /p "shunrail" /t http://timestamp.verisign.com/scripts/timstamp.dll /du "www.shunra.com" /vd:\work\workspace\VE\ShunraInstallationServices\lib\net\Release\ShunraInstallationServices.dll Number of files successfully Signed: 0 Number of warnings: 0 Number of errors: 1 SignTool Error: IStore2::Load returned error: 0x80090345 The requested operation requires delegation to be enabled on the machine. SignTool Error: An error occurred while attempting to load the signing certificate from: d:\work\workspace\VE\CodeSign\Shunra.pfx d:\work\workspace\VE>exit 1 Build step 'Execute Windows batch command' marked build as failure Finished: FAILURE 

请注意输出中的USERNAME=builder行。 这是交互式login到远程机器时所使用的帐户,远程机器是在Windows 7机器上运行的XP虚拟机。 当然,该帐户是本地pipe理员。

现在,从控制台窗口(从一个RDP会话)运行相同的signtool命令工作得很好,但当jenkins试图执行它,我得到这个委托错误信息。

另一条信息。 相关的stream程树是:

 bash.exe -c "cd d:\work && java -jar slave.jar" # Jenkins remote execution through sshd on cygwin bash.exe java cmd # Jenkins sent a request to the java agent to execute this Windows batch file signtool # This is the signtool invocation 

那个signtool突然抱怨这个代表团的东西呢?

谢谢。