Signtool 错误:没有找到符合 Windows 应用商店应用程序所有给定条件的证书? [英] Signtool error: No certificates were found that met all given criteria with a Windows Store App?

查看:23
本文介绍了Signtool 错误:没有找到符合 Windows 应用商店应用程序所有给定条件的证书?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用我拥有的 pfx 文件对 Windows 8 appx 包进行签名.我正在使用这样的命令:

I'm trying to sign a Windows 8 appx package with a pfx file I have. I'm using a command like so:

signtool.exe sign /fd sha256 /f "key.pfx" "app.appx"

由此,我得到:

SignTool 错误:未找到符合所有给定条件的证书.

SignTool Error: No certificates were found that met all the given criteria.

我没有满足哪些标准"?这仅用于测试,因此这些是自签名证书.我尝试导入密钥然后对其进行签名,但它总是会导致相同的错误.我该如何解决?

What "criteria" am I not meeting? This is only for testing so these are self-signed certificates. I've tried importing the key and then signing it, but it always results in the same error. How do I fix this?

推荐答案

当通过 Visual Studio 收到此错误时,是因为有一个签名证书设置与最初开发它的计算机相匹配.

When getting this error through Visual Studio it was because there was a signing certificate setup to match the computer it was originally developed on.

您可以通过转到项目属性 > 签名选项卡并检查证书详细信息来检查这一点.

You can check this by going to the project properties > signing tab and checking the certificate details.

您可以取消选中签署 ClickOnce 清单"以禁用签名.

You can uncheck "Sign the ClickOnce manifests" to disable signing.

如果您不想关闭此选项,则必须安装证书.

If you don't want to turn this option off you will have to install the certificate.

这篇关于Signtool 错误:没有找到符合 Windows 应用商店应用程序所有给定条件的证书?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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