How to update Windows 10 UWP store certificate

大憨熊 提交于 2021-01-28 09:38:14

问题


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!


回答1:


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.




回答2:


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!


来源:https://stackoverflow.com/questions/52379543/how-to-update-windows-10-uwp-store-certificate

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!