(vs2008 以上,自带以下所需工具)
-
制作证书:(使用以下 MakeCert 命令创建 Contoso.com (测试) 证书)
makecert -r -pe -ss PrivateCertStore -n CN=Contoso.com(Test) ContosoTest.cer -
打开测试:(管理员权限,需要重启)
bcdedit /set testsigning on -
信任:(管理员权限)
CertMgr.exe /add ContosoTest.cer /s /r localMachine root -
签名:
Signtool sign /v /s PrivateCertStore /n Contoso.com(Test) /t http://timestamp.digicert.com tstamd64.cat -
验证:
signtool verify /v /kp ascore-new.exe
说明:
服务 和 驱动,需要有 Cross Certificate Chain
网友评论