大网数据广告活动
服务器运维问答

How can I disable TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 cipher in Apache2?

· 52CE 我爱测

In SSL labs , I got that I'm using this "weak cipher": TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 Now in Apache, this is the set of suites I have enabled: SSLCipherSuite ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-…

问题原文

原帖链接 · The Quantum Physicist · CC BY-SA 4.0

In SSL labs, I got that I'm using this "weak cipher":

TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384

Now in Apache, this is the set of suites I have enabled:

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

To that list above, I tried adding !ECDHE-RSA-AES256-CBC-SHA384, but that didn't help. I also tried adding !CBC, and that doesn't fix the problem in SSL Labs either. What should I do to disable this cipher?

I'm on Debian Buster. The Apache version I'm using is 2.4.38-3+deb10u3. Everything is up-to-date.

已采纳解答

原帖链接 · Piotr P. Karwasz · CC BY-SA 4.0

The cipher suite you are trying to remove is called ECDHE-RSA-AES256-SHA384 by openssl.

Whenever in your list of ciphers appears AES256 not followed by GCM, it means the server will use AES in Cipher Block Chaining mode. This cipher is by no means broken or weak (especially when used with a good hash function like the SHA-2 variants you have in your list). It is just less recommended than Galois Counter Mode.

Before manually choosing your ciphers your should read Mozilla's Server Side TLS page to make an aware choice. E.g. Debian 8 is just 4 years old and it doesn't have openssl version 1.1.

Once you edit your list of cipher suites as you like, you can test the result with:

openssl ciphers -v 'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384'

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2019-11-18)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。