为ocx颁发证书
请问为ocx颁发证书是什么概念,怎么样为ocx颁发证书,具体步骤是什么?谢谢了!
:)
问题点数:0、回复次数:7Top
1 楼ChinaAngely(蓝天)回复于 2004-08-03 15:57:32 得分 0
关注!!!Top
2 楼a1981panwei(大卫100%)回复于 2004-08-03 16:08:00 得分 0
有没有高手知道啊?
帮帮忙啊!Top
3 楼a1981panwei(大卫100%)回复于 2004-08-03 18:30:35 得分 0
没有人知道吗????????????????????????????????Top
4 楼gjd111686(数字金刚)回复于 2004-08-04 09:20:01 得分 0
打包工具包:
申请证书:Win2000:控制面板-管理工具-证书颁发机构[没有则更新组件]Http://127.0.0.1/CertSrv/
签名工具包:http://download.microsoft.com/download/b/e/f/bef2551b-401d-4311-ab8f-13d3892b8154/codesigningx86.exe
时间戳服务:verisign的时间服务器,这个是免费的.
http://timestamp.verisign.com/scripts/timstamp.dllTop
5 楼gjd111686(数字金刚)回复于 2004-08-04 09:20:28 得分 0
ActiveX发布步骤
创建PVK文件[私人密匙文件]
makecert -sk DigitalTitan DigitalTitan.pvk
makecert -n CN=TelStar TelStar
创建CER文件[公司证书]
makecert -sk DigitalTitan.pvk TelStar.cer
创建SPC测试软件出版商证明书
cert2spc root.cer TelStar.cer TelStar.spc
创建INF文件
[version]
signature="$CHINA$"
AdvancedINF=2.0
[Add.Code]
WebOffice.ocx=WebOffice.ocx
mfc70.dll=mfc70.dll
msvcrt.dll=msvcrt.dll
olepro32.dll=olepro32.dll
[mfc70.dll]
file-win32-x86=thiscab
FileVersion=7,0,9466,0
DestDir=11
RegisterServer=yes
[msvcrt.dll]
file-win32-x86=thiscab
FileVersion=6,1,9844,0
DestDir=11
RegisterServer=yes
[olepro32.dll]
file-win32-x86=thiscab
FileVersion=5,0,4522,0
DestDir=11
RegisterServer=yes
[WebOffice.ocx]
file-win32-x86=thiscab
clsid={05430EC0-69CA-437A-B1F9-4B78B8647BEA}
FileVersion=1,0,0,1
RegisterServer=yes
;
创建CAB文件
cabarc -s 6144 n WebOffice.cab msvcrt.dll msvcp70.dll msvcr70.dll mfc70.dll olepro32.dll ASYCFILT.DLL STDOLE2.TLB WebOffice.ocx WebOffice.inf
使用Code Signing Wizard签署一个CAB文件
SIGNCODE.exe
时间戳服务:verisign的时间服务器,这个是免费的.
http://timestamp.verisign.com/scripts/timstamp.dll
另:
makeCert -sk DigitalTitanKey -n "CN=TelStar" -ss TelStar TelStar.cer
makecert -is TelStar -ic TelStar.cer -ss TelStarCompany.cer
Cert2SPC MyCert.cer MyCert.spcTop
6 楼gjd111686(数字金刚)回复于 2004-08-04 09:20:40 得分 0
http://blog.csdn.net/gjd111686/category/30867.aspxTop
7 楼skyonline(山中过客)回复于 2004-08-04 11:55:44 得分 0
Creating Signed CAB Files for MFC and ATL Controls
If you plan to distribute MFC and ATL controls via the Internet, you should package them as signed Cabinet (CAB) files. Signed files assure a user downloading your control that the code is safe. A CAB file contains a compressed version of your control plus information about how your control is to be installed, for example, what DLLs need to be installed along with the OCX.
The tools you need to create and sign CAB files are provided on the Visual C++ CD in the CAB&SIGN directory. The utilities in the CAB&SIGN directory are not installed automatically when you install Visual C++, so you must copy the contents of the CAB&SIGN directory to your hard drive.
Before you can sign files, you need to get a Software Publisher Certificate. You must apply for your own certificate to a Certification Authority. With the tools in the CAB&SIGN directory you can create a test certificate for testing purposes, but this certificate cannot be used to sign code for distribution. See step 1 for information about applying for a Software Publisher Certificate.
These are the steps to create a signed CAB file:
Get a Software Publisher Certificate (you only need to do this once)
Create the CAB file
Sign your files
Embed the signed CAB file in a Web page (optional)
Top




