3

I'm trying to sign an external dll with a pfx file using SignTool with the below code in cmd.exe

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.

I tried all the commands listed here on Using SignTool to Sign a File but keep getting the same error with every single command.

I'm running cmd.exe as Admin and also I have full ownership of the SignTool.exe folder. In my case, its C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin

What am I missing here? Any help will be really appreciated.

Community
  • 1
  • 1
Butters
  • 947
  • 5
  • 16
  • 25

2 Answers2

4

I also tried all the other answers. In my case the file (EXE) I was trying to sign was marked as read-only.

eselk
  • 6,764
  • 7
  • 60
  • 93
0

Perhaps looking here SignTool error: Access is denied

The strong private key option was the reason the SignTool failed for that user. Not sure if you have it enabled or not?

Community
  • 1
  • 1
evdbogaard
  • 11
  • 1