2048040ec9779fa30654a2ae3c9fa306f4ebc99a
[ira/wip.git] / docs / htmldocs / using_samba / appa_05.html
1 <HTML>
2 <HEAD>
3 <TITLE>
4 [Appendix A] A.5 SSL Configuration Options</title><META NAME="DC.title" CONTENT=""><META NAME="DC.creator" CONTENT=""><META NAME="DC.publisher" CONTENT="O'Reilly &amp; Associates, Inc."><META NAME="DC.date" CONTENT="1999-11-05T21:41:44Z"><META NAME="DC.type" CONTENT="Text.Monograph"><META NAME="DC.format" CONTENT="text/html" SCHEME="MIME"><META NAME="DC.source" CONTENT="" SCHEME="ISBN"><META NAME="DC.language" CONTENT="en-US"><META NAME="generator" CONTENT="Jade 1.1/O'Reilly DocBook 3.0 to HTML 4.0"></head>
5 <BODY BGCOLOR="#FFFFFF" TEXT="#000000" link="#990000" vlink="#0000CC">
6 <table BORDER="0" CELLPADDING="0" CELLSPACING="0" width="90%">
7 <tr>
8 <td width="25%" valign="TOP">
9 <img hspace=10 vspace=10 src="gifs/samba.s.gif" 
10 alt="Using Samba" align=left valign=top border=0>
11 </td>
12 <td height="105" valign="TOP">
13 <br>
14 <H2>Using Samba</H2>
15 <font size="-1">
16 Robert Eckstein, David Collier-Brown, Peter Kelly
17 <br>1st Edition November 1999
18 <br>1-56592-449-5, Order Number: 4495
19 <br>416 pages, $34.95
20 </font>
21 <p> <a href="http://www.oreilly.com/catalog/samba/">Buy the hardcopy</a>
22 <p><a href="index.html">Table of Contents</a>
23 </td>
24 </tr>
25 </table>
26 <hr size=1 noshade>
27 <!--sample chapter begins -->
28
29 <center>
30 <DIV CLASS="htmlnav">
31 <TABLE WIDTH="515" BORDER="0" CELLSPACING="0" CELLPADDING="0">
32 <TR>
33 <TD ALIGN="LEFT" VALIGN="TOP" WIDTH="172">
34 <A CLASS="sect1" HREF="appa_04.html" TITLE="A.4 Setting Up SSL Proxy">
35 <IMG SRC="gifs/txtpreva.gif" ALT="Previous: A.4 Setting Up SSL Proxy" BORDER="0"></a></td><TD ALIGN="CENTER" VALIGN="TOP" WIDTH="171">
36 <B>
37 <FONT FACE="ARIEL,HELVETICA,HELV,SANSERIF" SIZE="-1">
38 <A CLASS="appendix" REL="up" HREF="appa_01.html" TITLE="A. Configuring Samba with SSL">
39 Appendix A<br>
40 Configuring Samba with SSL</a></font></b></td><TD ALIGN="RIGHT" VALIGN="TOP" WIDTH="172">
41 <A CLASS="appendix" HREF="appb_01.html" TITLE="B. Samba Performance Tuning">
42 <IMG SRC="gifs/txtnexta.gif" ALT="Next: B. Samba Performance Tuning" BORDER="0"></a></td></tr></table>&nbsp;<hr noshade size=1></center>
43 </div>
44 <blockquote>
45 <div>
46 <H2 CLASS="sect1">
47 <A CLASS="title" NAME="appa-pgfId-985845">
48 A.5 SSL Configuration Options</a></h2><P CLASS="para">
49 <A CLASS="xref" HREF="appa_05.html#appa-61150">Table A.1</a> summarizes the configuration options introduced in the previous section for using SSL. Note that all of these options are global in scope; in other words, they must appear in the <CODE CLASS="literal">
50 [global]</code> section of the configuration file. </p><br>
51 <TABLE CLASS="table" BORDER="1" CELLPADDING="3">
52 <CAPTION CLASS="table">
53 <A CLASS="title" NAME="appa-61150">
54 Table A.1: SSL Configuration Options </a></caption><THEAD CLASS="thead">
55 <TR CLASS="row" VALIGN="TOP">
56 <TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1">
57 <P CLASS="para">
58 Option</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1">
59 <P CLASS="para">
60 Parameters</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1">
61 <P CLASS="para">
62 Function</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1">
63 <P CLASS="para">
64 Default</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1">
65 <P CLASS="para">
66 Scope</p></th></tr></thead><TBODY CLASS="tbody">
67 <TR CLASS="row" VALIGN="TOP">
68 <TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
69 <P CLASS="para">
70 <CODE CLASS="literal">
71 ssl</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
72 <P CLASS="para">
73 boolean</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
74 <P CLASS="para">
75 Indicates whether SSL mode is enabled with Samba.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
76 <P CLASS="para">
77 <CODE CLASS="literal">
78 no</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
79 <P CLASS="para">
80 Global</p></td></tr><TR CLASS="row" VALIGN="TOP">
81 <TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
82 <P CLASS="para">
83 <CODE CLASS="literal">
84 ssl hosts</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
85 <P CLASS="para">
86 string (list of addresses)</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
87 <P CLASS="para">
88 Specifies a list of hosts that must always connect using SSL.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
89 <P CLASS="para">
90 None</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
91 <P CLASS="para">
92 Global</p></td></tr><TR CLASS="row" VALIGN="TOP">
93 <TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
94 <P CLASS="para">
95 <CODE CLASS="literal">
96 ssl hosts resign</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
97 <P CLASS="para">
98 string (list of addresses)</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
99 <P CLASS="para">
100 Specifies a list of hosts that never connect using SS.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
101 <P CLASS="para">
102 None</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
103 <P CLASS="para">
104 Global</p></td></tr><TR CLASS="row" VALIGN="TOP">
105 <TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
106 <P CLASS="para">
107 <CODE CLASS="literal">
108 ssl CA certDir</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
109 <P CLASS="para">
110 string (fully-qualified pathname)</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
111 <P CLASS="para">
112 Specifies the directory where the certificates are stored.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
113 <P CLASS="para">
114 None</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
115 <P CLASS="para">
116 Global</p></td></tr><TR CLASS="row" VALIGN="TOP">
117 <TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
118 <P CLASS="para">
119 <CODE CLASS="literal">
120 ssl CA certFile</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
121 <P CLASS="para">
122 string (fully-qualified pathname)</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
123 <P CLASS="para">
124 Specifies a file that contains all of the certificates for Samba.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
125 <P CLASS="para">
126 None</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
127 <P CLASS="para">
128 Global</p></td></tr><TR CLASS="row" VALIGN="TOP">
129 <TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
130 <P CLASS="para">
131 <CODE CLASS="literal">
132 ssl server cert</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
133 <P CLASS="para">
134 string (fully-qualified pathname)</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
135 <P CLASS="para">
136 Specifies the location of the server's certificate.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
137 <P CLASS="para">
138 None</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
139 <P CLASS="para">
140 Global</p></td></tr><TR CLASS="row" VALIGN="TOP">
141 <TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
142 <P CLASS="para">
143 <CODE CLASS="literal">
144 ssl server key</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
145 <P CLASS="para">
146 string (fully-qualified pathname)</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
147 <P CLASS="para">
148 Specifies the location of the server's private key.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
149 <P CLASS="para">
150 None</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
151 <P CLASS="para">
152 Global</p></td></tr><TR CLASS="row" VALIGN="TOP">
153 <TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
154 <P CLASS="para">
155 <CODE CLASS="literal">
156 ssl client cert</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
157 <P CLASS="para">
158 string (fully-qualified pathname)</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
159 <P CLASS="para">
160 Specifies the location of the client's certificate.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
161 <P CLASS="para">
162 None</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
163 <P CLASS="para">
164 Global</p></td></tr><TR CLASS="row" VALIGN="TOP">
165 <TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
166 <P CLASS="para">
167 <CODE CLASS="literal">
168 ssl client key</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
169 <P CLASS="para">
170 string (fully-qualified pathname)</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
171 <P CLASS="para">
172 Specifies the location of the client's private key.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
173 <P CLASS="para">
174 None</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
175 <P CLASS="para">
176 Global</p></td></tr><TR CLASS="row" VALIGN="TOP">
177 <TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
178 <P CLASS="para">
179 <CODE CLASS="literal">
180 ssl require clientcert</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
181 <P CLASS="para">
182 boolean</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
183 <P CLASS="para">
184 Indicates whether Samba should require each client to have a certificate.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
185 <P CLASS="para">
186 <CODE CLASS="literal">
187 no</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
188 <P CLASS="para">
189 Global</p></td></tr><TR CLASS="row" VALIGN="TOP">
190 <TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
191 <P CLASS="para">
192 <CODE CLASS="literal">
193 ssl require servercert</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
194 <P CLASS="para">
195 boolean</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
196 <P CLASS="para">
197 Indicates whether the server itself should have a certificate.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
198 <P CLASS="para">
199 <CODE CLASS="literal">
200 no</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
201 <P CLASS="para">
202 Global</p></td></tr><TR CLASS="row" VALIGN="TOP">
203 <TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
204 <P CLASS="para">
205 <CODE CLASS="literal">
206 ssl ciphers</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
207 <P CLASS="para">
208 String </p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
209 <P CLASS="para">
210 Specifies the cipher suite to use during protocol negotiation.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
211 <P CLASS="para">
212 None</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
213 <P CLASS="para">
214 Global</p></td></tr><TR CLASS="row" VALIGN="TOP">
215 <TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
216 <P CLASS="para">
217 <CODE CLASS="literal">
218 ssl version</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
219 <P CLASS="para">
220 <CODE CLASS="literal">
221 ssl2or3</code>, <CODE CLASS="literal">
222 ssl3</code>, or <CODE CLASS="literal">
223 tls1</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
224 <P CLASS="para">
225 Specifies the version of SSL to use.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
226 <P CLASS="para">
227 <CODE CLASS="literal">
228 ssl2or3</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
229 <P CLASS="para">
230 Global</p></td></tr><TR CLASS="row" VALIGN="TOP">
231 <TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
232 <P CLASS="para">
233 <CODE CLASS="literal">
234 ssl compatibility</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
235 <P CLASS="para">
236 boolean</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
237 <P CLASS="para">
238 Indicates whether compatibility with other implementations of SSL should be activated.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
239 <P CLASS="para">
240 <CODE CLASS="literal">
241 no</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
242 <P CLASS="para">
243 Global</p></td></tr></tbody></table><DIV CLASS="sect2">
244 <H3 CLASS="sect2">
245 <A CLASS="title" NAME="appa-pgfId-986013">
246 A.5.1 ssl</a></h3><P CLASS="para">
247 This global option configures Samba to use SSL for communication between itself and clients. The default value of this option is <CODE CLASS="literal">
248 no</code>. You can reset it as follows:</p><PRE CLASS="programlisting">
249 [global]
250         ssl = yes</pre><P CLASS="para">
251 Note that in order to use this option, you must have a proxy for Windows 95/98 clients, such as in the model presented earlier in this chapter.</p></div><DIV CLASS="sect2">
252 <H3 CLASS="sect2">
253 <A CLASS="title" NAME="appa-pgfId-986018">
254 A.5.2 ssl hosts</a></h3><P CLASS="para">
255 This option specifies the hosts that will be forced into using SSL. The syntax for specifying hosts and addresses is the same as the <CODE CLASS="literal">
256 hosts</code> <CODE CLASS="literal">
257 allow</code> and the <CODE CLASS="literal">
258 hosts</code> <CODE CLASS="literal">
259 deny</code> configuration options. For example:</p><PRE CLASS="programlisting">
260 [global]
261         ssl = yes
262         ssl hosts = 192.168.220.</pre><P CLASS="para">
263 This example specifies that all hosts that fall into the 192.168.220 subnet must use SSL connections with the client. This type of structure is useful if you know that various connections will be made by a subnet that lies across an untrusted network, such as the Internet. If neither this option nor the <CODE CLASS="literal">
264 ssl</code> <CODE CLASS="literal">
265 hosts</code> <CODE CLASS="literal">
266 resign</code> option has been specified, and <CODE CLASS="literal">
267 ssl</code> is set to <CODE CLASS="literal">
268 yes</code>, Samba will allow only SSL connections from all clients.</p></div><DIV CLASS="sect2">
269 <H3 CLASS="sect2">
270 <A CLASS="title" NAME="appa-pgfId-986024">
271 A.5.3 ssl hosts resign</a></h3><P CLASS="para">
272 This option specifies the hosts that will <EM CLASS="emphasis">
273 not</em> be forced into SSL mode. The syntax for specifying hosts and addresses is the same as the <CODE CLASS="literal">
274 hosts</code> <CODE CLASS="literal">
275 allow</code> and the <CODE CLASS="literal">
276 hosts</code> <CODE CLASS="literal">
277 deny</code> configuration options. For example:</p><PRE CLASS="programlisting">
278 [global]
279         ssl = yes
280         ssl hosts resign = 160.2.310. 160.2.320.</pre><P CLASS="para">
281 This example specifies that all hosts that fall into the 160.2.310 or 160.2.320 subnets will not use SSL connections with the client. If neither this option nor the <CODE CLASS="literal">
282 ssl</code> <CODE CLASS="literal">
283 hosts</code> option has been specified, and <CODE CLASS="literal">
284 ssl</code> is set to <CODE CLASS="literal">
285 yes</code>, Samba will allow only SSL connections from all clients.</p></div><DIV CLASS="sect2">
286 <H3 CLASS="sect2">
287 <A CLASS="title" NAME="appa-pgfId-986030">
288 A.5.4 ssl CA certDir</a></h3><P CLASS="para">
289 This option specifies the directory containing the certificate authority's certificates that Samba will use to authenticate clients. There must be one file in this directory for each certificate authority, named as specified earlier in this chapter. Any other files in this directory are ignored. For example:</p><PRE CLASS="programlisting">
290 [global]
291         ssl = yes
292         ssl hosts = 192.168.220.
293         ssl CA certDir = /usr/local/samba/cert</pre><P CLASS="para">
294 There is no default for this option. You can alternatively use the option <CODE CLASS="literal">
295 ssl</code> <CODE CLASS="literal">
296 CA</code> <CODE CLASS="literal">
297 certFile</code> if you wish to place all the certificate authority information in the same file.</p></div><DIV CLASS="sect2">
298 <H3 CLASS="sect2">
299 <A CLASS="title" NAME="appa-pgfId-986037">
300 A.5.5 ssl CA certFile</a></h3><P CLASS="para">
301 This option specifies a file that contains the certificate authority's certificates that Samba will use to authenticate clients. This option differs from <CODE CLASS="literal">
302 ssl</code> <CODE CLASS="literal">
303 CA</code> <CODE CLASS="literal">
304 certDir</code> in that there is only one file used for all the certificate authorities. An example of its usage follows:</p><PRE CLASS="programlisting">
305 [global]
306         ssl = yes
307         ssl hosts = 192.168.220.
308         ssl CA certFile = /usr/local/samba/cert/certFile</pre><P CLASS="para">
309 There is no default for this option. You can also use the option <CODE CLASS="literal">
310 ssl</code> <CODE CLASS="literal">
311 CA</code> <CODE CLASS="literal">
312 certDir</code> if you wish to have a separate file for each certificate authority that Samba trusts.</p></div><DIV CLASS="sect2">
313 <H3 CLASS="sect2">
314 <A CLASS="title" NAME="appa-pgfId-986044">
315 A.5.6 ssl server cert</a></h3><P CLASS="para">
316 This option specifies the location of the server's certificate. This option is mandatory; the server must have a certificate in order to use SSL. For example: </p><PRE CLASS="programlisting">
317 [global]
318         ssl = yes
319         ssl hosts = 192.168.220.
320         ssl CA certFile = /usr/local/samba/cert/certFile
321         ssl server cert = /usr/local/samba/private/server.pem</pre><P CLASS="para">
322 There is no default for this option. Note that the certificate may contain the private key for the server.</p></div><DIV CLASS="sect2">
323 <H3 CLASS="sect2">
324 <A CLASS="title" NAME="appa-pgfId-986052">
325 A.5.7 ssl server key</a></h3><P CLASS="para">
326 This option specifies the location of the server's private key. You should ensure that the location of the file cannot be accessed by anyone other than <CODE CLASS="literal">
327 root</code>. For example:</p><PRE CLASS="programlisting">
328 [global]
329         ssl = yes
330         ssl hosts = 192.168.220.
331         ssl CA certFile = /usr/local/samba/cert/certFile
332         ssl server key = /usr/local/samba/private/samba.pem</pre><P CLASS="para">
333 There is no default for this option. Note that the private key may be contained in the certificate for the server. </p></div><DIV CLASS="sect2">
334 <H3 CLASS="sect2">
335 <A CLASS="title" NAME="appa-pgfId-986060">
336 A.5.8 ssl client cert</a></h3><P CLASS="para">
337 This option specifies the location of the client's certificate. The certificate may be requested by the Samba server with the <CODE CLASS="literal">
338 ssl</code> <CODE CLASS="literal">
339 require</code> <CODE CLASS="literal">
340 clientcert</code> option; the certificate is also used by <I CLASS="filename">
341 smbclient</i>. For example: </p><PRE CLASS="programlisting">
342 [global]
343     ssl = yes
344     ssl hosts = 192.168.220.
345     ssl CA certFile = /usr/local/samba/cert/certFile
346     ssl server cert = /usr/local/ssl/private/server.pem
347     ssl client cert= /usr/local/ssl/private/clientcert.pem</pre><P CLASS="para">
348 There is no default for this option. </p></div><DIV CLASS="sect2">
349 <H3 CLASS="sect2">
350 <A CLASS="title" NAME="appa-pgfId-986069">
351 A.5.9 ssl client key</a></h3><P CLASS="para">
352 This option specifies the location of the client's private key. You should ensure that the location of the file cannot be accessed by anyone other than <CODE CLASS="literal">
353 root</code>. For example:</p><PRE CLASS="programlisting">
354 [global]
355         ssl = yes
356         ssl hosts = 192.168.220.
357         ssl CA certDir = /usr/local/samba/cert/
358         ssl server key = /usr/local/ssl/private/samba.pem
359         ssl client key = /usr/local/ssl/private/clients.pem</pre><P CLASS="para">
360 There is no default for this option. This option is only needed if the client has a certificate. </p></div><DIV CLASS="sect2">
361 <H3 CLASS="sect2">
362 <A CLASS="title" NAME="appa-pgfId-986078">
363 A.5.10 ssl require clientcert</a></h3><P CLASS="para">
364 This option specifies whether the client is required to have a certificate. The certificates listed with either the <CODE CLASS="literal">
365 ssl</code> <CODE CLASS="literal">
366 CA</code> <CODE CLASS="literal">
367 certDir</code> or the <CODE CLASS="literal">
368 ssl</code> <CODE CLASS="literal">
369 CA</code> <CODE CLASS="literal">
370 certFile</code> will be searched to confirm that the client has a valid certificate and is authorized to connect to the Samba server. The value of this option is a simple boolean. For example:</p><PRE CLASS="programlisting">
371 [global]
372         ssl = yes
373         ssl hosts = 192.168.220.
374         ssl CA certFile = /usr/local/samba/cert/certFile
375         ssl require clientcert = yes</pre><P CLASS="para">
376 We recommend that you require certificates from all clients that could be connecting to the Samba server. The default value for this option is <CODE CLASS="literal">
377 no</code>.</p></div><DIV CLASS="sect2">
378 <H3 CLASS="sect2">
379 <A CLASS="title" NAME="appa-pgfId-990571">
380 A.5.11 ssl require servercert</a></h3><P CLASS="para">
381 This option specifies whether the server is required to have a certificate. Again, this will be used by the <I CLASS="filename">
382 smbclient</i> program. The value of this option is a simple boolean. For example:</p><PRE CLASS="programlisting">
383 [global]
384         ssl = yes
385         ssl hosts = 192.168.220.
386         ssl CA certFile = /usr/local/samba/cert/certFile
387         ssl require clientcert = yes
388         ssl require servercert = yes</pre><P CLASS="para">
389 Although we recommend that you require certificates from all clients that could be connecting to the Samba server, a server certificate is not required. It is, however,  recommended. The default value for this option is <CODE CLASS="literal">
390 no</code>.</p></div><DIV CLASS="sect2">
391 <H3 CLASS="sect2">
392 <A CLASS="title" NAME="appa-pgfId-986095">
393 A.5.12 ssl ciphers</a></h3><P CLASS="para">
394 This option sets the ciphers on which SSL will decide during the negotiation phase of the SSL connection. Samba can use any of the following ciphers:</p><PRE CLASS="programlisting">
395 DEFAULT
396 DES-CFB-M1
397 NULL-MD5
398 RC4-MD5
399 EXP-RC4-MD5
400 RC2-CBC-MD5
401 EXP-RC2-CBC-MD5
402 IDEA-CBC-MD5
403 DES-CBC-MD5
404 DES-CBC-SHA
405 DES-CBC3-MD5
406 DES-CBC3-SHA
407 RC4-64-MD5
408 NULL</pre><P CLASS="para">
409 It is best not to set this option unless you are familiar with the SSL protocol and want to mandate a specific cipher suite.</p></div><DIV CLASS="sect2">
410 <H3 CLASS="sect2">
411 <A CLASS="title" NAME="appa-pgfId-986097">
412 A.5.13 ssl version</a></h3><P CLASS="para">
413 This global option specifies the version of SSL that Samba will use when handling encrypted connections. The default value is <CODE CLASS="literal">
414 ssl2or3</code>, which specifies that either version 2 or 3 of the SSL protocol can be used, depending on which version is negotiated in the handshake between the server and the client. However, if you want Samba to use only a specific version of the protocol, you can specify the following:</p><PRE CLASS="programlisting">
415 [global]
416         ssl version = ssl3</pre><P CLASS="para">
417 Again, it is best not to set this option unless you are familiar with the SSL protocol and want to mandate a specific version.</p></div><DIV CLASS="sect2">
418 <H3 CLASS="sect2">
419 <A CLASS="title" NAME="appa-pgfId-990580">
420 A.5.14 ssl compatibility</a></h3><P CLASS="para">
421 This global option specifies whether Samba should be configured to use other versions of SSL. However, because no other versions exist at this writing, the issue is  moot and the variable should always be left at the default.</p></div></div></blockquote>
422 <div>
423 <center>
424 <hr noshade size=1><TABLE WIDTH="515" BORDER="0" CELLSPACING="0" CELLPADDING="0">
425 <TR>
426 <TD ALIGN="LEFT" VALIGN="TOP" WIDTH="172">
427 <A CLASS="sect1" HREF="appa_04.html" TITLE="A.4 Setting Up SSL Proxy">
428 <IMG SRC="gifs/txtpreva.gif" ALT="Previous: A.4 Setting Up SSL Proxy" BORDER="0"></a></td><TD ALIGN="CENTER" VALIGN="TOP" WIDTH="171">
429 <A CLASS="book" HREF="index.html" TITLE="">
430 <IMG SRC="gifs/txthome.gif" ALT="" BORDER="0"></a></td><TD ALIGN="RIGHT" VALIGN="TOP" WIDTH="172">
431 <A CLASS="appendix" HREF="appb_01.html" TITLE="B. Samba Performance Tuning">
432 <IMG SRC="gifs/txtnexta.gif" ALT="Next: B. Samba Performance Tuning" BORDER="0"></a></td></tr><TR>
433 <TD ALIGN="LEFT" VALIGN="TOP" WIDTH="172">A.4 Setting Up SSL Proxy</td><TD ALIGN="CENTER" VALIGN="TOP" WIDTH="171">
434 <A CLASS="index" HREF="inx.html" TITLE="Book Index">
435 <IMG SRC="gifs/index.gif" ALT="Book Index" BORDER="0"></a></td><TD ALIGN="RIGHT" VALIGN="TOP" WIDTH="172">
436 B. Samba Performance Tuning</td></tr></table><hr noshade size=1></center>
437 </div>
438
439 <!-- End of sample chapter -->
440 <CENTER>
441 <FONT SIZE="1" FACE="Verdana, Arial, Helvetica">
442 <A HREF="http://www.oreilly.com/">
443 <B>O'Reilly Home</B></A> <B> | </B>
444 <A HREF="http://www.oreilly.com/sales/bookstores">
445 <B>O'Reilly Bookstores</B></A> <B> | </B>
446 <A HREF="http://www.oreilly.com/order_new/">
447 <B>How to Order</B></A> <B> | </B>
448 <A HREF="http://www.oreilly.com/oreilly/contact.html">
449 <B>O'Reilly Contacts<BR></B></A>
450 <A HREF="http://www.oreilly.com/international/">
451 <B>International</B></A> <B> | </B>
452 <A HREF="http://www.oreilly.com/oreilly/about.html">
453 <B>About O'Reilly</B></A> <B> | </B>
454 <A HREF="http://www.oreilly.com/affiliates.html">
455 <B>Affiliated Companies</B></A><p>
456 <EM>&copy; 1999, O'Reilly &amp; Associates, Inc.</EM>
457 </FONT>
458 </CENTER>
459 </BODY>
460 </html>