Posted by Brian @ 11:20 pm on December 21st 2012

How to generate an SSL cert for Stunnel4

openssl req -new -x509 -days 365 -nodes -out stunnel.pem -keyout stunnel.pem

Copy the file to /etc/ssl/certs

Add or uncomment the following line in /etc/stunnel/stunnel4.conf:
cert = /etc/ssl/certs/stunnel.pem