给文件添加数字签名

使用SignTool
官方文档:https://learn.microsoft.com/zh-cn/windows/win32/seccrypto/signtool?redirectedfrom=MSDN

签名盖时间戳服务器:http://timestamp.sectigo.com/

1.安装工具,进入64位程序根目录打开cmd
2.给程序签名
输入命令

signtool sign /f "证书路径" /p "证书密码" /fd SHA256 "exe文件路径"  
signtool sign /f E:\Desktop\test.pfx /p 123456 /fd SHA256 E:\Desktop\Tool.exe  

3.给已签名的盖时间戳
输入命令

signtool timestamp /t "上面的签名盖时间戳服务器地址" "exe文件路径"  
signtool timestamp /t http://timestamp.sectigo.com/ E:\Desktop\Tool.exe 

相关推荐:https://www.likecs.com/show-187693.html?sc=302

posted on 2022-09-19 14:26  糯米白白  阅读(201)  评论(0编辑  收藏  举报

导航