Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save startergo/38a569c459b42b606a0fe7b2041465c8 to your computer and use it in GitHub Desktop.
Save startergo/38a569c459b42b606a0fe7b2041465c8 to your computer and use it in GitHub Desktop.
How to Show & Verify Code Signatures for Apps in Mac OS X
How to Show & Verify Code Signatures for Apps in Mac OS X
@startergo
Copy link
Author

startergo commented Jan 3, 2021

  • The basic syntax is as follows:
codesign -dv --verbose=4 /Path/To/Application.app

Example:

codesign -dv --verbose=4 /Library/Extensions/DirectHW.kext

Executable=/Library/Extensions/DirectHW.kext/Contents/MacOS/DirectHW
Identifier=com.mysystems.driver.DirectHW
Format=bundle with Mach-O thin (x86_64)
CodeDirectory v=20100 size=654 flags=0x2(adhoc) hashes=13+5 location=embedded
Hash type=sha256 size=32
CandidateCDHash sha1=98e9ff085fc19d7c86f195ab3d4003141ddc16df
CandidateCDHashFull sha1=98e9ff085fc19d7c86f195ab3d4003141ddc16df
CandidateCDHash sha256=b9032a07ff88173ac2abd8bdd34bf5c58cb46483
CandidateCDHashFull sha256=b9032a07ff88173ac2abd8bdd34bf5c58cb46483f06d3fe06d93f6a8974911ad
Hash choices=sha1,sha256
CMSDigest=cb31d3daf9031566a41fba723a5acb611f7eecd2ec2ea43e3c6ebb81833f0864
CMSDigestType=2
Page size=4096
CDHash=b9032a07ff88173ac2abd8bdd34bf5c58cb46483
Signature=adhoc
Info.plist entries=21
TeamIdentifier=not set
Sealed Resources version=2 rules=13 files=0
Internal requirements count=0 size=12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment