Code signing

security(1) - dump keychains
codesign(1) - create/manipulate code signatures
csreq(1)

code signing is optional in macOS
unsigned code is killed by the kernel in iOS