SignTool Error: This file format cannot be verified because it is not recognized when trying to sign macro files - Is signtool.exe not supporting macro files anymore?

Lena 5 Reputation points
2024-08-07T09:12:18.86+00:00

Hi. I would like to sign my VBA macros with a digital certificate. However, using Microsoft SignTool gives me the same error (SignTool Error: This file format cannot be verified because it is not recognized) when trying to sign or verify a signature for a macro containing file.

I know that two versions of the signtool.exe exist: a 32 bit and a 64 bit version and that only the 32bit version can work with macro containing files. If I try to use signtool.exe (32bit) to verify the signature of an executable file it is working even through I should not be able to do this with this version.

The path to signtool.exe is C:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x86

Using signtool.exe from a previous version of Windows Kits is working.

I this a general problem with the latest version of Windows Kits or is signtool.exe not supporting the signing of macros anymore?

Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,966 questions
{count} vote

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.