Tell me more ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Get Info on an .App does not produce the signature information. On windows for instance, right-click/properties will expose who signed the file.

How do I get that info on Mac for a given .app?

share|improve this question
What happens if you look in Contents/_CodeSignature ?? – GEdgar Feb 18 at 18:47

1 Answer

up vote 1 down vote accepted

OS X doesn't have anything built in for this. If you downed Xcode and install the command line tools, you can check a file by issuing the following command in Terminal:

 codesign -dv /Applications/Whatever.app

There is a free tool that implements the functions of the codesign command and extends it with a nice GUI. It's called RB App Checker (on the App Store) as well as a site describing the program http://brockerhoff.net/RB/AppCheckerLite/

I've not needed anything but these two tools for checking code signing on OS X so hopefully they fit your needs. Do check out the AppChecker first unless you have a burning desire to dig into Xcode and use a somewhat arcane command line tool to check code signatures.

As to how you would know, the OS will show untrusted apps as dim and with a generic icon until the gatekeeper process approves a bundle to run - but that code could still be signed so you can't rely on a visual clue to necessarily tell if some code has or has not been signed - especially considering that gatekeeper could be disabled on a given Mac.

share|improve this answer
1  
-dvvv adds rows for the certificate authorities, hash type, and literal hash. -dv (or -dvvv) doesn't actually show if the signature is valid or invalid. -v shows if the signature is valid, and if it is not, -vv also prints modified files. – Lauri Ranta Feb 18 at 19:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.