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]

Posted on Oct 16, 2024 1:23 PM

Reply

There are no replies.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Trusting certificates in macOS Sequoia without user interaction

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.