在对相关资产进行安全扫描的时候,发现腾讯云CLB TLS协议版本默认支持了 TLSv1、TLSv1.1,是个安全风险需要操作关闭,这里记录下操作过程。

验证支持的TLS版本
[root@imzcy ~]# curl --tlsv1.0 -XGET https://test.example.com/api/health
ok[root@imzcy ~]#
[root@imzcy ~]#
[root@imzcy ~]# curl --tlsv1.1 -XGET https://test.example.com/api/health
ok[root@imzcy ~]#
[root@imzcy ~]#
[root@imzcy ~]# curl --tlsv1.2 -XGET https://test.example.com/api/health
ok[root@imzcy ~]#
[root@imzcy ~]#curl:(35)SSL版本范围无效
[root@imzcy ~]# curl --tlsv1.3 -XGET https://test.example.com/api/health
curl: (35) SSL version range is not valid.
[root@imzcy ~]#新增个性化配置并与CLB绑定
个性化配置控制台:https://console.cloud.tencent.com/clb/config
个性化配置官方文档:https://cloud.tencent.com/document/product/214/15171
在 [个性化配置] 菜单页,点击 <新建> 新增一个配置文件。
填入自定义配置
与指定CLB进行绑定(绑定后配置开始生效),每个CLB仅支持绑定一个个性化配置,如果需要绑定其他个性化配置,则需要先将当前的配置解绑。

重新使用 TLSv1.0 版本请求进行验证,提示 curl:(35)无法与对等方安全通信:没有常见的加密算法。
[root@imzcy ~]# curl --tlsv1.0 -XGET https://test.example.com/api/health
curl: (35) Cannot communicate securely with peer: no common encryption algorithm(s).
[root@imzcy ~]#
本文采用 知识共享署名4.0 国际许可协议进行许可。
本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名。
如果您的问题未解决,欢迎微信扫描右侧二维码与我联系。