如何解决不受信任的证书错误?(TFS2013构建并部署到IIS) [英] How can resolve Untrusted certificates Error ?( TFS2013 Build and deploy to IIS )

查看:226
本文介绍了如何解决不受信任的证书错误?(TFS2013构建并部署到IIS)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在tfs2013上创建了一个构建定义.当我将我的构建定义排队时,我收到有关不受信任证书的错误.

I crate a build definition on tfs2013.when I queue my builddefinition I get an error about Untrusted certificates.

C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ v12.0 \ Web \ Microsoft.Web.Publishing.targets(4270):Web部署任务失败. (使用指定的进程("Web管理服务")连接到远程计算机("developertest"),但无法验证服务器的证书.如果您信任服务器,请再次连接并允许不受信任的证书.有关详细信息,请参见: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_CERTIFICATE_VALIDATION_FAILED

我检查了帮助链接,它有3种解决方法

I check help link and it has 3 way to resolve it

  • 在msdeploy.exe命令行中,您可以通过传递-allowUntrusted标志来实现此目的.
  • 在Visual Studio 2010发布UI中,可以选中允许不受信任"

  • From the msdeploy.exe command line, you can do this by passing the -allowUntrusted flag.
  • From the Visual Studio 2010 publish UI, you can check "Allow untrusted"

从Visual Studio 2010部署包(例如MyApp.deploy.cmd)中,您可以传递-allowUntrusted标志

From a Visual Studio 2010 deployment package (e.g. MyApp.deploy.cmd), you can pass the -allowUntrusted flag

对于第一种和第三种方式,我不知道该怎么做 在第二种方法中,我无法在vs2013的发布"对话框中找到允许不受信任"

For first and third way I dont know how do it In second way I cant find Allow untrusted in vs2013 publish dialog

推荐答案

我将/p:AllowUntrustedCertificate = true添加到MsBuild参数中.此问题已解决

I add /p:AllowUntrustedCertificate=true to MsBuild arguments.and it's resolved

这篇关于如何解决不受信任的证书错误?(TFS2013构建并部署到IIS)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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