2014-09-22 19:59:00 +00:00
|
|
|
diff -urNp stunnel-5.04-patched/tools/stunnel.conf-sample.in stunnel-5.04-current/tools/stunnel.conf-sample.in
|
|
|
|
--- stunnel-5.04-patched/tools/stunnel.conf-sample.in 2014-05-08 04:31:52.000000000 -0400
|
|
|
|
+++ stunnel-5.04-current/tools/stunnel.conf-sample.in 2014-09-22 15:44:33.959312856 -0400
|
2012-01-03 15:52:20 +00:00
|
|
|
@@ -9,7 +9,7 @@
|
2010-01-26 20:15:10 +00:00
|
|
|
|
2011-08-01 22:02:19 +00:00
|
|
|
; A copy of some devices and system files is needed within the chroot jail
|
|
|
|
; Chroot conflicts with configuration file reload and many other features
|
2014-07-14 18:39:31 +00:00
|
|
|
-;chroot = @prefix@/var/lib/stunnel/
|
|
|
|
+;chroot = @localstatedir@/run/stunnel/
|
2011-08-01 22:02:19 +00:00
|
|
|
; Chroot jail can be escaped if setuid option is not used
|
2010-01-26 20:15:10 +00:00
|
|
|
setuid = nobody
|
|
|
|
setgid = @DEFAULT_GROUP@
|
2014-07-14 18:39:31 +00:00
|
|
|
@@ -26,8 +26,8 @@ setgid = @DEFAULT_GROUP@
|
2012-01-03 15:52:20 +00:00
|
|
|
; **************************************************************************
|
2011-08-01 22:02:19 +00:00
|
|
|
|
|
|
|
; Certificate/key is needed in server mode and optional in client mode
|
|
|
|
-cert = @prefix@/etc/stunnel/mail.pem
|
|
|
|
-;key = @prefix@/etc/stunnel/mail.pem
|
|
|
|
+cert = @sysconfdir@/stunnel/mail.pem
|
|
|
|
+;key = @sysconfdir@/stunnel/mail.pem
|
|
|
|
|
|
|
|
; Authentication stuff needs to be configured to prevent MITM attacks
|
|
|
|
; It is not enabled by default!
|
2012-01-03 15:52:20 +00:00
|
|
|
@@ -36,12 +36,13 @@ cert = @prefix@/etc/stunnel/mail.pem
|
2010-01-26 20:15:10 +00:00
|
|
|
; CApath is located inside chroot jail
|
|
|
|
;CApath = /certs
|
2011-06-28 17:17:30 +00:00
|
|
|
; It's often easier to use CAfile
|
2010-01-26 20:15:10 +00:00
|
|
|
-;CAfile = @prefix@/etc/stunnel/certs.pem
|
|
|
|
+;CAfile = @sysconfdir@/stunnel/certs.pem
|
|
|
|
+;CAfile = @sysconfdir@/pki/tls/certs/ca-bundle.crt
|
2011-06-28 17:17:30 +00:00
|
|
|
; Don't forget to c_rehash CRLpath
|
2010-01-26 20:15:10 +00:00
|
|
|
; CRLpath is located inside chroot jail
|
|
|
|
;CRLpath = /crls
|
2011-06-28 17:17:30 +00:00
|
|
|
; Alternatively CRLfile can be used
|
2010-01-26 20:15:10 +00:00
|
|
|
-;CRLfile = @prefix@/etc/stunnel/crls.pem
|
|
|
|
+;CRLfile = @sysconfdir@/stunnel/crls.pem
|
|
|
|
|
2011-08-01 22:02:19 +00:00
|
|
|
; Disable support for insecure SSLv2 protocol
|
|
|
|
options = NO_SSLv2
|