Selaa lähdekoodia

HUE-2438 [core] Disable SSLv3 for Poodle vulnerability

Also disable SSLv2.
https://pythonhosted.org/pyOpenSSL/api/ssl.html#OpenSSL.SSL.OP_NO_SSLv2
Romain Rigaux 11 vuotta sitten
vanhempi
commit
0060abf9aa
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      desktop/core/src/desktop/lib/wsgiserver.py

+ 1 - 0
desktop/core/src/desktop/lib/wsgiserver.py

@@ -1667,6 +1667,7 @@ class CherryPyWSGIServer(object):
             ctx.set_cipher_list(self.ssl_cipher_list)
             ctx.use_privatekey_file(self.ssl_private_key)
             ctx.use_certificate_file(self.ssl_certificate)
+            ctx.set_options(SSL.OP_NO_SSLv2 | SSL.OP_NO_SSLv3)
             self.socket = SSLConnection(ctx, self.socket)
             self.populate_ssl_environ()