Switch on TLS 1.3
Switch on the latest version.
TLS 1.3 is faster and safer, and quantum-safe encryption works only on it. Visitors with older browsers keep using TLS 1.2.
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.
- Choose a quiet hour, and stay until the check passes.
The steps
Needs NGINX 1.13 and OpenSSL 1.1.1 or newer. 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 reloadIf it shows an error, or the site stops, put the saved copy back and restart the server program at once.
Needs Apache 2.4.37 and OpenSSL 1.1.1 or newer. Replace every SSLProtocol line with this one. If there is none, add it to the main settings, outside any site.
SSLProtocol all -SSLv3 -TLSv1 -TLSv1.1Then check the settings and reload.
sudo apachectl configtest && sudo apachectl gracefulIf it shows an error, or the site stops, put the saved copy back and restart the server program at once.
On by itself with OpenSSL 1.1.1 or newer. Delete ssl-max-ver and no-tlsv13 wherever they appear, and keep this line in the global section.
ssl-default-bind-options ssl-min-ver TLSv1.2Then check the settings and reload.
sudo haproxy -c -f /etc/haproxy/haproxy.cfg && sudo systemctl reload haproxyIf it shows an error, or the site stops, put the saved copy back and restart the server program at once.
On by itself. If our check says otherwise, delete the protocols line from the tls settings, and the tls { } around it if that leaves it empty.
Then check the settings and reload.
sudo systemctl reload caddyIf it shows an error, or the site stops, put the saved copy back and restart the server program at once.
On by itself from Windows Server 2022. Older versions do not support it, and the registry tricks found online are not safe: upgrade, or place the site behind Cloudflare.
Under SSL/TLS, Edge Certificates, switch on TLS 1.3.
CloudFront: on by itself. Load balancer: choose the policy below for the HTTPS listener, after noting the current one. TLS 1.2 keeps working.
ELBSecurityPolicy-TLS13-1-2-Res-2021-06In WHM, open Apache Configuration, Global Configuration, and set SSL/TLS Protocols to the line below. Save, then rebuild and restart Apache.
all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1Run this on the server as administrator. It changes every site and the mail service, so test old mail programs afterwards.
plesk bin server_pref -u -ssl-protocols 'TLSv1.2 TLSv1.3'Check that it worked
openssl s_client -tls1_3 -connect example.com:443 -servername example.com </dev/nullThe answer should contain TLSv1.3. 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.
- Choosing a setting that allows TLS 1.3 only. Keep TLS 1.2 beside it.