# Windows code signing for a free OSS desktop app Source of truth: https://signpath.org/terms (re-read before applying; terms change). Apply form: https://signpath.org/apply (login; the maintainer fills it, never the agent). ## Choice - SignPath Foundation: free, cert issued to "SignPath Foundation" (shown as publisher, not the user's brand), every release needs manual signing approval in the SignPath dashboard, review takes ~1-4 weeks, young projects with little reputation may be rejected or delayed. - Certum Open Source (~EUR 49/yr, cloud SimplySign): publisher is the user's own name, identity verification, `signtool sign /fd sha256 /tr http://time.certum.pl /td sha256`. - Azure Artifact Signing: individuals only in US/Canada. EV certs no longer bypass SmartScreen instantly. ## Repo prerequisites to brief to the coder before applying (SignPath) 1. README (home page) and release notes link a section titled exactly "Code signing policy" containing verbatim: "Free code signing provided by [SignPath.io](https://about.signpath.io), certificate by [SignPath Foundation](https://signpath.org)"; team roles (committers/reviewers, approvers; a solo maintainer holds all three); a privacy policy link. 2. Privacy policy: if the app makes ANY automatic network call (update check, model/package downloads), the boilerplate "transfers no information unless requested" sentence is false. List every outbound endpoint from the code with file:line, and add a test that keeps the code list and the README table in sync. 3. Software that transfers data to systems the user did not specify must show the policy during installation and offer an install option to disable it: add an installer checkbox (e.g. "check for updates at startup", default on) that writes the app's existing setting and does not overwrite a previous choice on upgrade. 4. Signed binaries need enforced metadata: product name = project name, product version = the single `VERSION` source (Inno: `VersionInfoProductName/ProductVersion/Version`; default is 0.0.0.0). Add a CI step that reads the built .exe's version info and fails on mismatch. Inno-built .exe version strings read back right-padded with spaces (PowerShell `(Get-Item x.exe).VersionInfo.ProductName` → `'SesVer …'`), so an untrimmed `-eq` check fails the build. The padding is really inside the resource (ISCC overwrites fixed-length placeholder strings in the loader in place; Inno's own installer shows the same padding), and SignPath docs do not say trailing spaces are ignored, so do not just trim the check: trim the strings in the built .exe (in-place VERSIONINFO rewrite, size unchanged, PE header checksum updated; SesVer: `tools/pe_surum_bilgisi.py`), then check exact, case-sensitive equality, hash and release the trimmed file. Trimming must stay BEFORE signing (it changes bytes). Only a CI install + uninstall of the trimmed .exe proves it is safe. Copyright line: " - " (spell the brand exactly as registered). 5. Pin CI actions to commit SHAs (the release job holds a write token); uninstaller must exist; MFA on GitHub and SignPath for every maintainer (ask the user, it cannot be checked by the agent). 6. Until approval, keep every "installer is unsigned / SmartScreen" instruction in README and release notes; state honestly that the publisher will read "SignPath Foundation". After approval: separate brief to add `signpath/github-action-submit-signing-request` between build and release (org id, project/policy/artifact-config slugs as repo variables, API token as a secret set by the user).