Import certificates into the System Keychain via the command line
To import a trusted certificate use the terminal command
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain &lt;certificate&gt;

This will add a trusted certificate to the System.keychain. You should modify the options and paths to suit your situation. See the man page for security for more information.
↬ Rich Trouton, Adding new trusted root certificates to System.keychain