Can I publish the StoreKey.pfx of an UWP application

后端 未结 2 1097
既然无缘
既然无缘 2021-02-10 05:59

I have an open source windows store application (UWP). When I associate the application with the store a Package.StoreAssociation.xml and a _St

相关标签:
2条回答
  • 2021-02-10 06:29

    Can I commit that information to a public git repository (the certificate must be in the repository because I want to build the package with AppVeyor)?

    For public git repository, the Store key .pfx file should not be committed(Add to .gitignore file). If you want to use the CI system, please create a private repository or append the .pfx file to your cloned project in CI backend.

    Should I encrypt it?

    This file has been encrypted and it's for signing your app before submitting to Windows Store, see also How to create an app package signing certificate

    Could I revoke the certificate if it leaked?

    You need to reserved a new app name, see here

    Are the changes to appxmanifest sensitive?

    Depends on what you have changed, it's very important for Identity and package information in .packagemanifest file. See App package manifest

    0 讨论(0)
  • 2021-02-10 06:33

    You should not include <AppName>_StoreKey.pfx file to your public repo. However you can still use AppVeyor CI.

    1.Change your *.csproj file to include this information.

    <PropertyGroup Condition="('$(Configuration)' == 'Debug') Or ('$(UseTemporarySignCert)' == 'true')">
        <PackageCertificateKeyFile><AppName>_TemporaryKey.pfx</PackageCertificateKeyFile>
    </PropertyGroup>
    <PropertyGroup Condition="('$(Configuration)' == 'Release') And ('$(UseTemporarySignCert)' != 'true')">
        <PackageCertificateThumbprint><!-- Your <AppName>_StoreKey.pfx Thumbprint Here --></PackageCertificateThumbprint>
    </PropertyGroup>
    

    2.Import your <AppName>_StoreKey.pfx certificate to: store location - Current User, Certificate store - Personal

    3.Add UseTemporarySignCert environment variable with value true to your AppVeyor project.

    As result you will be able to build signed project by your own without <AppName>_StoreKey.pfx in release mode and publish then to the store. And AppVeyor will work with TemporaryKey.pfx.

    0 讨论(0)
提交回复
热议问题