vcsjones / AzureSignTool

SignTool Library and Azure Key Vault Support
MIT License
267 stars 85 forks source link

Signing failed with error 800B0003 #252

Open fairmonk opened 3 months ago

fairmonk commented 3 months ago

I have a .bat file which fails to sign with the 800B0003 error. Also this message is displayed: "The file cannot be signed because it is not a recognized file type for signing or it is corrupt." the content of the bat file is: image

What can be done to resolve this error ? all the rest *.ps1 files that I have - are signed without problem.

j-laemmermann commented 2 months ago

It's not possible to sign a .bat file at all, because .bat files don't support signatures. This "error" is not limited to AzureSignTool, but it's a known limitation of .bat files.