Testing Microsoft SignTool commands
This section shows you how to run two Microsoft SignTool commands (signtool sign and signtool verify).
The signtool sign command pertains more specifically to this integration, as it is the only SignTool command that initiates communication with the Vectera Plus. SignTool must be able to access the private key that is stored on the Vectera Plus in order to complete the code signing operation successfully.
In the following example an .exe file is being signed, but several other types of files can be signed using SignTool. Please reference the following url for details: https://docs.microsoft.com/enus/windows/win32/seccrypto/cryptography-tools
Open the Windows Command Prompt application and run the following command:
Replace "MyCertificate" with the Subject Name of your certificate and "example.exe" with the name of the file that you are signing
If the command is successful you should receive the following message:
To verify the file that was signed run the following command:
If the command is successful, you should see output similar to the following: