Skip to content

Instantly share code, notes, and snippets.

@carlashley
Last active March 25, 2022 20:41
Show Gist options
  • Save carlashley/4451c731546b5de3215c6279c2f39dd8 to your computer and use it in GitHub Desktop.
Save carlashley/4451c731546b5de3215c6279c2f39dd8 to your computer and use it in GitHub Desktop.
Code Signing Scripts on macOS
#Find valid code signing certificates with:
#/usr/bin/security find-identity -p codesigning -v
#Eg:
#[carl@pegasus]:outset # security find-identity -p codesigning -v
# 1) A898234JHSDFH38WERKHJSDFLJ2UY4092367HJK9H4J18 "Mac Developer: foo@example.org (ABC01FFFGH)"
# 1 valid identities found
#Code Sign file with:
#/usr/bin/codesign -s "Mac Developer: foo@example.org (ABC01FFFGH)" -i <bundleID> <file>
Eg:
/usr/bin/codesign -s "Mac Developer: foo@example.org (ABC01FFFGH)" -i com.github.tccprofile tccprofile.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment