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

Unable to disable TLSv1.0 and TLSv1.1 on nginx

· 52CE 我爱测

I was having a devil of a time disabling TLSv1 and TLSv1.1 on my nginx server despite following one of the many guides you'll find with a quick google search. Specifically, the recommendation was done by changing this line in you…

问题原文

原帖链接 · darrin · CC BY-SA 4.0

I was having a devil of a time disabling TLSv1 and TLSv1.1 on my nginx server despite following one of the many guides you'll find with a quick google search.

Specifically, the recommendation was done by changing this line in your nginx configuration file:

ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

To something like this:

ssl_protocols TLSv1.2;

Despite changing the config to support only TLSv1.2 my nginx server appears to keep TLSv1 and TLSv1.1 enabled as evidenced by doing the Qualsys SSL Labs Test thereby limiting our overall score to a "B". Seemingly such an easy fix - super frustrating.

已采纳解答

原帖链接 · darrin · CC BY-SA 4.0

After many iterations and experimentation what I found was that somehow the cipher list I'd specified appears to relate to this problem. Once I got this list right TLSv1 and TLSv1.1 are in fact correctly disabled (again according to the Qualsys SSL Labs Test and we do once again show an A+ grade for our sites. Here are the settings that got us there:

ssl_protocols TLSv1.2;
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:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;

One resource I found during this experimentation that seems worth keeping around is the Mozilla SSL Configuration Generator. This allowed me to confirm the sanity of my server configuration and get a larger list of supported secure ciphers.

--

Nowhere else that I ran into mentioned this - so maybe it was something about a slightly older version of nginx I was using? Whatever the case - I hope this helps someone save a bunch of time.

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

资料来源与适用范围

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

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

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