Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove test .pfx file from repo. Generate temp cert as part of the build. #6898

Merged
merged 7 commits into from
Mar 30, 2022

Conversation

kmahone
Copy link
Member

@kmahone kmahone commented Mar 29, 2022

It is not best practice to include a checked in .pfx in the git repo.

We need a .pfx file to test sign the test app appx files that we create. An appx must be signed with something for it to be able to be installed. We want to maintain the ability for someone to just clone the repo and build the .sln without having to do any special steps to configure their environment. So, we now generate a new self-signed .pfx file as part of the build to use for signing with GenerateTestPfx.ps1.

As part of this change, I have also updated the published identity for the test apps from 'Microsoft' to 'WinUITest' which is more appropriate.

For the Microsoft.UI.Xaml Framework package, we need to keep the publisher identity as 'Microsoft', so we generate a separate temp self-signed pfx for that.

None of this has any bearing on what we ship in official release builds. For these we sign everything using an internal signing system and not the temp self-signed pfx files that we use for testing.

@kmahone kmahone requested review from llongley and ranjeshj March 29, 2022 21:59
@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Mar 29, 2022
@kmahone
Copy link
Member Author

kmahone commented Mar 29, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ojhad ojhad added area-DevInternal Internal build infrastructure, code cleanup, engineering efficiency team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels Mar 29, 2022
GenerateTestPfx.ps1 Show resolved Hide resolved
build/Helix/scripts/TestPass-PreRun.ps1 Show resolved Hide resolved
@kmahone kmahone merged commit 8e30ff9 into main Mar 30, 2022
@kmahone kmahone deleted the user/kmahone/nopfx branch March 30, 2022 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-DevInternal Internal build infrastructure, code cleanup, engineering efficiency team-Controls Issue for the Controls team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants