How to disable weak ciphers on a web server
Weak cipher suites are old encryption methods your server still offers to browsers. You turn them off in your web server, hosting panel or CDN settings so that only TLS 1.2 and 1.3 with modern ciphers remain.
When a browser connects to your site over HTTPS, it and your server agree on a cipher suite: the set of methods used to encrypt the connection. A server can offer a long list. If old, broken options are still on that list, a security scanner reports weak SSL cipher suites enabled.
Visitors usually see nothing. The padlock still shows and the site loads. The problem appears in a security scan, a compliance questionnaire or a tool like SSL Labs, often with a grade capped at B or C.
What counts as a weak cipher
Scanners usually flag these:
- RC4, broken for years.
- 3DES and DES, which use small 64-bit blocks (the Sweet32 weakness).
- EXPORT and NULL ciphers, which give little or no encryption.
- Anonymous ciphers (aNULL), which skip checking who the server is.
- MD5-based suites, which rely on an outdated hash.
- Old protocol versions: SSLv3, TLS 1.0 and TLS 1.1. These are protocols rather than ciphers, but scans report them together and you fix them in the same place.
Why it matters
Security: with the right conditions, an attacker who can watch traffic between a visitor and your site may be able to read or tamper with it. Practical attacks are not easy, but there is no good reason to leave the door open.
Trust and sales: payment card rules such as PCI DSS expect old protocols to be off, and customers or partners who run a security check on your site will see the warning.
Search: Google does not rank sites by cipher list. The indirect risk is that a badly configured HTTPS setup can lead to browser warnings, and those do cost visits and sales.
How to check your site for free
Pick one of these:
- SSL Labs Server Test (ssllabs.com/ssltest): enter your domain. Look at the Protocols section and the Cipher Suites list. Anything marked weak, plus TLS 1.0 or 1.1 shown as Yes, needs fixing.
- nmap, if you are comfortable with a terminal.
- testssl.sh, a free open source command line checker.
- openssl, to test one specific old option.
nmap --script ssl-enum-ciphers -p 443 example.com
openssl s_client -connect example.com:443 -tls1_1
openssl s_client -connect example.com:443 -tls1_2 -cipher DES-CBC3-SHA
If the openssl commands connect successfully, the server still accepts that old option. A handshake failure is what you want to see.
How to fix it in general
The goal is the same everywhere:
- Allow only TLS 1.2 and TLS 1.3.
- Allow only modern suites: ECDHE key exchange with AES-GCM or ChaCha20-Poly1305.
- Leave TLS 1.3 alone. All of its suites are considered strong, so there is nothing to trim.
The Mozilla SSL Configuration Generator (ssl-config.mozilla.org) gives you a ready made block for your server software and version. Use its Intermediate profile unless you know you need something else. Before editing, copy the current config file somewhere safe, and after editing, test the syntax before reloading.
Fixing it on common platforms
Nginx. In your server block or an included SSL file (often under /etc/nginx/), set:
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305;
ssl_prefer_server_ciphers off;
Then run nginx -t and reload. More detail is in the Nginx guide.
Apache. In your SSL virtual host or ssl.conf (the location depends on your Linux distribution), set:
SSLProtocol -all +TLSv1.2 +TLSv1.3
SSLCipherSuite ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305
SSLHonorCipherOrder off
Run apachectl configtest and reload. See the Apache guide for more.
IIS (Windows Server). Ciphers and protocols are controlled by Windows itself, through the registry or Group Policy. Many admins use the free IIS Crypto tool from Nartac Software, which has a Best Practices button. Back up first and restart the server afterwards.
Cloudflare. If your site sits behind Cloudflare, visitors connect to Cloudflare first. Under SSL/TLS, Edge Certificates, look for Minimum TLS Version and set it to 1.2. Cipher suite controls exist too, but where they appear depends on your plan and the current dashboard. See the Cloudflare guide.
AWS. On CloudFront, choose a current security policy for the distribution. On an Application Load Balancer, choose a TLS 1.2 or TLS 1.3 security policy for the HTTPS listener.
cPanel and Plesk. On shared hosting you often cannot change this yourself, so ask your host to disable TLS 1.0, TLS 1.1 and weak ciphers. With WHM access, the Apache global configuration holds the protocol and cipher settings. In Plesk, look under Tools and Settings for SSL/TLS settings. Names vary by version.
One caution: very old systems (Windows XP, old Android 4 phones, old Java versions) may stop connecting. For almost every business site this is an acceptable trade.
How to confirm the fix worked
- Run the SSL Labs test again. TLS 1.0 and 1.1 should say No, and no suite should be marked weak. Allow a few minutes if you use a CDN, and use the clear cache option on the test page.
- Run the nmap command. Only TLSv1.2 and TLSv1.3 should be listed.
- Re-run the openssl commands above. They should fail with a handshake error.
- Open your site in a normal browser and load a few pages, including checkout or login, to make sure nothing broke.
How to stop it coming back
Weak ciphers return mostly by accident: a server upgrade replaces your config file, a new site is cloned from an old template, or a host migrates you to a default setup. To prevent that:
- Keep your TLS settings in one included file, and note where it lives.
- Recheck with SSL Labs after any server, hosting or CDN change.
- Review the Mozilla recommended settings about once a year, because the advice shifts as ciphers age.
- Keep related settings healthy too, such as the HSTS header.
If you would rather not remember to check, the week 2 OpenVAS security scan at SiteMonday looks for this kind of issue and lists it in a ranked fix list. It finds and explains the problem. The change itself is for you or your developer to make.
Step by step for your platform
- Weak SSL cipher suites enabled on Nginx
- Weak SSL cipher suites enabled on Apache
- Weak SSL cipher suites enabled on IIS
- Weak SSL cipher suites enabled on Cloudflare
- Weak SSL cipher suites enabled on AWS
- Weak SSL cipher suites enabled on cPanel
- Weak SSL cipher suites enabled on Plesk
Questions
Will disabling weak ciphers break my website?
For almost all visitors, no. Only very old browsers and devices that cannot use TLS 1.2 will fail to connect. Test the site afterwards, and keep a backup of the old config so you can roll back.
Is TLS 1.0 a weak cipher?
Technically it is a protocol version, not a cipher. Scans report it alongside weak ciphers, and you should disable TLS 1.0 and 1.1 at the same time.
I am on shared hosting. Can I fix this myself?
Usually not, because the settings belong to the server. Contact your host, name the weak ciphers or protocols from your scan report, and ask them to disable them or move you to a current server.
Does this affect my Google ranking?
Cipher choice itself is not a ranking factor. Having working HTTPS matters, and a misconfigured connection can cause browser warnings that drive visitors away.
How do I know which ciphers my server offers?
Run your domain through the free SSL Labs Server Test, or use the nmap ssl-enum-ciphers script. Both list every protocol and suite the server accepts.
Do I need to configure TLS 1.3 ciphers?
No. All TLS 1.3 suites are considered strong, so you simply keep TLS 1.3 enabled and trim the TLS 1.2 list.