日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > windows >内容正文

windows

windows应用程序签名

發布時間:2023/12/9 windows 30 豆豆
生活随笔 收集整理的這篇文章主要介紹了 windows应用程序签名 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

遇到問題

?

解決方法

購買正式證書,如Global Sign,他們會提供簽名工具

自簽名證書,可使用微軟的簽名工具
https://docs.microsoft.com/zh-cn/dotnet/framework/tools/signtool-exe

步驟

1、安裝vs2019,并打開developer powershell for vs 2019
2、執行如下命令
D:\signtoodemo>Makecert -sv test.pvk -r -n "CN=TCT" test.cer
Succeeded

D:\signtoodemo>Cert2spc test.cer test.spc
Succeeded

D:\signtoodemo>pvk2pfx -pvk test.pvk? -spc test.spc -pfx test.pfx -f

D:\signtoodemo>signtool sign /fd SHA256 /f test.pfx demo.exe
Done Adding Additional Store
Successfully signed: demo.exe

D:\signtoodemo> signtool sign /f test.pfx /t http://timestamp.digicert.com /fd SHA256 demo.exe
Done Adding Additional Store
Successfully signed: demo.exe

D:\signtoodemo>signtool verify /pa /v demo.exe ?
SignTool Error: A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider
上述錯誤,需要雙擊test.cer文件,在彈出的證書對話框中選擇“安裝證書”,選擇將證書存儲在“受信任的根證書頒發機構”存儲區

?

?

總結

以上是生活随笔為你收集整理的windows应用程序签名的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。