Windows Store "Create App Packages" errors

I’ve built my app for Windows Store, run it successfully from within the Visual Studio package created by Unity, associated my app with the Store, but every time I try to create the app package via STORE->Create App Packages, I get the following 2 errors in Visual Studio:

  1. Cannot import the key file ‘MetroTestCertificate.pfx’. The key file may be password protected. To correct this, try to import the certificate manually into the current user’s personal certificate store.

  2. The certificate specified is not valid for signing. For more information about valid certificates, see Signing an app package (Windows Store apps) | Microsoft Learn.

I’ve been banging my head against this for days, I’ve read everything I can find online (which isn’t much,) and I’ve followed every step-by-step list I can find for submitting an app to the Windows Store.

Has anyone else run into this, or has anyone successfully packaged an app for the Windows store?

Hello,

I have the same problem.

Please, did you find the solution?

Thank you.

Still no solution. I spent a bunch of time on a chat with a windows developer relations guy, but he couldn’t help. Sorry you’re having the same problem, but at least I know I’m not alone. Please post if you find a solution.

Microsoft support did not help me too.

So the solution I found is…

  • Open your VS12 Project
  • Double click on Package.appxmanifest
  • Go to Packaging tab
  • Click Choose Certificate
  • And then create test certificate

So you will create a new pfx file using VS.

2 Likes

Thank you feloque
click choose certificate
click configure certificate
select from file and use MetroTestCertificate.pfx that unity created

1 Like

Thanks you guys, this one was bugging me for a while!

This solved my problem