News for hackers. Stuff that matters.
Re:Distributing Mac apps outside the App Store, a quick star... by mesh on Wednesday January 13, 2021 @01:03AM (#25758752)
I dont mind Apple putting more restrictions around signing, but they make it SO onerous for Desktop users to explicitly allow unsigned apps.

Tell me its unsigned and the dangers, but then give me the option to run it. Stop treating me like some dolt.

Right now, you have to really jump through hoops:

https://github.com/mikechambers/dcli/wiki/Running-dcli-tools...

(this is for a open source project I run)

Re:Distributing Mac apps outside the App Store, a quick star... by millstone on Wednesday January 13, 2021 @02:00AM (#25759080)
Completely agree, especially because a signing key is $100 a year. Feels like the church selling indulgences.

That said, it's not quite as bad as your link. The secret is to right click or control click on the app, and choose Open. The warning dialog will have an Open button to bypass the Security pref pane. (Though maybe that doesn't work for you since you're making a CLI tool?)

Re:Distributing Mac apps outside the App Store, a quick star... by ziaddotcom on Wednesday January 13, 2021 @02:11AM (#25759134)
I disagree, I don't really want the signing key to be $0.99 and someone just making 100+ developer accounts that can't be tracked with some leaked list of SSNs or similar. That would negate the whole point of the signing key for the end user almost entirely.
Re:Distributing Mac apps outside the App Store, a quick star... by _underfl0w_ on Wednesday January 13, 2021 @10:35AM (#25763253)
What you're seeking is proper identity verification, not necessarily a tariff or upfront cost to even do business.
Re:Distributing Mac apps outside the App Store, a quick star... by ziaddotcom on Wednesday January 13, 2021 @11:38AM (#25764376)
Is proper identify verification something that Apple can do at a marginal cost significantly lower than $100?

I agree that the $100 fee in no way guarantees proper identity verification has been done. I also see plenty of other unnecessary barriers the fee creates, I just don't know what an obvious alternative would be.

Re:Distributing Mac apps outside the App Store, a quick star... by cute_boi on Wednesday January 13, 2021 @12:56PM (#25765608)
$100 per year for distributing opensource app is way too much. $100 may be low in your country but its half salary for month in our country.
Re:Distributing Mac apps outside the App Store, a quick star... by _qulr on Wednesday January 13, 2021 @09:51AM (#25762634)
The $100 fee is no barrier at all to professional criminals. Whereas it's a huge barrier for open source developers.
Re:Distributing Mac apps outside the App Store, a quick star... by ziaddotcom on Wednesday January 13, 2021 @11:42AM (#25764446)
Maybe a fee waiver for oss with certain licenses and dev accounts for .edu addresses with a couple other ID requirements would be a good start.
Re:Distributing Mac apps outside the App Store, a quick star... by ogre_codes on Wednesday January 13, 2021 @01:18AM (#25758842)
I'm not sure why, but I don't see many of these prompts myself. You can disable Gatekeeper.

  sudo spctl --master-disable
That should get rid of the prompts.
Re:Distributing Mac apps outside the App Store, a quick star... by asiando on Wednesday January 13, 2021 @04:19AM (#25759861)
I’d rather not. After the initial setup I don’t see that many annoying prompts either, I’d rather not disable security measures when they’re really not that painful.
Re:Distributing Mac apps outside the App Store, a quick star... by ogre_codes on Wednesday January 13, 2021 @11:35AM (#25764310)
I don't have it disabled myself. But if it's a burden, the option is there.
Re:Distributing Mac apps outside the App Store, a quick star... by vbezhenar on Wednesday January 13, 2021 @02:10AM (#25759131)
It used to be option+click, then "Open". They removed that approach?
Re:Distributing Mac apps outside the App Store, a quick star... by zapzupnz on Wednesday January 13, 2021 @02:28AM (#25759239)
That still works.
Re:Distributing Mac apps outside the App Store, a quick star... by novok on Wednesday January 13, 2021 @03:12PM (#25767341)
you need to open twice, first time will never show it.
Re:Distributing Mac apps outside the App Store, a quick star... by JosephRedfern on Wednesday January 13, 2021 @06:39AM (#25760832)
Sometimes, rather than giving me a "friendly" warning that the app is unsigned, I get and exception with a stack trace, with:

    Termination Reason:    Namespace CODESIGNING, Code 0x1

I can (re)sign the application with:

    codesign --force --deep --sign - /path/to/The.app
which often resolves the issue.

but what's the difference between the error that causes the friendly warning, and the error that cases the stack trace/exception? Is this the difference between a lack of code signature and a failed check?

Re:Distributing Mac apps outside the App Store, a quick star... by sovande on Wednesday January 13, 2021 @06:45PM (#25769638)
It’s a failed code sign of some sort. E.g. and typically, the developer used an installer cert for an app.
Re:Distributing Mac apps outside the App Store, a quick star... by fartcannon on Wednesday January 13, 2021 @08:46AM (#25761873)
The point isn't to imply you're a dolt, but to slowly convince you to use the App store for the percentage they make.
Re:Distributing Mac apps outside the App Store, a quick star... by GeekyBear on Wednesday January 13, 2021 @01:26AM (#25758878)
> they make it SO onerous for Desktop users to explicitly allow unsigned apps

Not really onerous. However, you do have to use a terminal command to turn off Gatekeeper.

https://www.imore.com/how-open-apps-anywhere-macos-catalina-...

Re:Distributing Mac apps outside the App Store, a quick star... by webmobdev on Wednesday January 13, 2021 @01:58AM (#25759066)
He means from the perspective of an app developer - it is hard to educate users when Apple's deliberate UI scares the user. Asking some some of them to disable Gatekeeper can also backfire with ignorant users, because it is a security measure against malware spread and execution (once malware is identified).
Re:Distributing Mac apps outside the App Store, a quick star... by GeekyBear on Wednesday January 13, 2021 @02:10AM (#25759133)
From the app developer's perspective, you can hardly spin a terminal command as any more onerous than a registry edit on Windows.

Windows 10 SmartScreen is just as deliberate and just as scary.

Re:Distributing Mac apps outside the App Store, a quick star... by shawnz on Wednesday January 13, 2021 @10:07AM (#25762833)
You don't need to pay anything or sign up for any app store to be approved by SmartScreen, and even if you are not approved there is a "Run anyway" button right there in the dialog.
Re:Distributing Mac apps outside the App Store, a quick star... by GeekyBear on Wednesday January 13, 2021 @01:31PM (#25766118)
You absolutely have to pay for an extended validation code signing certificate for Windows 10 Smartscreen to allow your installer to run.
Re:Distributing Mac apps outside the App Store, a quick star... by shawnz on Wednesday January 13, 2021 @01:57PM (#25766436)
That's not true. Binaries can acquire a positive reputation by being commonly downloaded. However paying for an EV certificate (or getting windows logo certification) is the only way to bypass the warning with no reputation.
Re:Distributing Mac apps outside the App Store, a quick star... by GeekyBear on Wednesday January 13, 2021 @02:42PM (#25767004)
What new developer already has a reputation score?

You absolutely have to pay for an extended validation code signing certificate, or your installer will be blocked by default.

Third parties charge more for that code signing certificate than Apple does for a developer account.

Re:Distributing Mac apps outside the App Store, a quick star... by shawnz on Wednesday January 13, 2021 @03:14PM (#25767370)
No new developer already has a reputation score. Why should they? Is there something unfair about warning users that uncommonly downloaded software is more likely to contain malware?

If anything, the problem is that even software with an EV certificate should be subject to the warning (like how SmartScreen worked in the past).

Re:Distributing Mac apps outside the App Store, a quick star... by GeekyBear on Wednesday January 13, 2021 @04:40PM (#25768318)
The entire point of Gatekeeper and SmartScreen is to only warn users about unsigned software that could install a trojan horse.

If you check to see if the developer's signing certificate has been revoked before running their software, you can be reasonably sure that doing so is safe.

Apple's developer program is cheaper than the extended validation code signing certificate you need to develop and sign software use on Windows without running into a block from SmartScreen.

Re:Distributing Mac apps outside the App Store, a quick star... by shawnz on Wednesday January 13, 2021 @05:06PM (#25768584)
No, that might be the point of Gatekeeper but the point of SmartScreen is to warn you when you are running uncommonly downloaded software. You might be right that it is cheaper to buy a guaranteed exception for Gatekeeper than it is to buy a guaranteed exception for SmartScreen though, but I don't think that is relevant when you don't really need an exception for SmartScreen at all.
Re:Distributing Mac apps outside the App Store, a quick star... by GeekyBear on Wednesday January 13, 2021 @05:44PM (#25769026)
No, stopping uncommonly downloaded software from running is Microsoft's way to force new developers to use their app store, since software distributed from there is exempt from that limitation.

Apple's developer program is not only cheaper, it allows for functional code signing that completely sidesteps their app store.

Re:Distributing Mac apps outside the App Store, a quick star... by shawnz on Wednesday January 13, 2021 @06:33PM (#25769513)
SmartScreen existed prior to Microsoft's app store though.

I am not sure what you mean regarding your point about sidestepping Apple's app store. Code signing can obviously be done on either platform without any app stores.

Re:Distributing Mac apps outside the App Store, a quick star... by GeekyBear on Wednesday January 13, 2021 @07:29PM (#25770073)
No, SmartScreen blocks software that doesn't have a high enough "reputation score" even if it is signed. The only way around that particular restriction is to distribute your app through Microsoft's app store.

Gatekeeper has no such caveat.

Re:Distributing Mac apps outside the App Store, a quick star... by JosephRedfern on Wednesday January 13, 2021 @06:40AM (#25760842)
"Everyday" users shouldn't have to edit the registry in order to install an app, either. Being no worse than Windows doesn't make it good.
Re:Distributing Mac apps outside the App Store, a quick star... by shawnz on Wednesday January 13, 2021 @10:00AM (#25762755)
Turning off gatekeeper disables the protections for all apps, not a specific app of the user's choosing. That is not what the other poster was asking for