Wack 测试失败.“应用程序包必须经过数字签名才能进行签名验证" [英] Wack test fail. "The app bundle must be digitally signed for signature validation"

查看:89
本文介绍了Wack 测试失败.“应用程序包必须经过数字签名才能进行签名验证"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直坚持运行 WACK 测试.它在任何测试之前都会给我这个警告.

<块引用>

应用程序包必须经过数字签名才能进行签名验证.

根据文档(

所有字段都没有.当点击从商店中选择"时,它显示:

即使在合作伙伴中心,似乎也没有与应用程序关联的证书.

我的问题是,为什么没有证书?我已经在合作伙伴中心创建了一个应用程序并填写了所有内容,等待包上传.我如何签署包裹?

我也厌倦了在另一台安装了 VS 的 PC 上构建应用程序,但问题仍然存在.

更新:

我使用新的空 UWP 项目和合作伙伴中心的新应用条目尝试了整个过程,但问题仍然存在.这太令人沮丧了.

解决方案

经过多次尝试和错误,确定原因是 Visual Studio.它未能获得用于签署包的证书.我很惊讶构建日志上没有错误消息.在撰写本文时,我使用的是最新的 Visual Studio 2019 版本.

使用 Visual Studio 2022 预览版后,该包终于正确签名并通过了 WACK 测试!

李锐.谢谢!

I am stuck on running the WACK test. It give me this warning before any testing.

The app bundle must be digitally signed for signature validation.

According to the doc ( https://docs.microsoft.com/en-us/windows/msix/package/packaging-uwp-apps )

If you're publishing your app in Microsoft Store, your app will be signed with a trusted certificate for you. This allows the user to install and run your app without installing the associated app signing certificate.

However, the package I got from VS publish wizard seems not getting signed correctly.

I have read a related topic (Windows Store App Certification Toolkit: The app bundle must be digitally signed) but the suggestion there use sideloading which is not my case.

In the "Create App Package" wizard, it asked

How will you distribute this application?

I choose the first

Microsoft Store as XXX by XXX

because I am building for a release on the store. There is no option about signing. I suppose it will sign with a right cert automatically since I already associated the app to my developer account.

This page (https://docs.microsoft.com/en-us/windows/msix/package/create-certificate-package-signing) talks about how to create a certificate but that is only for local test. It does not mention a certificate for release.

This page about sign tool (https://docs.microsoft.com/en-us/windows/msix/package/sign-app-package-using-signtool) mentioned

Once your app package is signed with a valid certificate, you're ready to upload your package to the Store. For more guidance on uploading and submitting apps to the Store, see App submissions.

I am not sure if it means I need to sign my package by myself. Even if it is the case, I have no idea where to download or create a certificate for release.

The packaging tab under appxmanifest:

The fields are all none. When clicked "Select from Store", it show:

Looks like there is no certificate associated with the application even on the Partner Center.

My question is, why is there no certificate? I already create a app in the partner center and filled out everything just waiting for the package upload. How do I get the package signed?

I also tired building the app on another PC with fresh installed VS and the issue still remain.

Update:

I tried the whole thing with a new empty UWP project and a new app entry in Partner Center but the issue still remains. This is so frustrating.

解决方案

After a lot of try and error, the cause is identified to be Visual Studio. It failed to get the certificate for signing the package. I am surprise there is no error message on the build log. As of this writing, I am using the latest Visual Studio 2019 version.

After using the Visual Studio 2022 preview, the package finally got signed correctly and passed the WACK test!

Roy Li. Thank you!

这篇关于Wack 测试失败.“应用程序包必须经过数字签名才能进行签名验证"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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