我接手开发了一个Windows商店应用程序,我们的商店证书最近已过期。我该如何更新证书,还是必须生成一个新的证书?
在 .appxmanifest 文件中,我可以选择生成新的测试证书,但我需要一个商店证书,而不是测试证书。
我接手开发了一个Windows商店应用程序,我们的商店证书最近已过期。我该如何更新证书,还是必须生成一个新的证书?
在 .appxmanifest 文件中,我可以选择生成新的测试证书,但我需要一个商店证书,而不是测试证书。
您需要:
这里的答案已经过时,因此在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.