https://www.ascertia.com/helpdesk/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=14

How to sign .EXE, .DLL and .CAB files?

Solution

Product Versions

Certificate Centre

Operating System

Microsoft Windows

Creation Date

2009-03-16

Revised Date

-

Description

To sign a DLL, CAB or EXE file, use the SIGNTOOL.EXE utility included in the platform SDK for Microsoft Windows 2000/XP/2003 (if required download from here).

SignTool requires the CAPICOM 2.0 redistributable is installed on the local computer. The CAPICOM 2.0 redistributable is available here. You will also need a digital code signing certificate from Ascertia.  If you are required web browser rooted / OS trusted certificates then we are recommending first try with our free trial or Low Cost digital certificate and only purchase from commercial certification authorities (like VeriSign, Thawte, Globalsign, etc..) once successfully tested.

Signtool.exe is located in Bin directory of Platform SDK e.g. C:\Program Files\Microsoft Platform SDK\Bin.Visit Certificate Centre on http://www.ascertia.com/onlineca/ and Get your Trial or Low Cost code signing certificate. Download your certificate with private key and import in Windows user (internet explorer) key store; It will also import the Ascertia Public CA 1 (the issuer of your digital certificate) and Ascertia Root CA 2.

Note: You can download Ascertia Root CA 2 and Intermediate CA Certificate and import these certificates in Internet Explorer (user key store). These certificates are required for trust building on AscertiaCA hierarchy.

To download Ascertia Root CA 2 and Intermediate CA certificate use the links as below:

Ascertia Root CA 2 from: http://www.ascertia.com/onlineCA/CA/AscertiaRootCA2.crt

Ascertia Public CA 1 from: http://www.ascertia.com/onlineCA/CA/AscertiaPublicCA1.crt

Sign your File:

The following steps walk through the signing process:

  • Go to: Start > Run.
  • Type cmd and click Ok button.
  • At the prompt change the directory to: C:\Program Files\Microsoft Platform SDK\Bin
  • Type: signtool signwizard
  • Digital Signature Wizard screen will appear, click on Next button.
  • Browse to find the code to be digitally signed, and click on Next button.
  • Select Custom option and click on Next button.
  • Click on Select from store button and locate your code signing certificate.
  • Select the code signing certificate and click on Next button.

  • Select Private Key in a CSP and click on Next button.
  • Select sha1 and click on Next button.
  • Choose “All certificates in certification path including the Root certificate” and click on Next button.
  • If you would like you can now enter a description of your file and a web site address where more information can be located and click on Next button.
  • Un select “Add a timestamp to the data”. if you want to timestamp your code you can use following address to Timestamp your code ”http://services.globaltrustfinder.com/adss/tsa” and click on Next button.

Note: Please note it that, currently this TSA is not supporting timestamps to code signing certificates; TSA for code signing will be activated soon. You can use TSA server of your choice.

  • Verify all the information is correct and then click Finish.
  • You have successfully signed your file. Click OK to finish.

Test Your Signature

The Platform SDK SIGNTOOL.EXE utility contains a command to check a digital signature before distributing your file.

  • Click on: Start > Run
  • Type cmd and click OK.
  • At the prompt change the directory to: C:\Program Files\Microsoft Platform SDK\Bin
  • Type: signtool verify /pa /v <filename>. E.g. C:\>signtool verify /pa /v "C:\my project\my.exe". Press Enter.

转载于:https://www.cnblogs.com/bettermanlu/archive/2010/07/11/1775161.html

[zz]How to sign .EXE, .DLL and .CAB files?相关推荐

  1. 使用MakeCAB.exe命令创建CAB文件

    MakeCAB.exe 是 Windows 2000 或更高版本中随附的工具.要使用 MakeCAB.exe 来创建 .cab 文件,请执行以下步骤: 为 makecab.exe 创建一个定向文件,然 ...

  2. C# SDK exe dll 防止反编译

    / C# SDK (Software Development Kit) exe dll 防止反编译 加密工具 dotNET Reactor 是一款强大的 .NET 代码保护和授权管理系统,安全可靠.简 ...

  3. exe/dll 文件依赖查询工具

    介绍 windows下开发exe后,本机运行正常,一旦准备部署到其他机器上,就会出现一堆问题.其中主要问题就是不知道自己缺了哪些库.一般的做法是使用depend.exe工具查看PE文件的依赖库,并进行 ...

  4. sdcs V2.3 exe/dll 正+反弹后门(转)

    文章作者:dream2fly 信息来源:邪恶八进制信息安全团队( www.eviloctal.com) //  SmartDoor.cpp : 定义 DLL 应用程序的入口点. // http://w ...

  5. 如何获取exe,dll中的图标以及源程序

    今天网上有人问到这个,随便给解释了下,具体请看: http://community.csdn.net/Expert/topic/3417/3417578.xml?temp=.30534 我出的源程序: ...

  6. Qt 提取文件(exe, dll等)中的图标icon

    1 QString filename = QFileDialog::getOpenFileName(this, tr("选择要添加的程序"), 2 qApp->applica ...

  7. EXE.DLL文件图标导出器[免费下载]

    软件下载:http://www.gmhose.com/icon_export.rar 代码下载: http://www.gmhose.com/icon_exportcodes.rar

  8. How to call DLL and LIB files (SDK)

    应用程序如何找到DLL文件? 使用LoadLibrary显式链接,那么在函数的参数中可以指定DLL文件的完整路径:如果不指定路径,或者进行隐式链接,Windows将遵循下面的搜索顺序来定位DLL: ( ...

  9. python打包exe之pyinstaller

    一.pyinstaller 1.1 pyinstaller介绍 pyinstaller可以将python文件打包成独立的可执行文件exe,当写好工具发给别人使用时就无需相关依赖,开箱即用. 1.2 安 ...

最新文章

  1. 7年秘密研发,Meta拿下元宇宙「登月项目」!气动手套让指尖有真实触感
  2. 第6章-一阶多智体系统一致性-->6.1 连续时间多智能体系统一致性
  3. OpenCV之gpu 模块. 使用GPU加速的计算机视觉:GPU上的相似度检测(PNSR 和 SSIM)
  4. Java好不好求职?个人能力很重要
  5. SAP CRM Fiori My Opportunity应用文件上传的技术实现
  6. Linux Tomcat安装
  7. mapreduce 算法_MapReduce算法–顺序反转
  8. 黑鲨5系列游戏手机通过3C认证:支持120W超级快充
  9. 2017 ACM-ICPC南宁网络赛: J. Minimum Distance in a Star Graph(BFS)
  10. 读《广州的一场春梦》有感
  11. 美国人口普查数据预测收入sklearn算法汇总2: 特征编码, 特征选择, 降维, 递归特征消除
  12. 基于SSM房屋租赁管理系统
  13. 计算机自考毕业论文题目,自考男生发表数篇论文获专利 考取名校研究生
  14. 《剑指offer》-二叉树的下一个节点
  15. python学生姓名添加删除_python-函数-实现学生管理系统,完成对学员的增,删,改,查和退出学生管理系统。...
  16. OpenCV读取、保存视频
  17. 用 Python 快速分析你的微信好友
  18. 【STM32】芯片自锁、No Cortex-M SW Device Found/HardFault_Handler无法下载等问题的解决办法
  19. 【UE4 C++】如何关联GitHub 下载UE4引擎源代码
  20. 搭建stf+minicap实现安卓群控

热门文章

  1. 旷视周而进:人脸识别简史与距离对齐技术的应用
  2. 零基础学习Python文本处理
  3. 收藏 | 可解释机器学习发展和常见方法!
  4. C语言中连续两个printf,在C中两个连续的printf()调用的奇怪行为
  5. 接收率高达29%的ICLR 2021有哪些论文入榜呢?
  6. 想做数学建模?先看看这些MATLAB函数吧!
  7. 谈谈Tensorflow的Batch Normalization
  8. 构思解决问题的一般范式
  9. arctime必须要java_arctime教程:arctime字幕软件下载及安装
  10. qq浏览器网页翻译_有了这些PDF翻译软件,再也不愁看英文文献了