~ubuntu-branches/ubuntu/gutsy/stunnel4/gutsy

« back to all changes in this revision

Viewing changes to tools/stunnel.conf-sample.in

  • Committer: Bazaar Package Importer
  • Author(s): Julien Lemoine
  • Date: 2006-11-07 20:22:04 UTC
  • mfrom: (3.1.5 feisty)
  • Revision ID: james.westby@ubuntu.com-20061107202204-b8b3rivwi3nla2pz
Tags: 3:4.18-2
* Updated chroot default path in configuration file
* Added LSB section in init script

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
; Sample stunnel configuration file by Michal Trojnara 2002-2005
 
1
; Sample stunnel configuration file by Michal Trojnara 2002-2006
2
2
; Some options used here may not be adequate for your particular configuration
3
3
; Please make sure you understand them (especially the effect of chroot jail)
4
4
 
5
5
; Certificate/key is needed in server mode and optional in client mode
6
 
;cert = @prefix@/etc/stunnel/mail.pem
7
 
;key = @prefix@/etc/stunnel/mail.pem
 
6
cert = /etc/stunnel/mail.pem
 
7
;key = /etc/stunnel/mail.pem
 
8
 
 
9
; Protocol version (all, SSLv2, SSLv3, TLSv1)
 
10
sslVersion = SSLv3
8
11
 
9
12
; Some security enhancements for UNIX systems - comment them out on Win32
10
 
;chroot = @prefix@/var/stunnel/
 
13
chroot = /var/lib/stunnel4/
11
14
setuid = stunnel4
12
15
setgid = stunnel4
13
16
; PID is created inside chroot jail
14
 
pid = /var/run/stunnel4/stunnel.pid
 
17
pid = /stunnel4.pid
15
18
 
16
19
; Some performance tunings
17
20
socket = l:TCP_NODELAY=1
23
26
 
24
27
; Authentication stuff
25
28
;verify = 2
26
 
; Don't forget to c_rehash CApath;  CApath is located inside chroot jail:
 
29
; Don't forget to c_rehash CApath
 
30
; CApath is located inside chroot jail
27
31
;CApath = /certs
28
 
; It's often easier to use CAfile:
29
 
;CAfile = @prefix@/etc/stunnel/certs.pem
30
 
; Don't forget to c_rehash CRLpath;  CRLpath is located inside chroot jail:
 
32
; It's often easier to use CAfile
 
33
;CAfile = /etc/stunnel/certs.pem
 
34
; Don't forget to c_rehash CRLpath
 
35
; CRLpath is located inside chroot jail
31
36
;CRLpath = /crls
32
 
; Alternatively you can use CRLfile:
33
 
;CRLfile = @prefix@/etc/stunnel/crls.pem
 
37
; Alternatively you can use CRLfile
 
38
;CRLfile = /etc/stunnel/crls.pem
34
39
 
35
40
; Some debugging stuff useful for troubleshooting
36
 
debug = 7
37
 
output = /var/log/stunnel4/stunnel.log
 
41
;debug = 7
 
42
;output = /var/log/stunnel4/stunnel.log
38
43
 
39
44
; Use it for client mode
40
 
client = yes
 
45
;client = yes
41
46
 
42
47
; Service-level configuration
43
48