Increasing HAProxy's SSL Security

Mon 23 May 2016

I use an HAProxy load balancer in front of my Apache server that runs this website, and I wanted to see how secure my SSL configuration was. I proceeded to the Qualys SSL Labs Server Test website, and to my dissappointment, I didn't do well. My server got a C.


I left HAProxy's default SSL configuration in place when I set it up, and many of the defaults are considered insecure these days. Specifically, my setup was receiving poor grades by allowing old, insecure protocols (SSL3) and insecure cipher suites.

After some Google searching, I found this guide which provided some good configurations for HAProxy. Specifically, in global, I added the following::

   tune.ssl.default-dh-param 2048

   ssl-default-bind-options no-sslv3 no-tls-tickets

After reloading the HAProxy service, I ran a new test, and voila! I received an A rating!


It should be noted that the above configuration will break compatibility with some very crusty browsers. If your visitors are still using Internet Explorer 6, tell them to upgrade.