gpt4 book ai didi

c# - UWP 代码签名

转载 作者:行者123 更新时间:2023-12-03 05:05:32 25 4
gpt4 key购买 nike

我想在我的应用程序中使用System Center Configuration ManagerThis Msdn article说的是

Universal Windows Platform line of business apps must be signed with a code-signing certificate that is trusted on each device to which the app is deployed. You can use certificates from an in-house PKI infrastructure, or a certificate from a third-party public root certificate installed on the device.

我的问题是如何获取代码签名证书以及如何对我的应用程序进行签名?

最佳答案

你基本上有两个选择。您可以创建一个测试证书,将其部署到您打算部署应用程序的每台计算机上,或者从受信任的来源获取第 3 方证书。我不想透露第三方的名称,但如果您在 Bing 中搜索“代码签名证书”,您应该会找到一些选项。

MakeCert.exe 是 Windows SDK 中的一个应用程序,可用于制作测试证书。在每台测试机器上安装它的过程有点费力,但这是一个选择。否则,当您与第 3 方合作时,他们会给您一个证书,您无需手动安装。

无论哪种情况,一旦您获得了证书,您就需要在 AppX 包上使用 SignTool。 SignTool 也是 SDK 的一部分。有关于如何使用它的文档 here

我希望这能解决您的问题。

--但丁 [MSFT]

关于c# - UWP 代码签名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37984718/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com