Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows 使用调试输出选项签名工具_Windows_Digital Signature_Signtool - Fatal编程技术网

Windows 使用调试输出选项签名工具

Windows 使用调试输出选项签名工具,windows,digital-signature,signtool,Windows,Digital Signature,Signtool,我正在使用SignTool和数字证书对dll进行签名 dll的签名是我构建过程的一个步骤。我使用msbuild构建我的应用程序,因此它是目标之一,并使用Exec命令对DLL进行签名,如下所示- <Exec Command = "signtool sign /a /v /sha1 $(SHA1) $(binPath)\app.exe" /> where $(SHA) is the hash of the certificate $(binPath) is the path of th

我正在使用
SignTool
和数字证书对dll进行签名

dll的签名是我构建过程的一个步骤。我使用msbuild构建我的应用程序,因此它是
目标
之一,并使用
Exec命令
对DLL进行签名,如下所示-

<Exec Command = "signtool sign /a /v /sha1 $(SHA1) $(binPath)\app.exe" />
where $(SHA) is the hash of the certificate 
$(binPath) is the path of the binaries
得到这个输出后,我不知道该如何继续

不过还有一个观察,

SignTool
通过命令提示符运行dll时,成功对其进行签名

这件事让我发疯了


请求协助

我发现了问题,快速生成服务器是使用不同的帐户启动的,而不是我用来登录它的帐户

因此,数字证书与我用来登录到构建计算机的帐户一起安装

现在,由于QuickBuild使用不同的帐户进行构建,因此无法找到数字证书


然后,我使用QuickBuild使用的帐户登录到生成计算机,并安装了数字证书,一切都开始工作。

我发现问题,QuickBuild服务器是使用与我登录时使用的帐户不同的帐户启动的

因此,数字证书与我用来登录到构建计算机的帐户一起安装

现在,由于QuickBuild使用不同的帐户进行构建,因此无法找到数字证书


然后,我使用QuickBuild使用的帐户登录到构建计算机,并安装了数字证书,一切都开始工作。

您要传递哪个SHA1哈希值?您确实知道该列表中的第一个证书昨天过期了。@selbie:我使用的是我们获得的新证书的SHA1 has值,是的,我确实知道它确实过期了,这是有效的。您要传递哪个SHA1哈希值?您确实意识到该列表中的第一个证书昨天过期了。@selbie:我正在使用的SHA1具有我们获得的新证书的值,是的,我确实意识到它确实过期了,这是有效的。
21:00:06,920 INFO  - The following certificates were considered:
21:00:06,923 INFO  - Issued to: <Issued to company name>
21:00:06,923 INFO  -
21:00:06,923 INFO  - Issued by: <Issued by company name>
21:00:06,923 INFO  -
21:00:06,924 INFO  - Expires: Mon Nov 28 05:29:59 2016
21:00:06,924 INFO  -
21:00:06,924 INFO  - SHA1 hash: D5xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxDA
21:00:06,924 INFO  -
21:00:06,924 INFO  -
21:00:06,924 INFO  - Issued to: <Issued to company name>
21:00:06,924 INFO  -
21:00:06,924 INFO  - Issued by: <Issued by company name>
21:00:06,924 INFO  -
21:00:06,924 INFO  - Expires: Sun Dec 10 05:29:59 2023
21:00:06,924 INFO  -
21:00:06,924 INFO  - SHA1 hash: D0xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxBC
21:00:06,924 INFO  -
21:00:06,924 INFO  -
21:00:06,925 INFO  - Issued to: <Issued to company name>
21:00:06,925 INFO  -
21:00:06,925 INFO  - Issued by: <Issued by company name>
21:00:06,925 INFO  -
21:00:06,925 INFO  - Expires: Thu Jul 17 05:29:59 2036
21:00:06,925 INFO  -
21:00:06,925 INFO  - SHA1 hash: 91xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx81
21:00:06,925 INFO  -
21:00:06,925 INFO  -
21:00:06,925 INFO  - After EKU filter, 3 certs were left.
21:00:06,925 INFO  - After expiry filter, 2 certs were left.
21:00:06,925 INFO  - After Hash filter, 0 certs were left.
21:00:06,925 INFO  - After Private Key filter, 0 certs were left.
21:00:06,925 INFO  - SignTool Error: No certificates were found that met all the given criteria.