SignTool error when signing AppX file: “Error: SignerSign() failed.” (-2147024693/0x800700cb)

被刻印的时光 ゝ 提交于 2019-12-23 09:17:58

问题


I am creating an Appx package using makeappx.exe and then try to sign it using SignTool.exe.

The error I get from SignTool is:

"Error: SignerSign() failed." (-2147024693/0x800700cb)

The certificate I am using is created by me following instructions from here.

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?

I can't use Visual Studio so I need to stick with makeappx.exe.


回答1:


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.

From MSDN:

The app manifest publisher name must exactly match the subject name of the signing. Note These names are specified in quotes and are both case and whitespace sensitive. You can update the Publisher attribute string that is defined for the Identity element in the AppxManifest.xml file to match the subject name of the intended signing certificate. Or, select a different signing certificate with a subject name that matches the app manifest publisher name. The manifest publisher name and the certificate subject name are both listed in the event message.

Example error:

error 0x8007000B: The app manifest publisher name (CN=Contoso) must match the subject name of the signing certificate (CN=Contoso, C=US).



来源:https://stackoverflow.com/questions/24649754/signtool-error-when-signing-appx-file-error-signersign-failed-214702469

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!