security settings

Display Trust Settings.

   dump-trust-settings [-s] [-d]
          
   Options:
          -s         Display trusted system certs; default is user.
          -d         Display trusted admin certs; default is user.

Display or manipulate user-level Trust Settings.

   user-trust-settings-enable [-d] [-e]

           With no arguments, shows the current state of the user-level Trust Settings enable.
           Otherwise enables or disables user-level Trust Settings.

   Options:
          -d         Disable user-level Trust Settings.
          -e         Enable user-level Trust Settings.

Export Trust Settings to the specified file.

   trust-settings-export [-s] [-d] settings_file
          
   Options:
          -s         Export system Trust Settings; default is user.
          -d         Export admin Trust Settings; default is user.

Import Trust Settings from the specified file.

   trust-settings-import [-d] settings_file

          When modifying per-user Trust Settings, user authentication is required via
          an authentication dialog. When modifying admin Trust Settings, the process
          must be running as root, or admin authentication is required.
   Options:
          -d         Import admin Trust Settings; default is user.

“Security is mostly a superstition. It does not exist in nature, nor do the children of men as a whole experience it. Avoiding danger is no safer in the long run than outright exposure. Life is either a daring adventure, or nothing” ~ Helen Keller

Related macOS commands

Local man page: security - Command line help page on your local machine.
security - Administer Keychains, keys, certificates and the Security framework.


 
Copyright © 1999-2025 windevcluster.com
Some rights reserved