对应用(.exe、.dll等)进行签名防杀
对应用(.exe、.dll等)进行签名防杀
原文:https://stackoverflow.com/questions/84847/how-do-i-create-a-self-signed-certificate-for-code-signing-on-windows
创建自签名证书颁发机构 (CA)
打开Visual Studio终端
makecert -r -pe -n "CN=My CA" -ss CA -sr CurrentUser -a sha256 -cy authority -sky signature -sv MyCA.pvk MyCA.cer信任/导入 CA 证书
certutil -user -addstore Root MyCA.cer创建代码签名证书(SPC)
makecert -pe -n "CN=My SPC" -a sha256 -cy end -sky signature -ic MyCA.cer -iv MyCA.pvk -sv MySPC.pvk MySPC.cer将证书和密钥转换为 PFX 文件
pvk2pfx -pvk MySPC.pvk -spc MySPC.cer -pfx MySPC.pfx使用证书对代码进行签名
signtool sign /v /f MySPC.pfx /fd SHA256 /t http://timestamp.comodoca.com/authenticode "要签名的程序路径.dll"可自行选择时间戳服务,这里有一些免费的
CMD
http://timestamp.verisign.com/scripts/timstamp.dll
http://timestamp.globalsign.com/scripts/timstamp.dll
http://timestamp.comodoca.com/authenticode
http://timestamp.digicert.com