Skip to content

Instantly share code, notes, and snippets.

@chance909
Last active July 3, 2024 18:49
Show Gist options
  • Save chance909/d23ad8d64a7ce0274a44c394cbbc6b02 to your computer and use it in GitHub Desktop.
Save chance909/d23ad8d64a7ce0274a44c394cbbc6b02 to your computer and use it in GitHub Desktop.
//Tutorial https://www.objc.io/issues/17-security/inside-code-signing/
//Print which signing certificates are on computer
security find-identity -v -p codesigning
//Print what was used to codesign an app
codesign -vv -d Example.app
//Print what entitlements are enabled for app
codesign -d --entitlements - Example.app
//Since Xcode 6, the entitlements list you specify is also embedded in the app bundle as Example.app.xcent
//Decode a provisioning profile into a human readable plist
security cms -D -i example.mobileprovision
//View info on attached devie
ideviceinfo
//Show trusted devices
idevicepair list
//Location of trust lockdown files - can cause lockdown_d error -21 if you dont have correct permissions on the folder
/var/db/lockdown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment