Skip to content

Instantly share code, notes, and snippets.

@iharkatkavets
Last active March 24, 2017 12:07
Show Gist options
  • Save iharkatkavets/592e24d2a58260005449d4e323e351ac to your computer and use it in GitHub Desktop.
Save iharkatkavets/592e24d2a58260005449d4e323e351ac to your computer and use it in GitHub Desktop.
// get a glance at the identities ("SHA1" "Name")
$ security find-identity -v -p codesigning
// get information about the code signing status
$ codesign -vv -d Payload/Example.app
// entitlements embedded in binary
$ codesign -d --entitlements - Payload/Example.app/
// verify provision profile
$ openssl smime -in PROFILE.mobileprovision -inform der -verify
// Find a certificate item and print SHA-1 hash of the certificate
$ security find-certificate -a -c 'NAME_OF_THE_CERTIFICATE' -Z login.keychain
// Check a PKCS#12 file (.pfx or .p12)
$ openssl pkcs12 -info -in CERTIFICATE.p12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment