Native Artifact Signing and Release

Signing application binaries for Windows, macOS, and Linux: Authenticode and timestamping, hardware-backed keys after the 2023 CA/Browser Forum rules, codesign and notarization, and doing all of it in CI without a private key ever touching a build agent.

Overview

The difference between installing and not installing

Every desktop and embedded product hits this: the build works, tests pass, then SmartScreen warns users away from the installer, macOS refuses to open the app, or an enterprise customer demands the signing chain before deploying. On native software, signing is not a nicety; it decides whether the product installs.

The path is short to describe. A build agent produces an unsigned artifact, a signing service signs it with a key held in an HSM or a cloud KMS under policy and audit, and the signed artifact ships. The user's operating system then verifies it before the code runs. The rest of this chapter is about why each link is shaped the way it is.

Key concepts

  • Authenticode
  • RFC 3161 timestamping
  • Hardware key storage requirement
  • EV versus OV
  • Hardened Runtime
  • Notarization and stapling
  • Digest signing
  • Reproducible build

Interview questions

  • Walk through signing a Windows application end to end in CI, without the private key ever reaching a build agent.
  • Explain the full macOS chain: signing, Hardened Runtime, notarization, and stapling. What breaks at each stage?
  • Design a signing architecture for CI where no build agent can be trusted with a key. What does it enforce, and what does it log?
  • Why do reproducible builds make signatures meaningful, and how do SBOMs and embedded version metadata fit in?
  • How does Linux package signing differ, and why is there no Gatekeeper equivalent?

Sign up free to read the full topic

More DevOps topics

Start free on Cariara · Coding problems · System design studio