News for hackers. Stuff that matters.
Re:Achieving an open-source implementation of Apple Code Sig... by infotogivenm on Monday August 08, 2022 @02:48PM (#32389384)
I’ve always used gon ( https://github.com/mitchellh/gon ) for this, which is open source golang, but I don’t think it supports mach-o embedding. I’ll have to try this tool out.
Re:Achieving an open-source implementation of Apple Code Sig... by indygreg2 on Monday August 08, 2022 @09:21PM (#32393145)
Note that gon is a glorified front-end for executing processes like `codesign`, `altool`, and even `ditto` for zip file generation.

This Rust implementation, by contrast, has all the functionality implemented in pure Rust: there is no calling out to external processes for anything. You could drop the statically linked `rcodesign` executable into a Linux container with no other files and it would work.

That's not to discredit gon or its authors: it is a fantastic tool for streamlining common functionality. But the mechanism is completely different.

Re:Achieving an open-source implementation of Apple Code Sig... by infotogivenm on Tuesday August 09, 2022 @10:26PM (#32407243)
Never knew it wrapped shell commands - good to know!