ATL Activex 插件打包成cab并簽名



1.  生成證書

makecert -r -pe -n "CN=xxxxxo" -$ commercial -a sha1 -b 01/31/2014 -e 12/31/2015 -sky exchange -ss my -sr currentuser

2. 打包成.cab

signtool sign /f  "C:\Users\admin\Documents\ShanghaiLinguoCert20140228.pfx" /p "123456" /d "TestATL" "C:\Users\admin\Documents\Visual Studio 2008\Projects\TestATL\TestATL\Release\TestATL2.CAB"


3. 簽名

signtool sign /f  "C:\Users\admin\Documents\Cert20140228.pfx" /p "123456" /d "TestATL" "C:\Users\admin\Documents\Visual Studio 2008\Projects\TestATL\TestATL\Release\TestATL.CAB"

注意:文件名中文不認

4.  簽名成功后網頁中使用方法:

<object id="TestATLObj" align="CENTER" WIDTH=0 HEIGHT=0 codeBase="TestATL2.cab#version=1,0,0,1" classid="clsid:13E0A674-B76C-4CF4-9D21-4FB8AE2435DB" >

    </object>

 codeBase 指定cab控件的地址, classid 是待安裝控件的ID,控件開發時候在配置中可找到


參考:

http://mimmy.iteye.com/blog/512474

http://blog.csdn.net/popozhu/article/details/5793923

http://www.cnblogs.com/gengaixue/archive/2010/08/13/1799112.html

iexpress.exe

signtool.exe

http://msdn.microsoft.com/zh-cn/library/8s9b9yaz(v=vs.110).aspx#sign

makecert.exe

http://msdn.microsoft.com/zh-cn/library/bfsktky3(v=vs.110).aspx



猜你喜欢

转载自blog.csdn.net/xiangrufeifei3/article/details/20127283