Skip to content

Free code signing: self-signed certs + one-click trust installers (Windows + macOS) - #1

Merged
fnpanic merged 1 commit into
mainfrom
signing-free-certs
Nov 9, 2026
Merged

fnpanic merged 1 commit into
mainfrom
signing-free-certs

Conversation

@fnpanic

@fnpanic fnpanic commented Nov 9, 2026

Copy link
Copy Markdown
Owner

Free self-signed code-signing certificates for both platforms, with flawless one-double-click trust installers, and CI signing wired to the new signing secrets.

What this does

  • Windows: make-windows-cert.ps1 generates the cert + a self-elevating Install Tether certificate.cmd (certutil → Trusted Root + Trusted Publishers). Fully trusted once a PC runs it, or via GPO/Intune. CI signs the NSIS setup (WINDOWS_SIGNING_P12).
  • macOS: make-macos-cert.sh generates the cert + a Trust Tether.mobileconfig profile (double-click install, no Terminal). CI signs the apps (MACOS_SIGNING_P12).
  • Download page: a Mark-of-the-Web-free PowerShell install command next to the Windows Download button (SmartScreen never checks iwr/curl downloads), built in-browser from the relay origin.
  • macOS curl install (install-macos.sh): no quarantine, so Gatekeeper never prompts.
  • certs/ holds the public certs + both installers to publish on each relay under /download/.
  • docs/code-signing.md records the full plan and the exhausted research: no free CA/Apple-trusted cert exists for an individual; SignPath (Windows) and the Apple fee waiver (macOS) are the only free universal-trust routes.

Verification

  • Verified locally: both certs sign/round-trip; installers embed the matching cert; download-page command sets no Mark of the Web; release tests pass.
  • This PR's macOS CI run verifies codesign accepts the new cert (smoke-macos.sh fails if the designated requirement doesn't name the certificate).

Private keys are only in CI secrets + the gitignored secret/ dir — never in git.

…ndows + macOS)

Generate a free self-signed code-signing certificate per platform and make trusting it
flawless for users; CI signs both platforms when the signing secrets are present.

- scripts/make-windows-cert.ps1: generates the Windows cert (.pfx) and a self-elevating
  "Install Tether certificate.cmd" with the cert embedded (certutil, Root + TrustedPublisher).
- scripts/make-macos-cert.sh: generates the macOS cert (.p12) and a "Trust Tether.mobileconfig"
  profile (double-click install, no Terminal).
- scripts/trust-windows-cert.ps1 / trust-macos-cert.sh: scripted/fleet trust install from the
  published .cer (GPO/Intune or per-user).
- scripts/install-macos.sh: curl install that sets no quarantine, so Gatekeeper never prompts.
- desktop.yml: sign the NSIS setup with the self-signed cert (WINDOWS_SIGNING_P12), inert without
  the secret; optional SignPath Foundation step for CA trust once approved.
- Download page (release.rs): a Mark-of-the-Web-free PowerShell install command next to the
  Windows Download button, built in-browser from the relay origin; test added.
- certs/: the public certs and both double-click installers (publish to each relay /download/).
- docs/code-signing.md: the full free-signing plan and the exhausted research (no free CA/Apple-
  trusted cert exists for an individual; SignPath for Windows and the Apple fee waiver are the only
  universal-trust free routes). LICENSE, PRIVACY.md, CODE_SIGNING_POLICY.md prepared for SignPath.
- .gitignore: never track signing private keys (secret/, *.pfx, *.p12).
@fnpanic
fnpanic merged commit 1cfd00a into main Nov 9, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant