SignTool错误:未找到符合所有给定条件的证书。 [英] SignTool Error: No certificates were found that met all the given criteria.

查看:634
本文介绍了SignTool错误:未找到符合所有给定条件的证书。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了VS2015。我打开了一个解决方案(我经常在VS2010中打开并开发)并尝试构建并收到以下错误:

I have just installed VS2015. I opened a solution (that I frequently open and develop on in VS2010) and try to build and I get the following error:

严重性

代码

描述

项目

文件

错误

签名时出错:无法使用Imaging\app.publish\MyApp.exe对bin \Debug进行签名。 SignTool错误:未找到符合所有给定条件的证书。

An error occurred while signing: Failed to sign bin\Debug with Imaging\app.publish\MyApp.exe. SignTool Error: No certificates were found that met all the given criteria.

MyApp

在"签名"中项目属性的选项卡"签署ClickOnce清单"单击复选框,显示证书。证书已过期,我猜这是此错误消息的来源。但是,
我想知道为什么我能够使用完全相同的证书构建VS2010和VS2012,并且我没有收到此错误消息,并且能够构建并运行我的解决方案。

In the "Signing" tab of the project properties the "Sign the ClickOnce manifests" checkbox is clicked and there is a certificate displayed. The certificate has expired, which I am guessing is the source of this error message. However, I am wondering why I am able to build in both VS2010 and VS2012 with the exact same certificate and I do not get this error message and am able to build and run my solution.

是否有某个设置可以让我忽略这个错误是VS2015,这样我仍然可以构建并运行我的项目?

Is there a setting somewhere that will let me ignore this error is VS2015 so that I can still build and run my project?

谢谢!

推荐答案

您好jfk59102,

Hi jfk59102,

谢谢您在MSDN论坛上发帖。

Thank you for posting in MSDN forum.

对于您的问题,请检查以下两种方法,看看是否有帮助:

For your this issue, please check the following two methods to see if it helps:

(1)取消选中"签署ClickOnce清单"复选框

(1) Uncheck the "Sign the ClickOnce manifests" checkbox

(2)如果取消选中没有帮助,我认为此问题与您的* .pfx文件有关,我建议您将其从项目中删除,然后重新创建它项目属性 - >签名选项卡。

(2) If uncheck doesn't help, I think this issue is related to your *.pfx file , I suggest you to remove it from project ,and re-create it in project property ->Signing tab.

您还可以尝试手动使用Sign Tool签名项目,以下是有关如何使用SignTool.exe的详细规范:

And you can also try to use Sign Tool sign project manually, here is the detailed specifications on how to use the SignTool.exe:

SignTool.exe(签名工具):

http://msdn.microsoft.com/en-us/library/8s9b9yaz .aspx

http://msdn.microsoft.com/en-us/library/8s9b9yaz.aspx

由于您未能对应用程序签名,因此无法验证应用程序。

You can't verify the application since you failed to sign the application.

上面链接中的示例将向您显示签署您的申请。你应该确保签名是否有密码。以及时间戳文件是否正确。

The examples in the link above will show you the way to sign your application. And you should make sure that whether the signatures has paswords or not. And whether the time-stamps files is correct or not.

最好的问候,


这篇关于SignTool错误:未找到符合所有给定条件的证书。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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