Title: Using haproxy for TLS layer Author: Solène Date: 07 March 2019 Tags: openbsd Description: This article explains how to use haproxy to add a TLS layer to any TCP protocol. This includes http or gopher. The following example explains the minimal setup required in order to make it work, haproxy has a lot of options and I won't use them. The idea is to let haproxy manage the TLS part and let your http server (or any daemon listening on TCP) replying within the wrapped connection. You need a simple haproxy.cfg which can looks like that: defaults mode tcp timeout client 50s timeout server 50s timeout connect 50s dataswamp.org:70 /~solene/article-haproxy-tls:24: port field too long