AndrewS
AndrewS

Reputation: 8472

How do I renew my expired Windows Store app certificate?

I have taken over the development of a Windows Store app, and our store certificate has recently expired. How do I renew the certificate, or do I have to generate a new one?

In the .appxmanifest, I can choose to generate a new Test certificate, but I need a store certificate, not a test certificate.

Upvotes: 18

Views: 11221

Answers (3)

Borzh
Borzh

Reputation: 5205

  • Open Packaging.appxmanifest with Visual Studio
  • Go to the Packaging tab
  • Press Choose Certificate
  • From dropdown select Create test certificate.

Upvotes: 2

Artem
Artem

Reputation: 2075

The answer here got outdated, so here's how to renew a test certificate in year 2019:

  1. Open Powershell
  2. Paste:

    New-SelfSignedCertificate -Type Custom -Subject "CN=Contoso Software, O=Contoso Corporation, C=US" -KeyUsage DigitalSignature -FriendlyName "Contoso app test certificate" -CertStoreLocation "Cert:\CurrentUser\My" -TextExtension @("2.5.29.37={text}1.3.6.1.5.5.7.3.3", "2.5.29.19={text}")
    

    -Subject

    The -Subject here must match the "Publisher" section in your app's manifest.

    For example, the "Identity" section in your app's AppxManifest.xml file should look something like this:

    The "Publisher", in this case, is CN=Contoso Software, O=Contoso Corporation, C=US which needs to be used in -Subject option for creating your certificate.

    -FriendlyName

    The -FriendlyName option is a friendly name for the certificate.

  3. Go to Package.appxmanifest, Package tab, Select certificate button, select the one you have just created.

Upvotes: 2

Timur Gilfanov
Timur Gilfanov

Reputation: 686

You need to:

  1. Generate new test certificate http://msdn.microsoft.com/en-us/library/br230260.aspx#Renew
  2. Associate with store app: Project -> Store -> Associate

Upvotes: 23

Related Questions