如何解决 TLS/SSL 使用了不安全的加密算法: ARCFOUR、CBC、HMAC-MD5、HMAC-RIPEMD160
弱点扫瞄
弱点: TLS Service Supports Weak Cipher Suite
Transport Layer Security (TLS), the successor to Secure Socket Layer (SSL), is a network protocol that encrypt communications between TLS servers (e.g., websites) and TLS clients (e.g., web browsers). Every communication is secured by a cipher suite: a combination of several algorithms working in concert. Cryptographic algorithms do not have a defined lifetime, but academics, researchers, and nation states are constantly evaluating them for weaknesses. Consensus on which algorithms are untrustworthy evolves over time, and if a communication is protected with a weak cipher suite then that communication can be altered or decrypted.
- Severity: Medium
- Risk: A TLS service was observed supporting weak cipher suites.
- Recommendation: Disable the cipher suites listed in the evidence column of the measurement.
解决方法
说明
与这一篇的内容相似,关闭 SSL/TLS 中不安全的算法即可。
执行步骤
[Web Server (Apache)]
编辑 /etc/httpd/conf.d/ssl.conf,修改 SSLCipherSuite 参数如下:
SSLCipherSuite "EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 !EECDH+aRSA+RC4 EECDH EDH+aRSA !RC4 !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS !EDH-RSA-DES-CBC3-SHA !ECDHE-RSA-DES-CBC3-SHA !DES-CBC3-SHA !ECDHE-RSA-RC4-SHA !RC4-MD5 !RC4-SHA"
2. 重新启动 Apache:
$ service httpd restart
[Mail Server (Devecot)]
1. 编辑 /etc/dovecot/conf.d/10-ssl.conf,修改 ssl_cipher_list 参数如下:
ssl_cipher_list = kEECDH:+kEECDH+SHA:kEDH:+kEDH+SHA:+kEDH+CAMELLIA:kECDH:+kECDH+SHA:kRSA:+kRSA+SHA:+kRSA+CAMELLIA:!aNULL:!eNULL:!SSLv2:!RC4:!MD5:!DES:!EXP:!SEED:!IDEA:!3DES
2. 重新启动 Dovecot:
$ service dovecot restart
参考
- 如何停用 SSH Server 不安全的加密算法: ARCFOUR、CBC、HMAC-MD5、HMAC-RIPEMD160 | Vixual
- 如何解决 Web/Mail Server 使用了不安全的 SSL 通讯协定 | Vixual
- 如何自动将网站的 http:// 网址转址为 https:// | Vixual
- Cipher suite - Wikipedia
- Transport Layer Security - Wikipedia
- Disabling weak protocols and ciphers in Centos with Apache - Server Fault
- Securing dovecot with SSL/TLS on RHEL6 - Red Hat Customer Portal
- Secure Dovecot SSL settings by following Mozilla's Security/Server Side TLS guidelines · GitHub
No comments yet.