我试图在安装了Windows 2008 .NET R2 x64并安装了VS2010的Windows 2008 R2 x64上使用新的代码签名证书对VS2010应用程序进行身份代码签名,但是SignTool一直使用Access进行响应被拒绝
SignTool.exe sign /v /a /sha1 <thumbprint> MyApplication.exe
The following certificate was selected:
Issued to: <redacted>
Issued by: VeriSign Class 3 Code Signing 2010 CA
Expires: Thu Jun 28 01:59:59 2012
SHA1 hash: <thumbprint>
Done Adding Additional Store
SignTool Error: Access is denied.
SignTool Error: An error occurred while attempting to sign: MyApplication.exe
Number of files successfully Signed: 0
Number of warnings: 0
Number of errors: 1证书已安装到用户的个人存储区,并且用户是本地管理员组的成员。我还试着使用.pfx文件进行签名,但始终得到相同的错误。禁用UAC提示符也没有显示任何效果。
有什么想法吗?
发布于 2011-07-13 10:21:38
原因是启用了私钥保护,但除非以管理员身份运行命令提示符,否则相应的“应用程序请求访问受保护的项”。提示符没有出现。
为了解决这个问题,我不得不删除证书和密钥,然后从.pfx文件中重新导入它,这一次没有选择强私钥保护选项。
发布于 2012-11-25 08:52:05
我还让这个pb在windows 8中使用signtool.exe,要解决这个问题,您必须直接从c:\windows\system32\cmd.exe单击"Run“运行cmd.exe。
发布于 2019-08-15 10:10:06
为我解决这个问题的是意识到我的exe是只读的。删除写保护允许SignTool完成它的工作,没有进一步的问题。
(信用:eselk在SignTool error: Access is denied的评论)
https://stackoverflow.com/questions/6532468
复制相似问题