天天看點

CAB檔案打包以及制作證書簽名

一、CAB檔案打包

請參考http://jingyan.baidu.com/album/c74d60007cc74e0f6a595d3c.html?picindex=1

二、證書及簽名制作

1、在cmd中定位到makecert.exe目錄,然後輸入如下指令:

makecert /sv "RemtCard.pvk" /n "CN=公司名稱,E=www.zhaishenghuo.net,O=公司名稱" -r RmtCard.cer

彈出如下界面:

CAB檔案打包以及制作證書簽名
CAB檔案打包以及制作證書簽名

輸入密碼後确定,

CAB檔案打包以及制作證書簽名
CAB檔案打包以及制作證書簽名

再輸入剛才設定的密碼,點确定後會生成兩個檔案

CAB檔案打包以及制作證書簽名

2、繼續輸入指令:signtool.exe signwizard運作簽名程式:

CAB檔案打包以及制作證書簽名
CAB檔案打包以及制作證書簽名

點下一步:

CAB檔案打包以及制作證書簽名
CAB檔案打包以及制作證書簽名

點選浏覽,選擇CAB檔案,點下一步:

CAB檔案打包以及制作證書簽名
CAB檔案打包以及制作證書簽名

選擇自定義,點下一步。

CAB檔案打包以及制作證書簽名

選擇"從檔案選擇“,選擇cer檔案,點下一步:

CAB檔案打包以及制作證書簽名
CAB檔案打包以及制作證書簽名

點選浏覽,選擇pvk檔案,如果密鑰容器中為**.pvk,則将”CSP中的私鑰“打勾,将密鑰容易選擇到RemtCard

下一步,

CAB檔案打包以及制作證書簽名

輸入之前設定的私鑰密碼:

CAB檔案打包以及制作證書簽名
CAB檔案打包以及制作證書簽名

預設選擇sha1,下一步

CAB檔案打包以及制作證書簽名
CAB檔案打包以及制作證書簽名

繼續下一步,

CAB檔案打包以及制作證書簽名
CAB檔案打包以及制作證書簽名

描述可以輸入公司名稱,web位置可以輸入網址,也可跳過不輸,直接下一步,

CAB檔案打包以及制作證書簽名
CAB檔案打包以及制作證書簽名

預設不打勾,直接下一步,輸入之前設定的私鑰密碼,點确定即完成。

 

繼續閱讀