winapp-signing
Skill1.3k starsChanged 2 months agoMITView on GitHub
Create and manage code signing certificates for Windows apps and MSIX packages. Use when generating a certificate, signing a Windows app or installer, or fixing certificate trust issues.
Trending
More talk lately.about the whole repository
Who's talking about microsoft/winappCli
- openclaw/openclaw-windows-node“Seed v3 Colophon design system for OpenClaw Windows Hub”GitHub · Sep 10, 2026 · 1 reactions
- sudosubin/agents.nix“copilot-plugins.github.microsoft.winappcli: init at 0.7.1”GitHub · Oct 4, 2026
- P4suta/Snaply“build(deps): update all non-major dependencies”GitHub · Oct 4, 2026
- P4suta/TateYoko“build(deps): update all non-major dependencies”GitHub · Oct 4, 2026
- P4suta/typing-sound“build(deps): update all non-major dependencies”GitHub · Oct 4, 2026
The biggest 5 of 36 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 36
Talked about on GitHub and Bluesky (36 times).
On GitHub · 35
- Sep 10, 2026Seed v3 Colophon design system for OpenClaw Windows Hub — openclaw/openclaw-windows-node1 reaction · 4 comments
- Oct 4, 2026copilot-plugins.github.microsoft.winappcli: init at 0.7.1 — sudosubin/agents.nix0 reactions
- Oct 4, 2026build(deps): update all non-major dependencies — P4suta/Snaply0 reactions · 2 comments
- Oct 4, 2026build(deps): update all non-major dependencies — P4suta/TateYoko0 reactions · 2 comments
- Oct 4, 2026build(deps): update all non-major dependencies — P4suta/typing-sound0 reactions · 1 comment
30 more on GitHub
- Oct 4, 2026Bump Microsoft.Windows.SDK.BuildTools.WinApp from 0.7.0 to 0.7.1 — mirrorpulse/MirrorPulse0 reactions
- Oct 4, 2026agent-plugins.github.microsoft.winappcli: init at 0.7.1 — sudosubin/agents.nix0 reactions
- Oct 3, 2026Bump the windows-app-sdk group with 2 updates — lzvsrx/LZ-AGENT0 reactions
- Oct 3, 2026chore(deps-node): update dependency @microsoft/winappcli to v0.7.1 — scottlz0310/md-peruse0 reactions
- Oct 2, 2026Bump Microsoft.Windows.SDK.BuildTools.WinApp from 0.6.1 to 0.7.1 — Has-X/Registry0 reactions
- Oct 2, 2026Bump the dotnet-dependencies group with 6 updates — rhamenator/SimpleLoanCalculator0 reactions · 1 comment
- Oct 2, 2026chore(deps): update dependency microsoft.windows.sdk.buildtools.winapp to 0.7.1 — SheepReaper/nes-emulator-30 reactions
- Oct 2, 2026Update dependency Microsoft.Windows.SDK.BuildTools.WinApp to 0.7.1 - autoclosed — mfakane/azunyan0 reactions
- Oct 2, 2026fix(deps): update dependency microsoft.windows.sdk.buildtools.winapp to 0.7.1 — sebdanielsson/varys0 reactions
- Sep 26, 2026Bump the windows-app-sdk group with 2 updates — lzvsrx/LZ-AGENT0 reactions · 1 comment
- Sep 25, 2026Bump Microsoft.Windows.SDK.BuildTools.WinApp from 0.6.1 to 0.7.0 — Has-X/Registry0 reactions · 1 comment
- Sep 25, 2026Bump the dotnet-dependencies group with 6 updates — rhamenator/SimpleLoanCalculator0 reactions · 2 comments
- Sep 24, 2026Bump Microsoft.Windows.SDK.BuildTools.WinApp from 0.3.2 to 0.7.0 — trsdn/md2loop-windows0 reactions
- Sep 18, 2026Bump the dotnet-dependencies group with 6 updates — rhamenator/SimpleLoanCalculator0 reactions · 2 comments
- Sep 12, 2026Bump Microsoft.Windows.SDK.BuildTools.WinApp from 0.5.0 to 0.6.1 — jacob-krarup-madsen/WinForge0 reactions · 1 comment
- Sep 11, 2026Bump the dotnet-dependencies group with 6 updates — rhamenator/SimpleLoanCalculator0 reactions · 2 comments
- Sep 4, 2026UI 驱动三选一:winapp ui、FlaUI、UIAutomationClient — trytoreachpeak0/8005-test-lab0 reactions · 2 comments
- Sep 3, 2026refactor: migrate MSIX packaging/signing to Microsoft's winapp CLI — recregt/winsp0 reactions
- Sep 3, 2026Bump Microsoft.Windows.SDK.BuildTools.WinApp from 0.3.2 to 0.6.1 — trsdn/md2loop-windows0 reactions · 1 comment
- Sep 1, 2026Bump Microsoft.Windows.SDK.BuildTools.WinApp from 0.6.0 to 0.6.1 — onlytrisdev/chrome-native-adblock0 reactions
- Aug 28, 2026Bump the dotnet-dependencies group with 6 updates — rhamenator/SimpleLoanCalculator0 reactions · 2 comments
- Aug 21, 2026Bump the dotnet-dependencies group with 5 updates — rhamenator/SimpleLoanCalculator0 reactions · 2 comments
- Aug 19, 2026build(deps-dev): bump @microsoft/winappcli from 0.5.0 to 0.6.0 — baiyuscc13724-max/deepseek-harness-desktop0 reactions · 1 comment
- Aug 19, 2026fix(deps): update dependency microsoft.windows.sdk.buildtools.winapp to 0.6.1 — sebdanielsson/varys0 reactions
- Aug 18, 2026chore(deps): update dependency microsoft.windows.sdk.buildtools.winapp to 0.6.1 [automerge] — DevSecNinja/home-assistant-win-companion0 reactions
- Aug 14, 2026Bump Microsoft.Windows.SDK.BuildTools.WinApp from 0.3.1 to 0.6.0 — Has-X/Registry0 reactions · 1 comment
- Aug 14, 2026Bump the dotnet-dependencies group with 5 updates — rhamenator/SimpleLoanCalculator0 reactions · 2 comments
- Aug 9, 2026Add Windows WinApp computer provider — albert-zen/zen0 reactions
- Jul 2, 2026using winapp cii — peaceshi/Avalonia-NativeAOT-SingleFile0 reactions
- Feb 8, 2026Electron deployment: Add Windows packaging with Microsoft WinAppCli — ok-very/autoart0 reactions
On Bluesky · 1
- May 6, 2026Does winappcli help? github.com/microsoft/wi... — @drustheaxe.bsky.social0 likes and reposts · 1 reply
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- llms.txtllms.txt
- code-qualitySkill
- pr-lifecycleSkill
- pr-reviewSkill
- spec-reviewSkill
- winapp-find-apiSkill
- winapp-find-uiSkill
- winapp-frameworksSkill
- winapp-identitySkill
- winapp-manifestSkill
- winapp-mauiSkill
- winapp-packageSkill
- winapp-sandboxSkill
- winapp-setupSkill
- winapp-troubleshootSkill
- winapp-ui-automationSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
Use this skill when:
- Very specific: line 79
When packaging multiple architectures into an .msixbundle, only the bundle needs to be signed — the signature covers all packages inside.
- Very specific: line 113
Always use --manifest (or have Package.appxmanifest in the working directory) when generating certs to ensure the publisher matches …
- Very specific: line 116
Use --timestamp when signing production builds so the signature survives certificate expiration
- Very specific: line 137
Run winapp <command> --help for current command options, or winapp --cli-schema for the complete machine-readable command schema.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
When to use
Use this skill when:
- Generating a development certificate for local MSIX signing and testing
- Installing (trusting) a certificate on a machine so MSIX packages can be installed
- Signing an MSIX package or executable for distribution
- Signing with Azure Trusted Signing (cloud-managed signing identity) via
winapp az-sign
Prerequisites
- winapp CLI installed
- Administrator access required for
cert install(trusting certificates on the machine)
Key concepts
Publisher matching: The publisher in your certificate must exactly match the Publisher attribute in Package.appxmanifest. Most X.500 distinguished names are supported (e.g., CN=MyCompany or OU=Team, O=Corp, C=US), but components must be single-valued and comma-separated — multi-valued RDNs (CN=Foo+OU=Bar) and backslashes aren't supported because the MSIX manifest publisher cannot represent them. Use --manifest when generating to auto-match.
Dev vs. production certs: winapp cert generate creates self-signed certificates for local testing only. For production distribution (Microsoft Store or enterprise), obtain a certificate from a trusted Certificate Authority.
Default password: Generated certificates use password as the default PFX password. Override with --password. That default is publicly known, so a certificate left with it can be used by anyone who obtains the .pfx — keep it to builds that stay on your own machines. With --json, check defaultPasswordIsPublic (always present) and the warnings array before handing the certificate to anything else.
Usage
Generate a development certificate
# Auto-infer publisher from Package.appxmanifest in the current directory
winapp cert generate
# Explicitly point to a manifest
winapp cert generate --manifest ./path/to/Package.appxmanifest
# Set publisher manually (when no manifest exists yet)
winapp cert generate --publisher "CN=Contoso, O=Contoso Ltd, C=US"
# Custom output path and password
winapp cert generate --output ./certs/myapp.pfx --password MySecurePassword
# Custom validity period
winapp cert generate --valid-days 730
# Overwrite existing certificate
winapp cert generate --if-exists overwriteOutput: devcert.pfx (or custom path via --output).
Install (trust) a certificate
# Trust the certificate on this machine (requires admin/elevated terminal)
winapp cert install ./devcert.pfx
# Force reinstall even if already trusted
winapp cert install ./devcert.pfx --forceThis adds the certificate to the local machine's Trusted Root Certification Authorities store. Required before double-clicking MSIX packages or running Add-AppxPackage.
Sign a file
# Sign an MSIX package
winapp sign ./myapp.msix ./devcert.pfx
# Sign with custom password
winapp sign ./myapp.msix ./devcert.pfx --password MySecurePassword
# Sign with timestamp for production (signature remains valid after cert expires)
winapp sign ./myapp.msix ./production.pfx --timestamp http://timestamp.digicert.comBundle signing
When packaging multiple architectures into an .msixbundle, only the bundle needs to be signed — the signature covers all packages inside. The individual .msix slices do not need separate signatures.
Note: The package command can sign automatically when you pass --cert, so you often don't need sign separately.
Sign with Azure Trusted Signing (cloud signing)
For production-grade signing without managing a PFX file, use winapp az-sign to sign with Azure Trusted Signing. The signing identity (certificate) is managed in Azure, so no private key ever lives on the machine.
# Interactive: discover subscription, account, and profile (prompts for any not provided)
winapp az-sign ./app.msix
# Fully specified — no prompting (ideal for CI/CD)
winapp az-sign ./app.msix --subscription <sub-id> --resource-group <rg> --account <account> --profile <profile>
# Reuse an existing metadata.json (skips resource discovery and identity selection; authentication may still be interactive)
winapp az-sign ./app.msix --metadata-file ./metadata.jsonAuthentication: az-sign uses Azure's standard credential chain (DefaultAzureCredential). In CI/CD, set AZURE_TENANT_ID, AZURE_CLIENT_ID, and AZURE_CLIENT_SECRET (or GitHub Actions OIDC / managed identity). An existing Azure CLI session (az login, including the azure/login GitHub Action) is also honored in any environment. Only when no credentials are found and the session is interactive will az-sign launch az login for you.
Prerequisites: An Azure Code Signing account and certificate profile (created in the Azure portal after identity validation), plus a role assignment granting your identity the Code Signing Certificate Profile Signer role. Signing also requires two machine-wide x64 runtimes that winapp does not install for you (it downloads the raw NuGet signing package, not the official client-tools installer): the x64 .NET 8+ runtime (the signing library is a managed assembly loaded by signtool.exe; winapp's self-contained runtime does not satisfy it) and the x64 Visual C++ Redistributable (https://aka.ms/vs/17/release/vc_redist.x64.exe). Also requires SignTool 10.0.22621.755 or later. If signing fails while loading the dlib (e.g. 0xc000007b or a missing-DLL error) rather than during authentication, install the missing runtime — most often the VC++ Redistributable.
Least-privilege CI: Auto-discovery (listing subscriptions, resource groups, accounts, and profiles) needs read access at a parent scope. To avoid every collection-listing call, pass all four of
--subscription,--resource-group,--account, and--profile:az-signthen validates the account and profile with direct resource reads (a GET on each named resource) instead of enumerating the parent collection, so a principal scoped to just that account and profile is sufficient. Omitting any one of them re-introduces a listing call — for example, leaving out--subscriptionmakesaz-signlist the subscriptions your identity can access — which a narrowly-scoped principal may not be permitted to do. A principal scoped only to a single certificate profile can skip validation entirely by passing a pre-generated--metadata-file(which specifies the account endpoint and profile directly).
Recommended workflow
- Generate cert —
winapp cert generate(auto-infers publisher from manifest) - Trust cert (one-time) —
winapp cert install ./devcert.pfx(run as admin) - Package + sign —
winapp package ./dist --cert ./devcert.pfx - Distribute — share the
.msix; recipients must also trust the cert, or use a trusted CA cert
Tips
- Always use
--manifest(or havePackage.appxmanifestin the working directory) when generating certs to ensure the publisher matches automatically - For CI/CD, store the PFX as a secret and pass the password via
--passwordrather than using the default winapp cert installmodifies the machine certificate store — it persists across reboots and user sessions- Use
--timestampwhen signing production builds so the signature survives certificate expiration - You can also use the shorthand:
winapp package ./dist --generate-cert --install-certto do everything in one command
Related skills
- Need to create a manifest first? See
winapp-manifestto generatePackage.appxmanifestwith correct publisher info - Ready to package? See
winapp-packageto create and sign an MSIX in one step - Having issues? See
winapp-troubleshootfor common error solutions
Troubleshooting
| Error | Cause | Solution |
| "Publisher mismatch" | Cert publisher ≠ manifest publisher | winapp cert generate --manifest ./Package.appxmanifest to re-generate with correct publisher |
| "Access denied" / "elevation required" | cert install needs admin | Run your terminal as Administrator |
| "Certificate not trusted" | Cert not installed on machine | winapp cert install ./devcert.pfx (admin) |
| "Certificate file already exists" | devcert.pfx already present | Use --if-exists overwrite or --if-exists skip |
| Signature invalid after time passes | No timestamp used during signing | Re-sign with --timestamp http://timestamp.digicert.com |
az-sign fails with "No credentials found" | No Azure auth in environment | Run az login, or set AZURE_TENANT_ID/AZURE_CLIENT_ID/AZURE_CLIENT_SECRET for CI/CD |
az-sign "No Trusted Signing accounts found" | No account in the subscription/resource group | Create a Trusted Signing account and certificate profile in the Azure portal |
CLI reference
Run winapp <command> --help for current command options, or winapp --cli-schema for the complete machine-readable command schema.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

