[zz]How to sign .EXE, .DLL and .CAB files?

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.

 

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

根据引用\[1\]和引用\[2\]的内容,解决"error MSB6006: link.exe"的问题可以尝试以下方法: 1. 点击项目属性,依次点击属性管理器,右键Microsoft.Cpp.Win32.user,选择属性。在VC++中可执行文件目录中,将包含目录和库目录进行相同的操作。 2. 删除链接器输入中的附加依赖项。 3. 在安装VS的文件目录下的Common7/IDE下复制以下几个文件:msobj100.dll、mspdb100.dll、mspdbcore.dll、mspdbsrv.exe。然后在VS的安装目录下找到VC/bin,将这几个文件复制到该目录下。 4. 运行项目的清理解决方案,然后重新生成解决方案。 另外,根据引用\[3\]的内容,还可以尝试点击应用,然后点击确定,看看是否能解决问题。 希望以上方法能够帮助您解决"error MSB6006: link.exe"的问题。 #### 引用[.reference_title] - *1* *3* [error MSB6006: “CL.exe”已退出,代码为 5 问题解决](https://blog.csdn.net/weixin_42045517/article/details/122224763)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [error MSB6006: “link.exe”已退出,代码为 1104。](https://blog.csdn.net/zz420521/article/details/69390277)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值