CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
不看会后悔的Windows XP之经验谈 简单快捷DIY实用家庭影院
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  VC/MFC >  ATL/ActiveX/COM

为ocx颁发证书

楼主a1981panwei(大卫100%)2004-08-03 15:52:49 在 VC/MFC / ATL/ActiveX/COM 提问

请问为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

相关问题

  • 请教:我在很久以前看到过利用2000的根证书服务为自己颁发数字证书,并给自己的OCX认证
  • 有谁知道证书的颁发怎样玩???
  • 我这样理解SSL证书颁发机制,是否有错?
  • 关于ocx的数字证书问题??????
  • 有关win2000中的"证书颁发机构"组件的一个问题
  • 关于OCX签名,认证以及购买安全证书的问题!
  • 关于OCX签名,认证以及购买安全证书的问题!
  • 关于在网上发布自己制作的OCX需要数字证书的问题?
  • OCX
  • 学位证书

关键词

  • visual c++
  • win32
  • 证书
  • 文件
  • dll
  • telstar
  • 颁发
  • digitaltitan
  • ocx
  • cer

得分解答快速导航

  • 帖主:a1981panwei

相关链接

  • Visual C++类图书
  • Visual C++类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2008, CSDN.NET, All Rights Reserved
GongshangLogo