]> git.saurik.com Git - apple/security.git/blob - SecurityTests/clxutils/rootStoreTool/addTestRoots
Security-57031.1.35.tar.gz
[apple/security.git] / SecurityTests / clxutils / rootStoreTool / addTestRoots
1 #! /bin/csh -f
2 #
3 # add test roots using rootStoreTool.
4 #
5 # first the system certs
6 #
7 rootStoreTool a -c UnrestrictedSystemRoot.cer -s || exit(1)
8 rootStoreTool a -c SMIME_SystemRoot.cer -s -p smime || exit(1)
9 rootStoreTool a -c SSL_SystemRoot.cer -s -p ssl || exit(1)
10 rootStoreTool a -c KeychainAccessSystemRoot.cer -s -a "/Applications/Utilities/Keychain Access.app" || exit(1)
11 #
12 # Now user certs - this will need UI
13 #
14 rootStoreTool a -c UnrestrictedUserRoot.cer || exit(1)
15 rootStoreTool a -c SMIME_UserRoot.cer -p smime || exit(1)
16 rootStoreTool a -c SSL_UserRoot.cer -p ssl || exit(1)
17 rootStoreTool a -c KeychainAccessUserRoot.cer -a "/Applications/Utilities/Keychain Access.app" || exit(1)
18 #
19 echo ...complete.
20 rootStoreTool r -A
21