How to sign executable for sandbox

Issue #401

Find identity

1
security find-identity

Sign with entitlements and identity. For macOS, use 3rd Party Mac Developer Application

1
codesign -f -s "3rd Party Mac Developer Application: Khoa Pham (123DK123F2)" --entitlements "MyApp.entitlements" "tool/mytool"

To enable harden runtime

1
codesign --verbose --force --deep -o runtime --sign

Comments