1 ; Sample stunnel configuration file by Michal Trojnara 2002-2009
2 ; Some options used here may not be adequate for your particular configuration
3 ; Please make sure you understand them (especially the effect of the chroot jail)
5 ; Certificate/key is needed in server mode and optional in client mode
6 cert = /etc/ssl/certs/stunnel.pem
7 ;key = /etc/stunnel/mail.key
9 ; Protocol version (all, SSLv2, SSLv3, TLSv1)
12 ; Some security enhancements for UNIX systems - comment them out on Win32
13 chroot = /var/run/stunnel/
16 ; PID is created inside the chroot jail
19 ; Some performance tunings
20 socket = l:TCP_NODELAY=1
21 socket = r:TCP_NODELAY=1
24 ; Workaround for Eudora bug
25 ;options = DONT_INSERT_EMPTY_FRAGMENTS
27 ; Authentication stuff
29 ; Don't forget to c_rehash CApath
30 ; CApath is located inside chroot jail
32 ; It's often easier to use CAfile
33 ;CAfile = /etc/stunnel/certs.pem
34 ;CAfile = /etc/pki/tls/certs/ca-bundle.crt
35 ; Don't forget to c_rehash CRLpath
36 ; CRLpath is located inside chroot jail
38 ; Alternatively you can use CRLfile
39 ;CRLfile = /etc/stunnel/crls.pem
41 ; Some debugging stuff useful for troubleshooting
45 ; Use it for client mode
48 ; Service-level configuration
70 ; port offering ssl trac visibility to the web.
72 ; port on localhost for service.
73 connect = localhost:10042