在没有可信任证书的情况下安装.appx? [英] Installing .appx without trusted certificate?

查看:849
本文介绍了在没有可信任证书的情况下安装.appx?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个要部署到Windows RT 2的Windows 8应用程序.我只有.appx,我只想绕过商店来安装它以进行测试.但是,当我运行命令时:

I have a Windows 8 app that I would like to deploy to my Windows RT 2. I only have the .appx, and I would like to just install it for testing by bypassing the store. However, when I run the command:

Add-AppxPackage <project.appx>

我收到以下错误:

串联脚本返回错误输出:Add-AppxPackage:部署失败,出现HRESULT:0x800B0109,已处理证书链,但终止于受信任提供者不信任的根证书. (来自HRESULT的异常:0x800B0109)错误0x800B0109:必须信任应用程序包中签名的根证书.*

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脚本,但是可以肯定的是,有一种方法可以绕过所有这些.理想情况下,我只想安装该应用程序进行测试.

Google says that I need the certificate or PowerShell script, but surely there is a way that I can just bypass all of this. Ideally, I would like to just install the application for testing.

否则,解决此问题的最简单方法是什么? .appx还需要什么,以便我可以毫无问题地安装它?

Otherwise, what is the easiest method to fix this issue? What else do I need with the .appx, so that I can install it with no problem?

推荐答案

证书可能是自签名的,因此您需要安装它才能信任它.

The certificate is probably self-signed, so you need to install it to trust it.

获得对应用程序签名的证书

如果这是您自己的应用,则应该可以在您的IDE(例如Visual Studio)中找到它,否则请执行以下步骤:

If this is your own app, you should be able to find it in your IDE ( e.g. Visual Studio) otherwise use these steps:

  1. 右键单击APPX文件
  2. 点击属性
  3. 点击数字签名
  4. 从列表中选择签名
  5. 点击详细信息
  6. 点击查看证书
  7. 点击安装证书

安装证书

在Windows RT上安装开发人员软件包 :

  1. 在Windows RT PC中,映射网络共享或连接USB驱动器,您可以在其中访问包含要安装的应用程序包的AppPackages文件夹.使用Windows资源管理器打开该文件夹.
  2. 在文件夹中双击证书文件,然后点击安装证书.这将显示证书导入向导.
  3. 在"存储位置"组中,点击单选按钮以将所选选项更改为"本地计算机".
  4. 点击下一步.点击确定以确认UAC对话框.
  5. 证书导入向导的下一个屏幕中,将选定的选项更改为将所有证书放置在以下存储中.
  6. 点击浏览按钮.在选择证书存储区弹出窗口中,向下滚动并选择受信任的人,然后点击确定.
  7. 点击下一步按钮;出现一个新屏幕.点击完成按钮.
  8. 应出现一个确认对话框;如果是这样,请点击确定. (如果出现其他对话框,表明证书存在问题,则可能需要对证书进行一些故障排除.但是,在这种情况下,说明执行该操作的方法不在本主题的讨论范围之内.)
  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.)

另请参阅:

这篇关于在没有可信任证书的情况下安装.appx?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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