openbsd-ports/security/stunnel/patches/patch-tools_stunnel_conf-sample_in

43 lines
1.3 KiB
Plaintext
Raw Normal View History

2006-09-27 11:30:10 -04:00
--- tools/stunnel.conf-sample.in.orig Thu Aug 31 21:02:30 2006
+++ tools/stunnel.conf-sample.in Wed Sep 27 16:40:43 2006
@@ -3,18 +3,17 @@
2004-12-27 03:24:44 -05:00
; Please make sure you understand them (especially the effect of chroot jail)
2004-12-27 03:24:44 -05:00
; Certificate/key is needed in server mode and optional in client mode
-cert = @prefix@/etc/stunnel/mail.pem
2004-12-27 03:24:44 -05:00
-;key = @prefix@/etc/stunnel/mail.pem
+cert = @sysconfdir@/ssl/private/stunnel.pem
2006-03-23 10:49:53 -05:00
+;key = @sysconfdir@/ssl/private/stunnel.key
2004-12-27 03:24:44 -05:00
2006-09-27 11:30:10 -04:00
; Protocol version (all, SSLv2, SSLv3, TLSv1)
sslVersion = SSLv3
2004-12-27 03:24:44 -05:00
; Some security enhancements for UNIX systems - comment them out on Win32
2006-03-23 10:49:53 -05:00
-chroot = @prefix@/var/lib/stunnel/
-setuid = nobody
2006-09-27 11:30:10 -04:00
-setgid = @DEFAULT_GROUP@
-; PID is created inside chroot jail
-pid = /stunnel.pid
2004-12-27 03:24:44 -05:00
+chroot = /var/stunnel/
+setuid = _stunnel
+setgid = _stunnel
2004-12-27 03:24:44 -05:00
+pid = /var/run/stunnel.pid
2004-12-27 03:24:44 -05:00
; Some performance tunings
socket = l:TCP_NODELAY=1
2006-09-27 11:30:10 -04:00
@@ -30,12 +29,12 @@ socket = r:TCP_NODELAY=1
2005-10-22 14:00:32 -04:00
; CApath is located inside chroot jail
2004-12-27 03:24:44 -05:00
;CApath = /certs
2005-10-22 14:00:32 -04:00
; It's often easier to use CAfile
2004-12-27 03:24:44 -05:00
-;CAfile = @prefix@/etc/stunnel/certs.pem
+;CAfile = @sysconfdir@/ssl/certs.pem
2005-10-22 14:00:32 -04:00
; Don't forget to c_rehash CRLpath
; CRLpath is located inside chroot jail
2004-12-27 03:24:44 -05:00
;CRLpath = /crls
2005-10-22 14:00:32 -04:00
; Alternatively you can use CRLfile
2004-12-27 03:24:44 -05:00
-;CRLfile = @prefix@/etc/stunnel/crls.pem
+;CRLfile = @sysconfdir@/ssl/crls.pem
2004-12-27 03:24:44 -05:00
; Some debugging stuff useful for troubleshooting
;debug = 7