]> git.saurik.com Git - apple/security.git/blob - SecurityTests/clxutils/rootStoreTool/addTestRootsSec
Security-57336.1.9.tar.gz
[apple/security.git] / SecurityTests / clxutils / rootStoreTool / addTestRootsSec
1 #! /bin/csh -f
2 #
3 # add test roots using /usr/bin/security.
4 #
5 # first the system certs
6 #
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)
11 #
12 # Now user certs - this will need UI
13 #
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)
18 #
19 echo ...complete.
20 security dump-roots -A
21