MENTECHLet’s talkالعربية
Menu

Switch off TLS 1.0 and 1.1

Switch off the old versions.

TLS 1.0 and 1.1 have known weaknesses, and every major browser stopped using them in 2020. Security audits and card-payment rules ask for them to be off.

Before you start

  • Whoever runs your server or hosting can do this. Send them this page.
  • Copy the settings file to another folder, such as your home folder, before you change it. Putting it back is the way to undo this.
  • List anything old that connects to this server: payment terminals, scanners, machines older than 2014. Test them before and after.

The steps

Replace every ssl_protocols line with this one. If there is none, add it to the http section of nginx.conf.

ssl_protocols TLSv1.2 TLSv1.3;

Then check the settings and reload.

sudo nginx -t && sudo nginx -s reload

If it shows an error, or the site stops, put the saved copy back and restart the server program at once.

Check that it worked

openssl s_client -tls1_1 -cipher 'DEFAULT@SECLEVEL=0' -connect example.com:443 -servername example.com </dev/null

Good: an alert about the protocol version. "No protocols available" comes from the computer you run it on and proves nothing. Repeat it with -tls1 in place of -tls1_1. Run it on the server. The openssl that comes with a Mac cannot do this.

To undo it

Put the saved copy of the settings back, then check and reload again.

Common mistakes

  • Changing one site and forgetting the others. Search every settings file for the same line.
  • Allowing TLS 1.3 only. Visitors with slightly older devices are turned away.
Have us fix it for you
CallWhatsAppLet’s talk