Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 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.

like image 293
Butters Avatar asked Jul 03 '26 10:07

Butters


1 Answers

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

like image 153
eselk Avatar answered Jul 06 '26 02:07

eselk



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!