Skip to content

Instantly share code, notes, and snippets.

@startergo
Forked from carlashley/codesign.example
Created January 14, 2021 14:23
Show Gist options
  • Save startergo/897b4c1ee7a57a3768d70ad2f146d0df to your computer and use it in GitHub Desktop.
Save startergo/897b4c1ee7a57a3768d70ad2f146d0df 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