简体   繁体   English

SignTool错误:访问被拒绝

[英]SignTool Error: Access is denied

I'm trying to sign an external dll with a pfx file using SignTool with the below code in cmd.exe 我正在尝试使用带有以下代码的SignTool在cmd.exe中使用pfx文件签署外部dll

SignTool sign /f MyCert.pfx /p MyPassword MyControl.dll SignTool sign / f MyCert.pfx / p MyPassword MyControl.dll

But, I keep getting the following error message. 但是,我一直收到以下错误消息。

Done Adding Additional Store
SignTool Error: Access is denied.
SignTool Error: An error occured while attempting to sign: MyControl.dll

Number of errors: 1

I looked everywhere but couldn't find a correct solution. 我到处看,但找不到正确的解决方案。 I tried both the answers listed here, SignTool error: Access is denied , but keep getting the same error. 我尝试了这里列出的答案, SignTool错误:拒绝访问 ,但不断收到相同的错误。

I tried all the commands listed here on Using SignTool to Sign a File but keep getting the same error with every single command. 我尝试了使用SignTool对文件进行签名时列出的所有命令,但每个命令都会出现相同的错误。

I'm running cmd.exe as Admin and also I have full ownership of the SignTool.exe folder. 我正在运行cmd.exe作为管理员,我也拥有SignTool.exe文件夹的完全所有权。 In my case, its C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v7.0A\\bin 在我的例子中,它的C:\\ Program Files(x86)\\ Microsoft SDKs \\ Windows \\ v7.0A \\ bin

What am I missing here? 我在这里错过了什么? Any help will be really appreciated. 任何帮助将非常感激。

I also tried all the other answers. 我也尝试了所有其他答案。 In my case the file (EXE) I was trying to sign was marked as read-only. 在我的情况下,我试图签名的文件(EXE)被标记为只读。

Perhaps looking here SignTool error: Access is denied 也许看这里SignTool错误:访问被拒绝

The strong private key option was the reason the SignTool failed for that user. 强私钥选项是SignTool对该用户失败的原因。 Not sure if you have it enabled or not? 不确定你是否启用了它?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM