Search code examples
macoscode-signingcodesignnotarize

How do I verify that a macOS pkg is notarized


How do I verify that a macOS installer pkg file has been notarized? Is there a command-line tool to do this?


Solution

  • stapler validate will do this -

    $ stapler validate myfile.pkg 
    Processing: myfile.pkg
    The validate action worked!
    
    • If The validate action worked! is printed, the specified pkg file is notarized.

    • If does not have a ticket stapled to it. is printed, the specified pkg file is either not notarized, or the notarization was never followed up with the stapling step.