Code signing
Microsoft SignTool

Test Microsoft SignTool commands

4min

This section runs the following Microsoft SignTool commands: signtool sign and signtool verify.

The signtool sign command pertains more specifically to this integration because it is the only SignTool command that initiates communication with the . SignTool must be able to access the private key stored in to complete the code signing operation successfully.

Sign a file using the configured code Signing certificate

The following example signs an .exe file, but you can sign other types of files by using SignTool. See the following document for details: https://docs.microsoft.com/en-us/windows/win32/seccrypto/cryptography-tools

Open PowerShell or Windows Command Prompt and run the following command, replacing MyCertificate with the Subject Name of your certificate and example.exe with the name of the file that you are signing:

Text


If the command succeeds, you should receive the following message:

Text


Verify the file that was signed

To verify the file that was signed, run the following command:

Text


If the command succeeds, you should see output similar to the following example:

Text