Dobrica Pavlinušić's random unstructured stuff
https using stunnel: Revision 3
Quick guide based on "stunnel for mysql - server and client"<http://www.edna.narrabilis.com/2006/06/01/stunnel-for-mysql-server-and-client/> to add https to existing http server on demand.

{toc: }

^ Installation

.pre
apt-get install stunnel4
.pre

^ Create certificate

.pre
cd /etc/stunnel
openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout https.pem -out https.pem
.pre

^ Configuration file

`/etc/stunnel/httpd.conf`

.pre
cert = /etc/stunnel/https.pem
sslVersion = SSLv3
debug = 7

[https]
accept = 443
connect = 80
TIMEOUTclose = 0
.pre

^ Start tunnel

.pre
stunnel4 /etc/stunnel/https.conf
.pre