Checking and improving HTTPS security

I’m a big fan of using SSL Labs’ SSL Server Test to check that my webservers are securely using HTTPS / SSL.

It takes a couple of minutes to run, and checks a wide range of SSL security issues.

I recently set up a new website and got a B to my shame! Well that won’t do!

SSL Server Test result showing a B grade

To improve the score, I needed to disable TLS 1.0 and TLS 1.1, which are insecure and deprecated.

Edit /etc/letsencrypt/options-ssl-apache.conf

Comment out the old SSLProtocol line:

# SSLProtocol             all -SSLv2 -SSLv3

Add in the new one:

SSLProtocol             TLSv1.2

Whilst I was there I removed some less-secure ciphers:

# SSLCipherSuite          ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS

SSLCipherSuite          ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256

And checked the other SSL settings:

SSLHonorCipherOrder     on
SSLCompression          off
SSLSessionTickets       off

A quick restart of apache:

$ apachectl configtest
$ apachectl restart

And I had the A grade I was looking for:

SSL Server Test result showing an A grade

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.