4 # This must be run with trustSettingsTest.keychain in your KC search path
5 # and userTrustSettings.plist as your per-user or admin trust settings.
7 # A script to recreate userTrustSettings.plist is in the makeTrustSettings
8 # script in this directory; the result can be imported into your user-domain
9 # settings via security trust-settings-import.
11 # See the buildAndTest script in this directory for al all-in-one op.
14 allowUnverified = true
15 crlNetFetchEnable = false
16 certNetFetchEnable = false
17 useSystemAnchors = false
21 # Note: with TrustSettings disabled, we pass in roots as root certs;
22 # with TrustSettings enabled, we pass roots as regular certs if we
27 # debugRoot and localhost, with allowed HOSTNAME_MISMATCH test
29 test = "Ensure localhost.cer fails with TrustSettings disabled"
30 useTrustSettings = false
34 verifyTime = 20060601000000
35 error = CSSMERR_TP_INVALID_ANCHOR_CERT
36 # IS_IN_INPUT_CERTS | IS_ROOT
40 test = "localhost.cer with TrustSettings enabled"
41 useTrustSettings = true
45 verifyTime = 20060601000000
48 # IS_IN_INPUT_CERTS | IS_ROOT | TRUST_SETTINGS_FOUND_USER | TRUST_SETTING_TRUST
52 test = "localhost.cer with allowedError HOSTNAME_MISMATCH"
53 useTrustSettings = true
57 verifyTime = 20060601000000
58 # IS_IN_INPUT_CERTS | TRUST_SETTINGS_FOUND_USER | TRUST_SETTINGS_IGNORED_ERROR
60 # IS_IN_INPUT_CERTS | IS_ROOT | TRUST_SETTINGS_FOUND_USER | TRUST_SETTING_TRUST
62 # Detected and logged but not a fatal error due to TrustSettings
63 certerror = 0:CSSMERR_APPLETP_HOSTNAME_MISMATCH
67 # Software Update Signing with allowed CS_BAD_CERT_CHAIN_LENGTH test
69 test = "SWUSigning, normal, no TrustSettings"
70 useTrustSettings = false
75 verifyTime = 20060601000000
76 # CSSM_CERT_STATUS_IS_IN_ANCHORS | IS_ROOT
80 test = "SWUSigning, normal, TrustSettings"
81 useTrustSettings = true
86 verifyTime = 20060601000000
87 # IS_IN_INPUT_CERTS | IS_ROOT | TRUST_SETTINGS_FOUND_USER | TRUST_SETTINGS_TRUST
91 # note no per-cert status of CS_BAD_CERT_CHAIN_LENGTH, it applies
93 test = "SWUSigning, allowed bad path length"
94 useTrustSettings = true
95 cert = csLeafShortPath.cer
98 verifyTime = 20060601000000
99 # IS_IN_INPUT_CERTS | IS_ROOT | TRUST_SETTINGS_FOUND_USER | TRUST_SETTINGS_TRUST
101 # IS_IN_INPUT_CERTS | TRUST_SETTINGS_FOUND_USER | TRUST_SETTINGS_IGNORED_ERROR
106 # CRL testing with allowed CSSMERR_TP_CERT_REVOKED test
107 # see documentation in clxutils/makeCrl/testFiles/crlTime.scr for info
110 test = "revoked by CRL, no TrustSettings, expect failure"
111 useTrustSettings = false
112 requireCrlForAll = true
114 cert = crlTestLeaf.cer
115 root = crlTestRoot.cer
117 # Normal revocation case.
118 verifyTime = 20060418090559Z
119 error = CSSMERR_TP_CERT_REVOKED
120 certerror = 0:CSSMERR_TP_CERT_REVOKED
121 # CSSM_CERT_STATUS_IS_IN_ANCHORS | IS_ROOT
125 test = "revoked by CRL, TrustSettings, expect success"
126 useTrustSettings = true
127 requireCrlForAll = true
129 cert = crlTestLeaf.cer
130 cert = crlTestRoot.cer
132 # Normal revocation case.
133 verifyTime = 20060418090559Z
134 # IS_IN_INPUT_CERTS | TRUST_SETTINGS_FOUND_USER | TRUST_SETTINGS_IGNORED_ERROR
136 # IS_IN_INPUT_CERTS | IS_ROOT | TRUST_SETTINGS_FOUND_USER | TRUST_SETTINGS_TRUST
138 certerror = 0:CSSMERR_TP_CERT_REVOKED
142 # dmitch@apple.com Thawte with test of default setting = deny for SMIME
144 test = "dmitch@apple.com Thawte, no TrustSettings"
145 useTrustSettings = false
146 useSystemAnchors = true
147 cert = dmitchAppleThawte.cer
150 verifyTime = 20060601000000
151 senderEmail = dmitch@apple.com
152 # CSSM_CERT_STATUS_IS_IN_ANCHORS | IS_ROOT
156 test = "dmitch@apple.com Thawte, TrustSettings, generic"
157 useTrustSettings = true
158 useSystemAnchors = true
159 cert = dmitchAppleThawte.cer
161 verifyTime = 20060601000000
162 # IS_ROOT | TRUST_SETTINGS_FOUND_SYSTEM | TRUST_SETTINGS_TRUST
166 test = "dmitch@apple.com Thawte, TrustSettings, SMIME, fail due to default Deny setting"
167 useTrustSettings = true
168 useSystemAnchors = true
169 cert = dmitchAppleThawte.cer
171 senderEmail = dmitch@apple.com
172 verifyTime = 20060601000000
173 # IS_ROOT | TRUST_SETTINGS_FOUND_USER | TRUST_SETTINGS_DENY
175 error = CSSMERR_APPLETP_TRUST_SETTING_DENY