利用Visual Studio 2017可以加数字签名,步骤如下:
前提是电脑上已经装有Visual Studio 2017。
1.准备好数字签名文件 .pfx格式的
2.打开x64 Native Tools Command Prompt for VS 2017输入
signtool sign /f your.pfx /p password D:\your.exe
注意:your.pfx 你的数字签名文件, password文件密码 your.exe要加签名的文件,包含路径。
把数字签名文件放在C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise路径下,不然会报找不到SignTool Error: No certificates were found that met all the given criteria.该错误。
3.按下Enter键
4.加时间戳
输入:
signtool timestamp /t http://timestamp.verisign.com/scripts/timstamp.dll D:\your.exe
按Enter键结束 。
这样就完成了给自己的软件加签名了。