c1c61d
To generate a key and self signed certificate, execute the following commands:
c1c61d
c1c61d
cd /etc/pki/tls/certs
c1c61d
make stunnel.pem
c1c61d
c1c61d
Note that by default, the file containing the key and certificate has its
c1c61d
permissions set to 0600, which means that any service using it needs to be
c1c61d
started as root in order to read it.  Such a service should be configured
c1c61d
to switch UIDs using stunnel's "-s" flag.