It is possible to use applesign outside the Apple ecosystem, but this requires
the rcodesign
tool to be installed:
$ cargo install apple-codesign
You can read more about rcodesign and certificates in:
$ rcodesign generate-self-signed-certificate --person-name pancake > a.pem
$ rcodesign analyze-certificate --pem-source a.pem
With this a.pem
file you can now sign a binary like this:
$ rcodesign sign --pem-source a.pem --code-signature-flags runtime /path/to/binary
Apple requires a csreq to be signed inside the binary. this is an evaluated expression that defines the conditions that must