apple-platform-rs icon indicating copy to clipboard operation
apple-platform-rs copied to clipboard

rcodesign should error if no private key pem file is specified

Open amgdev9 opened this issue 1 year ago • 1 comments

If I do rcodesign sign --pem-file cert.pem MyApp.app, being cert.pem a regular certificate pem file, the tool should print an error indicating that no private key has been specified. Right now it just goes on and leaves the app executable partially unsigned.

amgdev9 avatar Jan 02 '25 19:01 amgdev9

I think that providing a public certificate without its signing key should be a fatal error. Thanks for filing the issue!

indygreg avatar Jan 02 '25 19:01 indygreg