Show More
@@ -19,6 +19,7 b' import re' | |||||
19 | import select |
|
19 | import select | |
20 | import signal |
|
20 | import signal | |
21 | import socket |
|
21 | import socket | |
|
22 | import ssl | |||
22 | import sys |
|
23 | import sys | |
23 | import threading |
|
24 | import threading | |
24 | import webbrowser |
|
25 | import webbrowser | |
@@ -855,6 +856,9 b' class NotebookApp(BaseIPythonApplication):' | |||||
855 | if not ssl_options: |
|
856 | if not ssl_options: | |
856 | # None indicates no SSL config |
|
857 | # None indicates no SSL config | |
857 | ssl_options = None |
|
858 | ssl_options = None | |
|
859 | else: | |||
|
860 | # Disable SSLv3, since its use is discouraged. | |||
|
861 | ssl_options['ssl_version']=ssl.PROTOCOL_TLSv1 | |||
858 | self.login_handler_class.validate_security(self, ssl_options=ssl_options) |
|
862 | self.login_handler_class.validate_security(self, ssl_options=ssl_options) | |
859 | self.http_server = httpserver.HTTPServer(self.web_app, ssl_options=ssl_options, |
|
863 | self.http_server = httpserver.HTTPServer(self.web_app, ssl_options=ssl_options, | |
860 | xheaders=self.trust_xheaders) |
|
864 | xheaders=self.trust_xheaders) |
General Comments 0
You need to be logged in to leave comments.
Login now