问题描述
我正在使用makeappx.exe
创建一个Appx程序包,然后尝试使用SignTool.exe
对其进行签名.
I am creating an Appx package using makeappx.exe
and then try to sign it using SignTool.exe
.
我从SignTool收到的错误是:
The error I get from SignTool is:
我正在使用的证书是由我按照此处.
The certificate I am using is created by me following instructions from here.
在EventViewer
中没有有关此失败操作的记录!
In EventViewer
there is no record about this failed operation!
我不明白此错误的含义以及解决方法!!以前有没有人遇到过这种情况,并找到了解决方案?
I do not understand what this error means and how to fix it!!Has anyone encountered this before, and found a solution?
我无法使用Visual Studio,因此我必须坚持使用makeappx.exe
.
I can't use Visual Studio so I need to stick with makeappx.exe
.
推荐答案
appxmanifest xml文件需要具有与正在对appx包进行签名的证书相对应的发布者.在属性< Identity/>"中指定了发布者.标签.
The appxmanifest xml file needs to have a publisher that corresponds to the certificate that is signing the appx package.The publisher is specified in an attribute for the "<Identity />" tag.
来自 MSDN :
示例错误:
错误0x8007000B:应用清单发布者名称(CN = Contoso)必须与签名证书的主题名称(CN = Contoso,C = US)匹配.
error 0x8007000B: The app manifest publisher name (CN=Contoso) must match the subject name of the signing certificate (CN=Contoso, C=US).
这篇关于签署AppX文件时的SignTool错误:“错误:SignerSign()失败." (-2147024693/0x800700cb)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!