Skip to content

Commit

Permalink
use leaf[subject.O] instead of leaf[subject.CN] when checking codesign
Browse files Browse the repository at this point in the history
unfortunately Apple changed cert's common name under us
  • Loading branch information
darwin committed Jun 30, 2017
1 parent 34fc24b commit 422dc57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TotalFinderInjector.mm
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ EXPORT OSErr HandleInitEvent(const AppleEvent* __unused ev, AppleEvent* reply, l
#else
NSURL* totalFinderBundleURL = [NSURL fileURLWithPath:totalFinderBundlePath];
static CFStringRef injectorRequirement = CFSTR(
"anchor apple generic and identifier com.binaryage.totalfinder and certificate leaf[subject.CN] = \"Developer ID Application: BinaryAge Limited\"");
"anchor apple generic and identifier com.binaryage.totalfinder and certificate leaf[subject.O] = \"BinaryAge Limited\"");
NSString* signatureError = checkSignature((__bridge CFURLRef)totalFinderBundleURL, injectorRequirement);
if (signatureError) {
displayCorruptionNotificationIfNeeded();
Expand Down

0 comments on commit 422dc57

Please sign in to comment.