]> git.saurik.com Git - apple/security.git/blame - SecurityTests/clxutils/certcrl/testSubjects/expiredAppleCA/expiredCA.scr
Security-57740.31.2.tar.gz
[apple/security.git] / SecurityTests / clxutils / certcrl / testSubjects / expiredAppleCA / expiredCA.scr
CommitLineData
d8f41ccd
A
1#
2# test handling of expired Apple development CA certs, Radar 3622125.
3#
4
5globals
6allowUnverified = true
7crlNetFetchEnable = false
8certNetFetchEnable = false
9useSystemAnchors = false
10end
11
12#
13# Original Dev CA expires Sep 7, 2007
14# New Dev CA expires Dec 31, 2008
15# leaf cert expires Oct 13, 2006
16#
17# After initial sanity checks, we evaluate at a time after the
18# original CA expired and before the new CA expires; we assume
19# that the leaf is expired in all cases.
20#
21
22test = "Old CA before it expires, expired leaf"
23cert = dmitchtread.cer
24cert = OriginalDevCAIntermediate.pem
25root = AppleDevRoot.pem
26verifyTime = 20061201000000
27error = CSSMERR_TP_CERT_EXPIRED
28# leaf expired
29# IS_IN_INPUT_CERTS | EXPIRED
30certstatus = 0:0x05
31# IS_IN_INPUT_CERTS
32certstatus = 1:0x04
33# IS_IN_ANCHORS IS_ROOT
34certstatus = 2:0x18
35end
36
37test = "New CA before it expires, expired leaf"
38cert = dmitchtread.cer
39cert = NewDevCAIntermdiate.pem
40root = AppleDevRoot.pem
41verifyTime = 20061201000000
42error = CSSMERR_TP_CERT_EXPIRED
43# leaf expired
44# IS_IN_INPUT_CERTS | EXPIRED
45certstatus = 0:0x05
46# Verify IS_IN_INPUT_CERTS
47certstatus = 1:0x04
48# IS_IN_ANCHORS IS_ROOT
49certstatus = 2:0x18
50end
51
52test = "Old CA after it expires, expired leaf"
53cert = dmitchtread.cer
54cert = OriginalDevCAIntermediate.pem
55root = AppleDevRoot.pem
56verifyTime = 20071201000000
57error = CSSMERR_TP_CERT_EXPIRED
58# leaf expired
59# IS_IN_INPUT_CERTS | EXPIRED
60certstatus = 0:0x05
61# IS_IN_INPUT_CERTS | EXPIRED
62certstatus = 1:0x05
63# IS_IN_ANCHORS IS_ROOT
64certstatus = 2:0x18
65end
66
67test = "Old CA and new CA in input certs"
68cert = dmitchtread.cer
69cert = OriginalDevCAIntermediate.pem
70cert = NewDevCAIntermdiate.pem
71root = AppleDevRoot.pem
72verifyTime = 20071201000000
73error = CSSMERR_TP_CERT_EXPIRED
74# leaf expired
75# IS_IN_INPUT_CERTS | EXPIRED
76certstatus = 0:0x05
77# IS_IN_INPUT_CERTS, !EXPIRED
78certstatus = 1:0x04
79# IS_IN_ANCHORS IS_ROOT
80certstatus = 2:0x18
81end
82
83test = "Old CA input certs, both CAs in DlDb"
84cert = dmitchtread.cer
85cert = OriginalDevCAIntermediate.pem
86root = AppleDevRoot.pem
87certDb = appleDevCAs.keychain
88verifyTime = 20071201000000
89error = CSSMERR_TP_CERT_EXPIRED
90# leaf expired
91# IS_IN_INPUT_CERTS | EXPIRED
92certstatus = 0:0x05
93# Verify !IS_IN_INPUT_CERTS, !EXPIRED
94certstatus = 1:0x0
95# IS_IN_ANCHORS IS_ROOT
96certstatus = 2:0x18
97end
98
99test = "No CA input certs, both CAs in DlDb"
100cert = dmitchtread.cer
101root = AppleDevRoot.pem
102certDb = appleDevCAs.keychain
103verifyTime = 20071201000000
104error = CSSMERR_TP_CERT_EXPIRED
105# leaf expired
106# IS_IN_INPUT_CERTS | EXPIRED
107certstatus = 0:0x05
108# !IS_IN_INPUT_CERTS, !EXPIRED
109certstatus = 1:0x0
110# IS_IN_ANCHORS IS_ROOT
111certstatus = 2:0x18
112end