Share via

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 | C++

A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.

Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other

A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.


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

    Was this answer helpful?

    0 comments No comments

Your answer

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