问题描述
我正在尝试使用我拥有的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"
然后,我得到:
我没有满足什么标准"?这仅用于测试,因此它们是自签名证书.我尝试导入密钥,然后对其进行签名,但是它始终会导致相同的错误.我该如何解决?
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 Store App未找到满足所有给定条件的证书吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!