]>
git.saurik.com Git - apple/security.git/blob - SecurityTests/clxutils/certcrl/testSubjects/trustSettings/makeTrustSettings
3 # Build trust settings needed for the test script trustSettings.scr.
4 # The result is placed in userTrustSettings.plist in the build directory.
6 if ( $#argv != 0 ) then
7 echo "Usage: makeTrustSettings"
11 set BUILD_DIR
=$LOCAL_BUILD_DIR
12 set TRUST_SETTINGS
=userTrustSettings.plist
13 set TRUST_SETTINGS_PATH
=$BUILD_DIR/$TRUST_SETTINGS
15 echo Creating empty
$TRUST_SETTINGS in build directory...
16 rm -f "$TRUST_SETTINGS_PATH"
17 security add
-trusted-cert -o "$TRUST_SETTINGS_PATH" || exit(1)
20 set SECCMD
="$SECTOOL add-trusted-cert -i $TRUST_SETTINGS_PATH -o $TRUST_SETTINGS_PATH"
21 set cmd
="$SECCMD -p ssl debugRoot.cer"
25 # allowedError = CSSMERR_APPLETP_HOSTNAME_MISMATCH
26 set cmd
="$SECCMD -p ssl -e -2147408896 -r unspecified localhost.cer "
30 # allowedError = CSSMERR_APPLETP_CS_BAD_CERT_CHAIN_LENGTH
31 set cmd
="$SECCMD -p swUpdate -e -2147408849 -r unspecified csLeafShortPath.cer"
35 set cmd
="$SECCMD -p swUpdate csRoot.cer"
39 # allowedError = CSSMERR_TP_CERT_REVOKED
40 set cmd
="$SECCMD -e -2147409652 -r unspecified crlTestLeaf.cer"
44 set cmd
="$SECCMD crlTestRoot.cer"
48 # default root setting for SMIME : Deny
49 set cmd
="$SECCMD -D -p smime -r deny"