Reputation: 8472
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
Reputation: 5205
Upvotes: 2
Reputation: 2075
The answer here got outdated, so here's how to renew a test certificate in year 2019:
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.
Go to Package.appxmanifest, Package tab, Select certificate button, select the one you have just created.
Upvotes: 2
Reputation: 686
You need to:
Upvotes: 23