I am using stunnel to create an encrypted tunnel from localhost:110 to mailserver:995. I used to pop my mails through this tunnel but with the new version 3.22-r2 it no longer works altough I didn't change any part of the configuration besides installing 3.22-r2 over 3.22-r1. The error message on localhost is: stunnel[11923]: Unable to get access to the SSL private key. stunnel[11923]: SSL_get_privatekey: Peer suddenly disconnected The error message on the mailserver is: stunnel[14537]: SSL_accept: Peer suddenly disconnected The mailserver runs stunnel 3.22-1 (Debian package). Absolutely nothing as changed on the mailserver side in the last months. I emerged stunnel-3.22-r1 and everything works fine like it used to. Reproducible: Always Steps to Reproduce: 1. /usr/sbin/stunnel -c -s $USER -d 127.0.0.1:110 -r $MAILSERVER:995 2. telnet localhost 110 Actual Results: stunnel closes the connection Expected Results: set up the tunnel and let me pop my mails through it Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) ================================================================= System uname: 2.4.20 i686 AMD Athlon(tm) XP 1600+ GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo/ " CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb:/usr/kde/3.1/share/config:/usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/usr/portage/tmp" PORTDIR_OVERLAY="" USE="x86 oss 3dnow apm avi crypt cups gif jpeg libg++ mmx mpeg ncurses nls pdflib png quicktime spell truetype xmms xv zlib gdbm slang readline svga guile X sdl gpm tcpd pam libwww ssl python imlib oggvorbis gnome opengl aalib acpi -arts -berkdb cdr dga directfb -encode esd ethereal fbcon -gtk gtk2 gtkhtml ipv6 -java -kde maildir matrox -mikmod -motif mozilla mule perl -qt tetex -xml2" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -Os -pipe -fomit-frame-pointer" CXXFLAGS="-march=athlon-xp -Os -pipe -fomit-frame-pointer" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
Is this still a problem?
No, surprisingly it's not but I don't understand why. Since I reported the bug I didn't try the stunnel-3.22-r2 anymore but when I had it installed back then I could always reproduce the error. I just emerged it to test again and it works fine. Strange...
Sorry, the problem is still existent. I forgot to close down the tunnel that was established with stunnel-3.22-r1, so obviously -r2 couldn't establish a new one.
Latest stable should be 4.04, is this still a problem on this new version? I've also updated the openssl dependency to fix any blinding issues. Re-open this bug if there still is a problem.