如何使用代码签名的证书使用TFS 2015更新2.1在dll和exe上应用 [英] how to use code signed cert to apply on dll and exe using TFS 2015 update 2.1

查看:98
本文介绍了如何使用代码签名的证书使用TFS 2015更新2.1在dll和exe上应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Team,


我最近获得了代码签名证书(PFX)文件,以使代码文件在网络上安全。我已经使用VS将PFX文件添加到我的项目中,现在我想用签名证书签署所有dll和exe文件。


我正在尝试使用TFS 2015构建应用程序,当我检查dll时他们没有通过我们的证书签署。 


如果我出错了,请告诉我dll和exe签名的过程。我在网上找不到任何文件。


我们将不胜感激。

解决方案

Hi Shyamal和Ashutosh,


感谢您发布此处。


使用命令行步骤运行此命令" < code style ="margin:0px; padding:1px 5px; border:0px currentColor; font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono' ,'Courier New',monospace,sans-serif; font-size:13px; white-space:pre-wrap; background-color:#eff0f1"> sn
-i xxxx.pfx VS_KEY_xxxx " ;.使用命令行对dll进行签名。 sn.exe工具位于路径"C:\Program Files(x86)\Microsoft SDKs \ Windows \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\信息,您可以参考这种情况:
http ://stackoverflow.com/questions/1056997/team-foundation-server-build-with-password-protected-codesigning-fails


祝你好运


Hi Team,

I have recently got code signed cert (PFX) file to make code files secure on network. I have added PFX file to my project using VS and now I wanted to sign all dll and exe files with signed cert.

I am trying to build application using TFS 2015 and when I check dll and exe they are not getting signed by our cert. 

Please let me know the process to sign by dll and exe if I am going wrong. I have found no documentation online.

Your help will be appreciated.

解决方案

Hi Shyamal and Ashutosh,

Thank you for posting here.

Using a Command Line step to run this command "sn -i xxxx.pfx VS_KEY_xxxx". Using the command line to sign dll. The sn.exe tool is under the path "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin".

For more information, you could refer to this case: http://stackoverflow.com/questions/1056997/team-foundation-server-build-with-password-protected-codesigning-fails

Best regards


这篇关于如何使用代码签名的证书使用TFS 2015更新2.1在dll和exe上应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆