Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
662 views
in Technique[技术] by (71.8m points)

windows applications - Installing .appx without trusted certificate?

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>

I get the following error:

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 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.

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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

Obtain the Certificate that signed the App

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. Right click on APPX file
  2. Click Properties
  3. Click Digital Signatures
  4. Select Signature from the list
  5. Click Details
  6. Click View Certificate
  7. Click Install Certificate

Install the Certificate

Quote from 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.)

See also:


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...