summaryrefslogtreecommitdiff
path: root/Lib/ssl.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-02-19 17:57:08 -0500
committerBenjamin Peterson <benjamin@python.org>2015-02-19 17:57:08 -0500
commit500af332f407d9a83a0232e4018e10cb49a76a79 (patch)
tree0905fc87c95afc33b30e5ce78716899ee3ecb808 /Lib/ssl.py
parent6a2c4a1a2964f1696732521a804672f663ebae59 (diff)
downloadcpython-git-500af332f407d9a83a0232e4018e10cb49a76a79.tar.gz
remove rc4 from the default client ciphers (closes #23481)
Diffstat (limited to 'Lib/ssl.py')
-rw-r--r--Lib/ssl.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/ssl.py b/Lib/ssl.py
index 8c75f009c8..72115e4465 100644
--- a/Lib/ssl.py
+++ b/Lib/ssl.py
@@ -170,14 +170,12 @@ else:
# * Prefer any AES-GCM over any AES-CBC for better performance and security
# * Then Use HIGH cipher suites as a fallback
# * Then Use 3DES as fallback which is secure but slow
-# * Finally use RC4 as a fallback which is problematic but needed for
-# compatibility some times.
# * Disable NULL authentication, NULL encryption, and MD5 MACs for security
# reasons
_DEFAULT_CIPHERS = (
'ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+HIGH:'
- 'DH+HIGH:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+HIGH:RSA+3DES:ECDH+RC4:'
- 'DH+RC4:RSA+RC4:!aNULL:!eNULL:!MD5'
+ 'DH+HIGH:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+HIGH:RSA+3DES:!aNULL:'
+ '!eNULL:!MD5'
)
# Restricted and more secure ciphers for the server side