3 ms·
I seriously can't overstate how easy it is to sign a binary. You don't need an Apple Developer account, or an internet connection, or anything other than macOS
by Wowfunhappy 6y ago
I seriously can't overstate how easy it is to sign a binary. You don't need an Apple Developer account, or an internet connection, or anything other than macOS and a working development environment. Just go into the Terminal and type:
> codesign -f -s - [path to binary]
Unless something has changed on Apple Silicon, that's it, you're done, the binary has a signature. It does not have a trusted signature, but you don't need one. I think it was just simpler to write the OS assuming all executables would have a signature.
- canarypilot 6y agoDo you know whether this applies to everything which executes? If my build scripts create a build script and run it I guess that will be ok, but if my build scripts build a specialised parser (say, from C source) I need to add a step after linking to code sign the generated parser binary before using it? Is that about right?
- saagarjha 6y agoSigning is only required for native code. If your parser is a native binary, it needs at least an ad-hoc signature on it before it will run.
- IshKebab 6y agoThat's definitely going to be fun to integrate into build systems.
- letitbeirie 6y ago> but you don't need one Yet. Until this you didn't need a signature at all.