Trusting certificates in macOS Sequoia without user interaction
I am attempting to trust a certificate in MacOS Sequoia without user interaction. Previously this could be accomplished by executing three commands:
security authorizationdb write com.apple.trust-settings.admin allow
security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain <CertFile>
security authorizationdb remove com.apple.trust-settings.admin
Now, the initial line never works, it simply produces an error code of
NO (-60005)
Which appears to be permissions based
[Re-Titled by Moderator]