]> git.saurik.com Git - apple/security.git/blob - SecurityTests/clxutils/certcrl/testSubjects/ocsp_openvalidation/ocsp.scr
Security-57031.1.35.tar.gz
[apple/security.git] / SecurityTests / clxutils / certcrl / testSubjects / ocsp_openvalidation / ocsp.scr
1 # OCSP test using http://ocsp.openvalidation.org
2 #
3 # See http://www.openvalidation.org/useocspservicenew.htm for details. We're
4 # using the CA1 certs obtained from
5 # http://www.openvalidation.org/download/downloadrootcertsCA1.htm
6 #
7 # Apparently all requests are signed by Server_CA2, even the ones for
8 # certs which are themselves signed by Server_CA1. So, we need both roots.
9 #
10 # This test does not run as of 10/25/06 because the OCSP responses we get
11 # are past their nextUpdate time of 20060816111203Z. We'll keep this here in
12 # case openvalidation.org updates their server.
13 #
14 globals
15 certNetFetchEnable = false
16 useSystemAnchors = false
17 cacheDisable = false
18 allowUnverified = false
19 end
20 #
21 echo "================================="
22 test = "no revocation just to make sure we have decent certs"
23 revokePolicy = none
24 cert = User_CA1.crt
25 root = Root_CA1.crt
26 verifyTime=20050101000000
27 allowUnverified=true
28 end
29 #
30 echo "================================="
31 test = "OCSP, good status, user cert, cache disabled"
32 revokePolicy = ocsp
33 cert = User_CA1.crt
34 root = Root_CA1.crt
35 root = Root_CA2.crt
36 responderURI = http://ocsp.openvalidation.org:80
37 responderCert = Server_CA2.crt
38 verifyTime=20050101000000
39 cacheDisable = true
40 end
41 #
42 echo "================================="
43 test = "OCSP, good status, user cert, cache enable"
44 revokePolicy = ocsp
45 cert = User_CA1.crt
46 root = Root_CA1.crt
47 root = Root_CA2.crt
48 responderURI = http://ocsp.openvalidation.org:80
49 responderCert = Server_CA2.crt
50 cacheDisable = false
51 verifyTime=20050101000000
52 end
53 #
54 echo "================================="
55 test = "OCSP, good status, user cert, cache disable, net disable, fail"
56 revokePolicy = ocsp
57 cert = User_CA1.crt
58 root = Root_CA1.crt
59 root = Root_CA2.crt
60 # responderURI = http://ocsp.openvalidation.org:80
61 requireOcspIfPresent = true
62 cacheDisable = true
63 verifyTime=20050101000000
64 error = APPLETP_OCSP_UNAVAILABLE
65 certerror = 0:APPLETP_OCSP_UNAVAILABLE
66 end
67 #
68 echo "================================="
69 test = "OCSP, good status, user cert, cache enable, net disable, succeed"
70 revokePolicy = ocsp
71 cert = User_CA1.crt
72 root = Root_CA1.crt
73 root = Root_CA2.crt
74 # responderURI = http://ocsp.openvalidation.org:80
75 responderCert = Server_CA2.crt
76 reqOcspIfPresent = true
77 # no net but we get it from cache OK
78 cacheDisable = false
79 ocspNetFetchDisable = true
80 verifyTime=20050101000000
81 end
82 #
83 echo "================================="
84 test = "OCSP, revoked status, user cert"
85 revokePolicy = ocsp
86 cert = User_CA1.crt
87 root = Root_CA1.crt
88 root = Root_CA2.crt
89 responderURI = http://ocsp.openvalidation.org:8083
90 responderCert = Server_CA2.crt
91 verifyTime=20050101000000
92 error = TP_CERT_REVOKED
93 certerror = 0:TP_CERT_REVOKED
94 reqOcspIfPresent = true
95 end
96 #
97 echo "================================="
98 test = "OCSP, unknown status, fail"
99 revokePolicy = ocsp
100 cert = User_CA1.crt
101 root = Root_CA1.crt
102 root = Root_CA2.crt
103 responderURI = http://ocsp.openvalidation.org:8084
104 responderCert = Server_CA2.crt
105 allowUnverified = false
106 verifyTime=20050101000000
107 # port 8084 yields the "I don't know this cert" failure, so the overall result
108 # when we require OCSP per cert is not available
109 error = APPLETP_OCSP_UNAVAILABLE
110 certerror = 0:APPLETP_OCSP_UNAVAILABLE
111 end
112 #
113 echo "================================="
114 test = "OCSP, unknown status, success"
115 revokePolicy = ocsp
116 cert = User_CA1.crt
117 root = Root_CA1.crt
118 root = Root_CA2.crt
119 responderURI = http://ocsp.openvalidation.org:8084
120 responderCert = Server_CA2.crt
121 allowUnverified = true
122 verifyTime=20050101000000
123 end