I have the same problem on two Ubuntu 18.04 hosts. The error does not occur immediately. Sometimes it takes several days.
Reboot (systemctl restart stunnel4.service) helps. stunnel.log: INTERNAL ERROR: Bad magic at ssl.c, line 117 # stunnel4 -v [ ] Clients allowed=500 [.] stunnel 5.44 on x86_64-pc-linux-gnu platform [.] Compiled with OpenSSL 1.1.0g 2 Nov 2017 [.] Running with OpenSSL 1.1.1 11 Sep 2018 [.] Update OpenSSL shared libraries or rebuild stunnel [.] Threading:PTHREAD Sockets:POLL,IPv6,SYSTEMD TLS:ENGINE,FIPS,OCSP,PSK,SNI Auth:LIBWRAP [ ] errno: (*__errno_location ()) [!] Invalid configuration file name "-v" [!] realpath: No such file or directory (2) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1847275 Title: stunnel4: "INTERNAL ERROR: Bad magic at ssl.c, line 117" - DoS vulnerability To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/stunnel4/+bug/1847275/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs