]> git.ipfire.org Git - thirdparty/openssl.git/blame - test/ssl-tests/03-custom_verify.conf
Fix reversed meaning of error codes
[thirdparty/openssl.git] / test / ssl-tests / 03-custom_verify.conf
CommitLineData
a263f320
EK
1# Generated with generate_ssl_tests.pl
2
3num_tests = 9
4
5test-0 = 0-verify-success
6test-1 = 1-verify-custom-reject
7test-2 = 2-verify-custom-allow
8test-3 = 3-noverify-success
9test-4 = 4-noverify-ignore-custom-reject
10test-5 = 5-noverify-accept-custom-allow
11test-6 = 6-verify-fail-no-root
12test-7 = 7-verify-custom-success-no-root
13test-8 = 8-verify-custom-fail-no-root
14# ===========================================================
15
16[0-verify-success]
17ssl_conf = 0-verify-success-ssl
18
19[0-verify-success-ssl]
20server = 0-verify-success-server
21client = 0-verify-success-client
22
23[0-verify-success-server]
24Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
25CipherString = DEFAULT
26PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
27
a263f320
EK
28[0-verify-success-client]
29CipherString = DEFAULT
30VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
31VerifyMode = Peer
32
a263f320
EK
33[test-0]
34ExpectedResult = Success
35
36
37# ===========================================================
38
39[1-verify-custom-reject]
40ssl_conf = 1-verify-custom-reject-ssl
41
42[1-verify-custom-reject-ssl]
43server = 1-verify-custom-reject-server
44client = 1-verify-custom-reject-client
45
46[1-verify-custom-reject-server]
47Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
48CipherString = DEFAULT
49PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
50
a263f320
EK
51[1-verify-custom-reject-client]
52CipherString = DEFAULT
53VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
54VerifyMode = Peer
55
a263f320 56[test-1]
9f48bbac 57ExpectedClientAlert = HandshakeFailure
a263f320 58ExpectedResult = ClientFail
9f48bbac
EK
59client = 1-verify-custom-reject-client-extra
60
61[1-verify-custom-reject-client-extra]
62VerifyCallback = RejectAll
a263f320
EK
63
64
65# ===========================================================
66
67[2-verify-custom-allow]
68ssl_conf = 2-verify-custom-allow-ssl
69
70[2-verify-custom-allow-ssl]
71server = 2-verify-custom-allow-server
72client = 2-verify-custom-allow-client
73
74[2-verify-custom-allow-server]
75Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
76CipherString = DEFAULT
77PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
78
a263f320
EK
79[2-verify-custom-allow-client]
80CipherString = DEFAULT
81VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
82VerifyMode = Peer
83
a263f320 84[test-2]
a263f320 85ExpectedResult = Success
9f48bbac
EK
86client = 2-verify-custom-allow-client-extra
87
88[2-verify-custom-allow-client-extra]
89VerifyCallback = AcceptAll
a263f320
EK
90
91
92# ===========================================================
93
94[3-noverify-success]
95ssl_conf = 3-noverify-success-ssl
96
97[3-noverify-success-ssl]
98server = 3-noverify-success-server
99client = 3-noverify-success-client
100
101[3-noverify-success-server]
102Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
103CipherString = DEFAULT
104PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
105
a263f320
EK
106[3-noverify-success-client]
107CipherString = DEFAULT
108
a263f320
EK
109[test-3]
110ExpectedResult = Success
111
112
113# ===========================================================
114
115[4-noverify-ignore-custom-reject]
116ssl_conf = 4-noverify-ignore-custom-reject-ssl
117
118[4-noverify-ignore-custom-reject-ssl]
119server = 4-noverify-ignore-custom-reject-server
120client = 4-noverify-ignore-custom-reject-client
121
122[4-noverify-ignore-custom-reject-server]
123Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
124CipherString = DEFAULT
125PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
126
a263f320
EK
127[4-noverify-ignore-custom-reject-client]
128CipherString = DEFAULT
129
a263f320 130[test-4]
a263f320 131ExpectedResult = Success
9f48bbac
EK
132client = 4-noverify-ignore-custom-reject-client-extra
133
134[4-noverify-ignore-custom-reject-client-extra]
135VerifyCallback = RejectAll
a263f320
EK
136
137
138# ===========================================================
139
140[5-noverify-accept-custom-allow]
141ssl_conf = 5-noverify-accept-custom-allow-ssl
142
143[5-noverify-accept-custom-allow-ssl]
144server = 5-noverify-accept-custom-allow-server
145client = 5-noverify-accept-custom-allow-client
146
147[5-noverify-accept-custom-allow-server]
148Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
149CipherString = DEFAULT
150PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
151
a263f320
EK
152[5-noverify-accept-custom-allow-client]
153CipherString = DEFAULT
154
a263f320 155[test-5]
a263f320 156ExpectedResult = Success
9f48bbac
EK
157client = 5-noverify-accept-custom-allow-client-extra
158
159[5-noverify-accept-custom-allow-client-extra]
160VerifyCallback = AcceptAll
a263f320
EK
161
162
163# ===========================================================
164
165[6-verify-fail-no-root]
166ssl_conf = 6-verify-fail-no-root-ssl
167
168[6-verify-fail-no-root-ssl]
169server = 6-verify-fail-no-root-server
170client = 6-verify-fail-no-root-client
171
172[6-verify-fail-no-root-server]
173Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
174CipherString = DEFAULT
175PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
176
a263f320
EK
177[6-verify-fail-no-root-client]
178CipherString = DEFAULT
179VerifyMode = Peer
180
a263f320 181[test-6]
9f48bbac 182ExpectedClientAlert = UnknownCA
a263f320
EK
183ExpectedResult = ClientFail
184
185
186# ===========================================================
187
188[7-verify-custom-success-no-root]
189ssl_conf = 7-verify-custom-success-no-root-ssl
190
191[7-verify-custom-success-no-root-ssl]
192server = 7-verify-custom-success-no-root-server
193client = 7-verify-custom-success-no-root-client
194
195[7-verify-custom-success-no-root-server]
196Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
197CipherString = DEFAULT
198PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
199
a263f320
EK
200[7-verify-custom-success-no-root-client]
201CipherString = DEFAULT
202VerifyMode = Peer
203
a263f320 204[test-7]
a263f320 205ExpectedResult = Success
9f48bbac
EK
206client = 7-verify-custom-success-no-root-client-extra
207
208[7-verify-custom-success-no-root-client-extra]
209VerifyCallback = AcceptAll
a263f320
EK
210
211
212# ===========================================================
213
214[8-verify-custom-fail-no-root]
215ssl_conf = 8-verify-custom-fail-no-root-ssl
216
217[8-verify-custom-fail-no-root-ssl]
218server = 8-verify-custom-fail-no-root-server
219client = 8-verify-custom-fail-no-root-client
220
221[8-verify-custom-fail-no-root-server]
222Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
223CipherString = DEFAULT
224PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
225
a263f320
EK
226[8-verify-custom-fail-no-root-client]
227CipherString = DEFAULT
228VerifyMode = Peer
229
a263f320 230[test-8]
9f48bbac 231ExpectedClientAlert = HandshakeFailure
a263f320 232ExpectedResult = ClientFail
9f48bbac
EK
233client = 8-verify-custom-fail-no-root-client-extra
234
235[8-verify-custom-fail-no-root-client-extra]
236VerifyCallback = RejectAll
a263f320
EK
237
238