加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

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

发布时间:2020-12-13 20:22:11 所属栏目:Windows 来源:网络整理
导读:我有一个Windows 8应用程序,我想部署到我的Windows RT 2.我只有.appx,我想要安装它来进行测试,绕过商店.但是,当我运行命令: Add-AppxPackage project.appx 我收到以下错误: In-line script returned error output: Add-AppxPackage : Deployment failed wi
我有一个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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读