Skip to content

signing and notarizing CLI binaries on MacOS

homepage-banner

Prerequisites

  • Apple Developer account (https://developer.apple.com)
  • Xcode installed
  • Developer Team ID
  • zip binary file (or dmg/app format)

Prepare

login Apple Account in Xcode

security find-identity -v

xcrun notarytool store-credentials

Sign and submit your binary

codesign -s XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -o runtime -v YOUR_BIN.zip

xcrun notarytool submit --keychain-profile "myTool" YOUR_BIN.zip

Verify

xcrun notarytool history --keychain-profile "myTool"
Feedback







Disclaimer
  • Welcome to visit the knowledge base of SRE and DevOps!
  • License under CC BY-NC 4.0
  • Made with Material for MkDocs and improve writing by generative AI tools
  • Copyright issue feedback me#imzye.com, replace # with @