indygreg / apple-platform-rs

Rust crates supporting Apple platform development
588 stars 49 forks source link

rcodesign verify file.sh fails with Invalid magic number: 0x23212f62 #86

Closed dsehrawa closed 12 months ago

dsehrawa commented 1 year ago

rcodesign verify file.sh

fails with on MacOS:-

Mach-O parse failure: binary parsing error: Invalid magic number: 0x23212f62 Error: problems reported during verification

The apple codesign -dvvv file.sh shows the certificate correctly

indygreg commented 12 months ago

The verify command currently assumes the path is a Mach-O binary. The verification code hasn't been touched since we added support for bundles and other signable entity types.

indygreg commented 12 months ago

I believe this was fixed in 187aedd9798351fca3d4926998167a902fcc64e0. If there's a missing feature you are requesting, please file a new issue.