2
votes

I have a Windows 10 UWP application deployed to the Windows store.

When I now build, I get warning APPX0108: The certificate specified has expired. For more information about renewing certificates, see http://go.microsoft.com/fwlink/?LinkID=241478

It has been a while so that is fine, so I want to renew.

Going to the link, and to the section Renewing a certificate, steps 3 and 4 say to choose "Create Test Certificate". But I don't want a test certificate, I want one I can use to build and push a new version of the app to the store.

Does anyone know if these instructions are correct and just misleading (using the term "Test" certificate)

Thanks in advance!

2
That is the appropriate article afaict. You use the temporary cert to debug and test your app, it is valid for a year. The store server replaces it with the permanent one, after the package is validated. So you only have to renew that temporary certificate, "Create test certificate" option in the IDE and the article.Hans Passant

2 Answers

5
votes

Visual Studio will automatically create a certificate for uploading your app to the Store when you associate your app with Store at the first time or when your certificate expires.So you could re-associate your app with store to renew a App_StoreKey.pfx.

Use Visual studio to associate your app with the Microsoft Store:In Solution Explorer, right-click your project and then select Store > Associate App with the Store > Next >(sign in to the Microsoft Store) > select the App Name you have reserved>Next > Associate.

1
votes

In short:

  • Open Package.appxmanifest
  • Go to Packaging tab
  • Press Choose certificate
  • Select Create test certificate from drop down list
  • Overwrite your test certificate
  • Go to Project -> Store -> Associate App with the Store, and re-associate the app so the new certificate is used.
  • Voila!