Trust settings via the “security” command
I am making a package to to add some certificates to the X509Anchors keychain, and would like to automatically set them to "Always Trust".
Is there a way to set the trust settings for a certificate via the command line?
The security command seems to only handle importing the cert into the keychain, but does not allow you to set the trust levels.
I am using the following command:
security add-trusted-cert -d -k "$3"/System/Library/Keychains/X509Anchors "$3"/private/tmp/JHUAPL_Certs/JHUAPLCert.cer
That command adds the cert, but it is set to "Never Trust".
The man page touches on trust settings a bit, but I can't seem make it work.