signtool sign and signtool verify. Only signtool sign uses the Excrypt HSM: SignTool asks the Futurex CNG provider to sign the file’s digest with the private key on the HSM. signtool verify checks the signature in software.
Sign a file by using the certificate
The following example signs an
.exe file. SignTool can sign other file types too. For details, see Using SignTool to sign a file.1
Open Command Prompt or PowerShell as an administrator and run the following command. Replace
Code Signing with the subject name of your certificate and example.exe with the file that you want to sign:PowerShell
/sm selects the local computer’s certificate store, where you imported the certificate.If the command succeeds, the output ends with the following lines:
Output
Verify the file
1
To verify the signed file, run the following command:
PowerShell
If the command succeeds, you see output similar to the following example:
Output

