Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gatekeeper Warnings for DMG File on Mac #4636

Open
4 tasks done
cupppcakes opened this issue May 15, 2023 · 3 comments
Open
4 tasks done

Gatekeeper Warnings for DMG File on Mac #4636

cupppcakes opened this issue May 15, 2023 · 3 comments
Assignees
Labels

Comments

@cupppcakes
Copy link

Checklist

  • I'm reporting a problem with Chatterino
  • I've verified that I'm running the most recent nightly build or stable release
  • I've looked for my problem on the wiki
  • I've searched the issues and pull requests for similar looking reports

Describe your issue

I'm raising this issue in regards to the Chatterino DMG image on macOS (I know there are older discussions and information about the Gatekeeper warnings and signing the .app file, but I believe this is the first regarding the .dmg that houses it).

As of Chatterino 2.4.3, it looks like macOS builds are now code signed, however with a self-signed certificate rather than an Apple-issued one. Furthermore, the enclosing DMG image is also being signed with this certificate. This is causing macOS to trigger a Gatekeeper warning when trying to open the .dmg in the first place, and then a second when trying to launch the Chatterino app itself.

Both can be bypassed by right-clicking the files and choosing Open from the context-menu, however this is actually a step back compared to before 2.4.3, when only the app (and not the DMG) would trigger a warning.

According to the codesign CLI utility, it's signed by:

Authority=chatterino-self-signed-4
Authority=pajlada’s CA 3

I'm assuming the use of self-signed certs are intentional here. (If you did happen to have actual Developer ID certs then they're not being applied to the published builds.)

Screenshots

First Warning for Opening Chatterino.dmg (these were not shown prior to 2.4.3):
Screenshot 2023-05-15 at 06 57 30
Screenshot 2023-05-15 at 06 58 12

Second Warning For Opening chatterino.app after allowing DMG:
Screenshot 2023-05-15 at 06 58 36
Screenshot 2023-05-15 at 06 59 05

OS and Chatterino Version

Chatterino 2.4.4 (commit 29a1462) built with Qt 6.5.0 Running on macOS Ventura (13.3), kernel: 22.4.0

@cupppcakes cupppcakes added the issue-report An issue reported by a user. label May 15, 2023
@cupppcakes
Copy link
Author

Two ideas are:

  1. Is is possible to leave the outer DMG image unsigned, so at least that still opens without triggering a warning? This seems like the quickest fix to get the level of friction presented to the user back to pre-2.4.3 levels.
  2. Is it possible to obtain an Apple-issued signing certificate so Gatekeeper issues will no longer be a thing at all? This would be the ideal situation and would put Chatterino on the same footing as most other applications. I realize this costs money to apply for though (but I'm happy to help chip in some extra donations if it would make this possible).

@pajlada pajlada added OS: Mac and removed issue-report An issue reported by a user. labels May 15, 2023
@pajlada
Copy link
Member

pajlada commented May 15, 2023

You're right, I'm using a self-signed certificate in the packaging process.

  1. I can try not signing the dmg file for future releases, assuming that works that should be perfectly fine

  2. The plan is to get an Apple-issued signing certificate, but they don't accept my Swedish passport so I'm in a bit of a pickle right now - looking into alternatives

@pajlada pajlada self-assigned this May 15, 2023
@SputNikPlop
Copy link
Contributor

I took a look at this on my personal account and I was able to get it to not display the warnings, also have a company one which I think we could use to sign the app. This also would let us distribute the app via the app store.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants