从Visual Studio 2022中签名MSIX,并带有Azure键Vault的证书
像标题状态一样,我想从VS中签署MSXI软件包。我有一个C#应用程序和一个相应的Windows包装项目。我在文档中陈述了带有权限的密钥库设置( https://learn.microsoft.com/en-us/windows/msix/desktop/sign-with-akv-cert )。 据我了解,我会去出版>在Windows包装项目上创建App Package ...,允许SideloDoding,并且在签名时,我将从Azure钥匙库中选择CERTS。我输入保险库的URL,单击“查看元数据”,然后从保管库中获取证书列表。但是,当我选择它并单击“确定”时,它会说:
“将所选证书导入用户本地证书存储中存在错误。”
可悲的是,我找不到任何错误。对我来说,这听起来像是本地许可问题,但是我在计算机上拥有管理权,甚至试图以管理员的身份运行,但这并没有改变任何事情。
有人有一个主意吗? br 丹尼尔
like the title states I want to sign a MSXI package from within VS. I have a C# application and a corresponding Windows Packaging Project. I have the Key Vault setup with the permissions a stated in the docs (https://learn.microsoft.com/en-us/windows/msix/desktop/sign-with-akv-cert).
As I understand it, I'll go to Publish > Create App Package... on the Windows Packaging Project, allow sideloading and when it comes to signing, I'll select Certs from Azure Key Vault. I enter the vault's URL, click on View Metadata and get the list of certs from the vault. However when I select it and click OK, it will say:
"There was an error importing the selected certificate to the user's local certificate store."
Sadly I cannot find anything on that error. To me it sounds like a local permission problem, but I have administrative rights on my computer and even tried to run VS as administrator, but that didn't change a thing.
Anybody has an idea?
BR,
Daniel
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您可能需要将Visual Studio注册为具有权限的Azure密钥保险库的应用程序。请参阅下面链接的文章(在文章中间的某个地方,我们解释了此注册过程)。
当我们构建 azure key key vaulter in Advanced Installer中的集成我们必须专门教育用户在其Azure租户中注册我们的应用程序(高级安装程序),否则,API会失败。
我记得微软说这是所有非Microsoft应用程序的要求,因此理论上VS应该可以使用,而无需您在租户内注册它,但值得一试。他们的文档在这方面非常苗条,所以如果这是解决方案,我不会感到惊讶。
I think you might need to register Visual Studio as an app with permissions to your Azure Key Vault. See the article linked below (somewhere in the middle of the article we explain this registration process).
When we built the integration for Azure Key Vault in Advanced Installer we had to specifically educate our users to register our application (Advanced Installer) in their Azure tenant, otherwise, the APIs would fail.
I remember Microsoft said this is a requirement for all non-Microsoft apps, so theoretically VS should work without you having to register it inside your tenant, but it is worth a shot trying. Their docs are pretty slim in this area so I would not be surprised if this would be the solution.