Install Trusted Root Certificate

4 lines
KEYCHAIN_SYSTEM_PATH="/Library/Keychains/System.keychain"
KEYCHAIN_LOGIN_PATH="~/Library/Keychains/login.keychain"

sudo security add-trusted-cert -d -r trustRoot -k $KEYCHAIN_PATH $CERT_PATH

From https://apple.stackexchange.com/a/80625