Digitally sign binary file

Swanand 101 Reputation points
2022-12-14T05:12:33.043+00:00

I have use case, where i am evaluating if sign tool can sign binary files ( not windows executable) some encrypted files using digital certificate and then check loading if certificate is valid or not.
But it seems that signtool only allows signing of DLL & EXE for others it throws following error
SignTool Error: This file format cannot be signed because it is not recognized.
I would like to know if there is anyway or some API where we can fulfil our use case?

Windows for business Windows Client for IT Pros Devices and deployment Configure application groups
Developer technologies C++
Developer technologies Visual Studio Other
{count} votes

1 answer

Sort by: Most helpful
  1. Guido Franzke 2,191 Reputation points
    2022-12-15T09:31:36.42+00:00

    Hello,
    what file type is your binary file? SignTool only allows signing to some file types. Have a look here: files-supported-for-signing.html
    Regards, Guido

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.