4 ms·
An open-source implementation of Apple code signing and notarization (2022)
- bengarney 3y agoThe code signing process has sucked and always been deeply cryptic, even on macOS - getting something usable and improvable that's cross platform is a fantastic win.
- deleted 3y ago[deleted]
- notamy 3y ago(2022)
- swolpatrol 3y agothis is great. I remember having to write a build system that fulfills Apple's shitty requirements for signing on their service, and it sucked hard.
- riedel 3y agoOriginal discussion: https://news.ycombinator.com/item?id=32386762 https://news.ycombinator.com/item?id=32386762
- dang 3y agoThanks! Macroexpanded: Achieving an open-source implementation of Apple Code Signing and notarization - https://news.ycombinator.com/item?id=32386762 https://news.ycombinator.com/item?id=32386762 - Aug 2022 (51 comments)
- jraph 3y agoOff topic but I've seen you mention "Macroexpanded" a lot of times, is it something regular users can do, and how?
- codetrotter 3y agoFrom one I’ve understood, that’s referring to Lisp code that runs as dang and automatically makes this sort of reply where it takes links to stories that people comment, and it replies with title of story, month and year it was posted and number of comments. Only dang can do that sort of thing. Not us mere mortals.
- freedomben 3y agoI've wondered too if it was automatic or something dang runs (or triggers) manually. It seems like it only runs on a small percentage of them, usually the more popular stories, so I tend to think it requires some manual intervention on his end.
- deleted 3y ago[deleted]
- walterbell 3y ago> Not us mere mortals. A javascript bookmarklet could likely extract that text for clipboard copy.
- codetrotter 3y agoI mean specifically the ability to run Lisp code server side on HN
- KingLancelot 3y ago[dead]
- masterphi 3y agoThis tool works great! (I've only used it for signing and notarizing MacOS apps) For anyone looking for the newest release: https://github.com/indygreg/apple-platform-rs/releases https://github.com/indygreg/apple-platform-rs/releases
- xyst 3y agoHow does signing work here? You submit a certificate to Apple which validates who you or organization. Then with your “signed” app, end users can see its source come from you or organization.
- bebop 3y agoBasically. The first part is creating a certificate request for a developer certificate, then apple creates a signing certificate for you. Then each executable part of your distribution needs to be signed with that signing certificate. The second part is the notarization. This is where you upload a .zip, .pkg, or .dmg to apple and they build a hash of your distribution and serve that to folks through gatekeeper. You can also staple the notarization to the package and then you don’t need to talk to the apple servers. This way apple can revoke your notarization and users will get warnings about your software being maleware.
- flohofwoe 3y agoTitle is a bit confusing in that this doesn't seem to be a open source implementation of the actual notarization process. It's "just" a tool which talks to Apple servers to handle the notarization (if I'm reading this right: https://github.com/marketplace/actions/apple-code-signing https://github.com/marketplace/actions/apple-code-signing). I guess the main advantage over Apple's tool is that it also runs on Linux and Windows.
- craigching 3y agoWe have an enhancement opened with Apple to have a way to delete .cstemp files if the tool runs into them. You'd think we could just add a `find . -name '*.cstemp' -exec rm {} \;` to our build toolchains before building, but we're in a large mono-repo and that would add a lot of time to our builds. Having something like a `--force` to delete the .cstemp files instead of quitting and reporting an error would make us change to this tool pretty quickly I'd think.
- sxldier 3y agoHave you tried doing `find . -name '*.cstemp' -exec rm {} +`? This provides as many arguments (filenames) as possible to the executed command (rm) rather than the `\;` which executes the command per file. This provides a massive speed improvement.