Home / Fix guides / Website security

How to disable TLS 1.0 and 1.1 on my server

Change your server or hosting setting so it accepts only TLS 1.2 and TLS 1.3, then reload the service and test again. On most setups this is one line or one dropdown.

TLS is the encryption behind the padlock in your visitors' browsers. TLS 1.0 (from 1999) and TLS 1.1 (from 2006) are old versions with known weaknesses, and the standards body formally retired both in 2021 (RFC 8996). If your server still accepts them, security scanners flag it as a problem. The fix is to allow only TLS 1.2 and TLS 1.3.

What the problem is and what you see

Every secure connection starts with the browser and the server agreeing on a TLS version. A server that still lists 1.0 and 1.1 will use them if a client asks. Normal visitors never notice, because modern browsers choose 1.2 or 1.3 on their own.

You usually find out from a security scan, a payment provider or a compliance questionnaire, with wording like "deprecated TLS protocol" or "TLS 1.0 and 1.1 enabled". Your site keeps working as normal, which is why the setting often stays untouched for years.

Why it matters

  • Security: the old versions rely on designs with known attacks. Real attacks need the right conditions, but there is no good reason to leave the door open.
  • Compliance and sales: payment card rules (PCI DSS) do not accept early TLS, and many customers' security reviews will mark it as a fail.
  • Trust: a failed scan or audit item is awkward to explain to a client or partner, and easy to avoid.
  • Little downside: current browsers and phones already use 1.2 or 1.3, so removing the old versions rarely affects real visitors.

How to check if your site has it (free ways)

  1. Online test: the free Qualys SSL Labs server test (ssllabs.com/ssltest) lists which protocols your site supports. Look for TLS 1.0 and TLS 1.1 marked as "Yes".
  2. nmap: if you are comfortable with a terminal, run the command below. It lists every protocol version the server accepts.
  3. OpenSSL: you can try to connect using only the old version. Some modern OpenSSL builds refuse to try old versions at all, so an error here does not prove your server is safe.
nmap --script ssl-enum-ciphers -p 443 example.com
openssl s_client -connect example.com:443 -tls1

If the nmap output shows TLSv1.0 or TLSv1.1 sections, they are enabled. Test every hostname that has its own server, such as www, a shop subdomain or a mail host.

Before you change anything

Very old software cannot speak TLS 1.2. Examples are Windows XP, Android 4.4 and older, Java 6 and 7, and some old payment terminals, scripts or stock systems that call your site. Ask your developer if anything like that connects to you. If you run your own server, you can log the protocol of each request (in nginx, the $ssl_protocol variable) for a week to see whether anyone still uses the old ones.

Also keep a backup of the config file you are about to edit.

How to fix it in general

The idea is always the same: find the setting that lists allowed protocols and make it say TLS 1.2 and TLS 1.3 only. Then test the config and reload. Where that setting lives depends on who controls your server.

Common platforms

nginx. In the server or http block (often under /etc/nginx/), set the line below. Then run sudo nginx -t and sudo systemctl reload nginx. If several sites share one IP address and port, the setting of the default server can apply to all of them, so check each block. Full steps are in the nginx guide.

ssl_protocols TLSv1.2 TLSv1.3;

Apache. Look for SSLProtocol in your SSL config or virtual host (on Debian and Ubuntu, often mods-enabled/ssl.conf; Let's Encrypt setups may add an include file that also sets it). Use the line below, then run apachectl configtest and reload. TLS 1.3 needs Apache 2.4.36 or newer with OpenSSL 1.1.1 or newer. See the Apache guide.

SSLProtocol -all +TLSv1.2 +TLSv1.3

IIS (Windows Server). Protocols are controlled in the Windows registry under SCHANNEL, not in IIS itself. The free IIS Crypto tool from Nartac Software changes these safely, and the server needs a restart afterwards. Defaults differ by Windows Server version. See the IIS guide.

Cloudflare. Under SSL/TLS, then Edge Certificates, find Minimum TLS Version and choose TLS 1.2. This covers visitors connecting to Cloudflare. The connection from Cloudflare to your own server is separate, so fix that too. See the Cloudflare guide.

AWS. CloudFront uses a security policy on the distribution, and load balancers use a security policy on the HTTPS listener. Pick a recent policy whose name shows a minimum of TLS 1.2. See the AWS guide.

cPanel and Plesk. On a server you control, cPanel's WHM has Apache global configuration settings for SSL protocols, and Plesk has SSL/TLS settings under Tools and Settings. The names vary between versions. On shared hosting you usually cannot change this yourself, so open a support ticket and ask them to disable TLS 1.0 and 1.1 for your site. Guides: cPanel and Plesk.

How to confirm the fix worked

  1. Run the SSL Labs test again. TLS 1.0 and TLS 1.1 should show "No". SSL Labs may cache results, so use the option to clear the cache and start a new scan.
  2. Re-run the nmap command. Only TLSv1.2 and TLSv1.3 should appear.
  3. Open the site in a current browser and check key paths, such as checkout and login.
  4. If you use a CDN or load balancer in front of the server, test both the public address and the origin.

If TLS 1.3 is missing, that is a separate and easy improvement: see TLS 1.3 not enabled.

How to stop it coming back

  • Keep the protocol setting in one place and note it in your server documentation.
  • After server upgrades, new control panel versions or a move to new hosting, test again, because defaults can return.
  • When you add a new subdomain or load balancer, check its TLS settings the same day.
  • Rescan on a schedule. SiteMonday's week 2 OpenVAS security scan checks for outdated TLS versions along with other server issues, once the owner has proved they own the site. It explains what it finds, while the fix itself is for you or your developer.

If you do not run your own server, the quickest route is to send your host or developer this one sentence: "Please disable TLS 1.0 and 1.1 and allow only TLS 1.2 and 1.3 for our domain."

Step by step for your platform

Questions

Will disabling TLS 1.0 and 1.1 break my website for visitors?

For almost everyone, no, because current browsers and phones use TLS 1.2 or 1.3. Only very old devices and software, such as Windows XP or Java 6, may fail to connect.

Do I need to restart the server after the change?

Usually a reload of the web server service is enough (nginx, Apache). On Windows Server with registry changes, a restart is required.

Is TLS 1.2 still safe to keep?

Yes. TLS 1.2 is still widely used and is considered acceptable when configured with modern ciphers. TLS 1.3 is newer and preferred where available.

I am on shared hosting and cannot edit server files. What do I do?

Contact your host and ask them to disable TLS 1.0 and 1.1 for your account or server. If they refuse, putting a service like Cloudflare in front of your site lets you set a minimum TLS version for visitors.

Why does my scan still show old TLS after I fixed it?

Common causes are a second server block or hostname with its own setting, a CDN or load balancer in front, a cached scan result, or a config that was edited but not reloaded.

Does this affect my Google ranking?

Google does not publish this as a ranking factor. The reasons to fix it are security, compliance and customer trust.

Related problems