Hi guys,
is there a way of checking if app is notarized from app audit token or SecCode/SecStaticCode. In a firewall app I need to check if app is notarized.
I'm able to detect if app comes from Apple or other developer, source of the app - macOS System, App Store, Developer, but I need to quickly check if app that comes from Developer is Notarized - it shouldn't take more than a few milliseconds, ideally less than 1ms.
From terminal I tried spctl to see if app is Notatized, but that takes 5 - 7 seconds to get the result.
Is there any interface in SystemSecurity or other framework get this info?
Thanks.
is there a way of checking if app is notarized from app audit token or SecCode/SecStaticCode. In a firewall app I need to check if app is notarized.
I'm able to detect if app comes from Apple or other developer, source of the app - macOS System, App Store, Developer, but I need to quickly check if app that comes from Developer is Notarized - it shouldn't take more than a few milliseconds, ideally less than 1ms.
From terminal I tried spctl to see if app is Notatized, but that takes 5 - 7 seconds to get the result.
Is there any interface in SystemSecurity or other framework get this info?
Thanks.