Windows应用程序 – 安装.appx而不受信任的证书?

前端之家收集整理的这篇文章主要介绍了Windows应用程序 – 安装.appx而不受信任的证书?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我有一个Windows 8应用程序,我想部署到我的Windows RT 2.我只有.appx,我想要安装它来进行测试,绕过商店.但是,当我运行命令:
Add-AppxPackage <project.appx>

我收到以下错误

In-line script returned error output: Add-AppxPackage : Deployment Failed with HRESULT: 0x800B0109,A certificate chain processed,but terminated in a root certificate which is not trusted by the trust provider. (Exception from HRESULT: 0x800B0109) error 0x800B0109: The root certificate of the signature in the app package must be trusted.*

Google说我需要证书或PowerShell脚本,但肯定有一种方法,我可以绕过所有这一切.理想情况下,我想安装测试应用程序.

否则,解决这个问题最简单的方法是什么?还有什么我需要与.appx,所以我可以安装它没有问题?

证书可能是自签名的,所以你需要安装它来信任它.

获取签署应用程序的证书

如果这是你自己的应用程序,你应该在Visual Studio中.如果没有,我不太确定如何从APPX中提取它.

安装证书

报价从Installing developer packages on Windows RT

  1. From the Windows RT PC,either map the network share or connect the USB drive where you can access the AppPackages folder that contains the app package to install. Use Windows Explorer to open that folder.
  2. Double-tap the certificate file in the folder and then tap Install Certificate. This displays the Certificate Import Wizard.
  3. In the Store Location group,tap the radio button to change the selected option to Local Machine.
  4. Click Next. Tap OK to confirm the UAC dialog.
  5. In the next screen of the Certificate Import Wizard,change the selected option to Place all certificates in the following store.
  6. Tap the Browse button. In the Select Certificate Store pop-up window,scroll down and select Trusted People,and then tap OK.
  7. Tap the Next button; a new screen appears. Tap the Finish button.
  8. A confirmation dialog should appear; if so,click OK. (If a different dialog indicates that there is some problem with the certificate,you may need to do some certificate troubleshooting. However,describing what to do in that case is beyond the scope of this topic.)

也可以看看:

> Installing developer packages on Windows RT

原文链接:https://www.f2er.com/windows/371484.html

猜你在找的Windows相关文章