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