]> git.saurik.com Git - apple/security.git/blame - SecurityTests/clxutils/certcrl/testSubjects/expiredRoot/expiredRoot.scr
Security-57740.31.2.tar.gz
[apple/security.git] / SecurityTests / clxutils / certcrl / testSubjects / expiredRoot / expiredRoot.scr
CommitLineData
d8f41ccd
A
1# test handling of expired root, per 3300879
2#
3# This uses two certs we got from store.apple.com and an old expired root
4# which verifies them.
5#
6# The leaf cert is going to expire on April 1 2007; the intermediate cert is
7# going to expire on Oct 24, 2011. To replace them just grab new certs from
8# store.apple.com, or any other site with a cert chain originating with
9# Verisign's Class 3 Public Primary Certification Authority.
10#
11globals
12allowUnverified = true
13crlNetFetchEnable = false
14certNetFetchEnable = false
15useSystemAnchors = false
16end
17#
18# Simulate pre-3300879 failure, expired root in anchors
19#
20test = test1
21echo Expired root as anchor
22#cert = iproj_v3.100.cer
23#cert = iproj_v3.101.cer
24cert = applestore_v3.100.cer
25cert = applestore_v3.101.cer
26root = iproj_v3.102.cer
27sslHost = store.apple.com
28error = CSSMERR_TP_CERT_EXPIRED
29# EXPIRED IS_IN_ANCHORS IS_ROOT
30certstatus = 2:0x19
31end
32#
33# Simulate pre-3300879 failure, expired root not in anchors
34#
35test = test2
36echo Expired root not in (empty) anchors
37cert = applestore_v3.100.cer
38cert = applestore_v3.101.cer
39cert = iproj_v3.102.cer
40sslHost = store.apple.com
41error = CSSMERR_TP_INVALID_ANCHOR_CERT
42# EXPIRED IS_IN_INPUT_CERTS IS_ROOT
43certstatus = 2:0x15
44end
45#
46# Ensure that this expired root successfully verifies the chain
47#
48test = test3
49echo Expired root passed as anchor, explicitly allowing expired root
50cert = applestore_v3.100.cer
51cert = applestore_v3.101.cer
52root = iproj_v3.102.cer
53allowExpiredRoot = true
54sslHost = store.apple.com
55end
56
57#
58test = test4
59echo Expired root in input chain, should be ignored in favor of system anchor
60useSystemAnchors = true
61cert = applestore_v3.100.cer
62cert = applestore_v3.101.cer
63cert = iproj_v3.102.cer
64sslHost = store.apple.com
65# IS_IN_ANCHORS IS_ROOT
66certstatus = 2:0x18
67end
68
69test = test5
70echo Expired root in input chain, should be ignored in favor of system anchor, Trust Settings
71useSystemAnchors = true
72useTrustSettings = true
73cert = applestore_v3.100.cer
74cert = applestore_v3.101.cer
75cert = iproj_v3.102.cer
76sslHost = store.apple.com
77# IS_ROOT TRUST_SETTINGS_FOUND_SYSTEM TRUST_SETTINGS_TRUST
78certstatus = 2:0x310
79end