// 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