How do I verify with SignTool a signature file(p7) created using the DetachedSignedData option with SignTool?

JY.CHOI 0 Reputation points
2023-09-25T02:32:59.9433333+00:00

Below is the sign file creation command of SignTool.exe that I used.

signtool sign /n "SubjectOfSigningCertificate" /p7ce DtachedSignedData /fd sha256 / p7co 1.2.840.113549.1.7.2 /p7 "Path" /debug /v "FileDirectory"

If type command like this, a file with the p7 extension will be created in “path”.

This file contains certification information for "FileDirecotry".

What command should I use to verify the file stored in “path” using SignTool?

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 44,766 Reputation points
    2023-09-26T07:17:20.31+00:00

    Hello JY.CHOI,

    For verification of the file you can use the next syntax:

    signtool verify /v /pa /debug /a "<Path><YourFile.p7>"

    You can access the official article for Microsoft SignTool, for syntax and examples here: https://learn.microsoft.com/en-us/windows/win32/seccrypto/signtool

    --If the reply is helpful, please Upvote and Accept as answer--


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.