Professional Documents
Culture Documents
If you are running an HTTP server and would like to enable SSL, an easy way to do that is to
use a terminating proxy. Among others, stunnel (https://www.stunnel.org/) is relatively
simple and very easy to use.
$ stunnel -version
stunnel 5.30 on x86_64-pc-linux-gnu platform
Compiled with OpenSSL 1.0.2e 3 Dec 2015
Running with OpenSSL 1.0.2g 1 Mar 2016
Note that stunnel is very capable, it can do more than just upgrading a web server from
HTTP to HTTPS. For this blog post however, that will be the only thing we will cover.
1 of 5 11/15/19, 2:02 PM
Upgrading to HTTPS with stunnel · ariya.io https://ariya.io/2017/08/upgrading-to-https-with-s...
pid = /home/ariya/stunnel.pid
[https]
accept = 8443
connect = 8080
cert = example.pem
stunnel webserver.conf
Assuming there is a web server running on port 8080, the HTTPS version will be made
available by stunnel on port 8443. To check that, simply open your favorite web browser
and point it to localhost:8443 . Typically there will be a warning due to the above self-
sign test certificate, but otherwise it should work just fine.
2 of 5 11/15/19, 2:02 PM
Upgrading to HTTPS with stunnel · ariya.io https://ariya.io/2017/08/upgrading-to-https-with-s...
Now, you have less excuse not to enable HTTPS for everything (https://https.cio.gov
/everything/)!
Related posts:
3 of 5 11/15/19, 2:02 PM
Upgrading to HTTPS with stunnel · ariya.io https://ariya.io/2017/08/upgrading-to-https-with-s...
♡ this article? Explore more articles (/articles) and follow me Twitter (https://twitter.com
/intent/follow?screen_name=AriyaHidayat).
%20stunnel&url=https%3a%2f%2fariya.io%2f2017%2f08%2fupgrading-to-https-with-stunnel&via=AriyaHidayat)
riya.io%2f2017%2f08%2fupgrading-to-https-with-stunnel)
4 of 5 11/15/19, 2:02 PM
Upgrading to HTTPS with stunnel · ariya.io https://ariya.io/2017/08/upgrading-to-https-with-s...
1 Comment ariya.io
1 Login
Name
ALSO ON ARIYA.IO
Shrinking PNG Images with Static Site with Hugo and Firebase
Quantization 12 comments • 2 years ago
5 comments • 3 years ago Benjamin Waller — Hello for this
Ariya Hidayat — Faster loading site => information Ariya,
happy visitors :-) I'm fairly new to this and have a couple of
5 of 5 11/15/19, 2:02 PM