3 # add test roots using /usr/bin/security.
5 # first the system certs
7 security add
-root -s UnrestrictedSystemRoot.cer
|| exit(1)
8 security add
-root -s -p smime SMIME_SystemRoot.cer
|| exit(1)
9 security add
-root -s -p ssl SSL_SystemRoot.cer
|| exit(1)
10 security add
-root -s -a "/Applications/Utilities/Keychain Access.app" KeychainAccessSystemRoot.cer
|| exit(1)
12 # Now user certs - this will need UI
14 security add
-root UnrestrictedUserRoot.cer
|| exit(1)
15 security add
-root -p smime SMIME_UserRoot.cer
|| exit(1)
16 security add
-root -p ssl SSL_UserRoot.cer
|| exit(1)
17 security add
-root -a "/Applications/Utilities/Keychain Access.app" KeychainAccessUserRoot.cer
|| exit(1)
20 security dump
-roots -A