Skip to content

Instantly share code, notes, and snippets.

@xhruso00
Last active October 21, 2017 20:08
Show Gist options
  • Save xhruso00/9454337 to your computer and use it in GitHub Desktop.
Save xhruso00/9454337 to your computer and use it in GitHub Desktop.
#Watch symlinks (ls -al)
codesign --verbose=4 --deep --strict Mail.app/
--prepared:/Applications/Mail.app/Contents/PlugIns/MailWebPlugIn.webplugin
--validated:/Applications/Mail.app/Contents/PlugIns/MailWebPlugIn.webplugin
Mail.app/: valid on disk
Mail.app/: satisfies its Designated Requirement
#http://furbo.org/2015/07/23/code-signing-in-el-capitan/
codesign --verbose=4 --deep --strict xScope.app
--prepared:/Users/craig/Downloads/xScope.app/Contents/Frameworks/Sparkle.framework/Versions/Current/.
xScope.app: unknown error -67003=fffffffffffefa45
In subcomponent: /Users/craig/Downloads/xScope.app/Contents/Frameworks/Sparkle.framework
file modified: …/Sparkle.framework/Versions/Current/Resources/fr.lproj/fr.lproj
file modified: …/Sparkle.framework/Versions/Current/Resources/fr_CA.lproj
spctl -a -v --raw x.app
x.app: rejected
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>assessment:authority</key>
<dict>
<key>assessment:authority:source</key>
<string>obsolete resource envelope</string>
<key>assessment:authority:weak</key>
<true/>
</dict>
<key>assessment:cserror</key>
<integer>-67003</integer>
<key>assessment:remote</key>
<true/>
<key>assessment:verdict</key>
<false/>
</dict>
</plist>
spctl -a -v --raw Mail.app
Mail.app: accepted
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>assessment:authority</key>
<dict>
<key>assessment:authority:row</key>
<integer>3</integer>
<key>assessment:authority:source</key>
<string>Apple System</string>
</dict>
<key>assessment:remote</key>
<true/>
<key>assessment:verdict</key>
<true/>
</dict>
</plist>
spctl -a --verbose=4 --type execute x.app/
x.app/: accepted
source=Developer ID
spctl -a --verbose=4 /Applications/Mail.app
/Applications/Mail.app: accepted
source=Apple System
spctl -a --verbose=4 y.app
y.app/: accepted
source=Mac App Store
codesign --display --verbose=4 x.app
Executable=x.app
Identifier=com.hrubasko.x
Format=bundle with Mach-O thin (x86_64)
CodeDirectory v=20100 size=7378 flags=0x200(kill) hashes=360+5 location=embedded
Hash type=sha1 size=20
CDHash=f95c398920dc9aa771b7447926c3cdb8810a1ef8
Signature size=4169
Authority=Apple Mac OS Application Signing
Authority=Apple Worldwide Developer Relations Certification Authority
Authority=Apple Root CA
Info.plist entries=27
Sealed Resources rules=5 files=26
Internal requirements count=1 size=232
codesign --display --entitlements - x.app
Executable=x.app
??qq]<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.application-identifier</key>
<string>BXQ2LHBD6T.com.hrubasko.Tiny-QR-Contacts</string>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.assets.pictures.read-write</key>
<true/>
<key>com.apple.security.files.downloads.read-write</key>
<true/>
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.personal-information.addressbook</key>
<true/>
<key>com.apple.security.print</key>
<true/>
<key>com.apple.security.temporary-exception.apple-events</key>
<array>
<string>com.apple.systempreferences</string>
</array>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment