Do a codesign --verify before running spctl
authorJocelyn Turcotte <jturcotte@woboq.com>
Fri, 22 Jan 2016 15:54:04 +0000 (16:54 +0100)
committerJocelyn Turcotte <jturcotte@woboq.com>
Fri, 22 Jan 2016 15:54:04 +0000 (16:54 +0100)
codesign is less strict than spctl and gives more output.
codesign -d alone doesn't verify but only prints.

admin/osx/sign_app.sh

index b60ec6176f56f16c8563de697063f395d2d5fa1d..e495fe105308f9e915aabaf91620d6c8127ec711 100755 (executable)
@@ -9,8 +9,9 @@ team_identifier="$3"
 codesign -s "$identity" --force --preserve-metadata=entitlements --verbose=4 --deep "$src_app"
 
 # Verify the signature
-spctl -a -t exec -vv $src_app
 codesign -dv $src_app
+codesign --verify -v $src_app
+spctl -a -t exec -vv $src_app
 
 # Validate that the key used for signing the binary matches the expected TeamIdentifier
 # needed to pass the SocketApi through the sandbox