Commit b6871f39 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

component/jupyter-py2: use TLS 1.2 instead of the default deprcated TLS 1.1.

parent a31cb805
......@@ -19,7 +19,7 @@ md5sum = fd7ed44da8d8723983b8666df2971a36
[jupyter-notebook-config]
filename = jupyter_notebook_config.py.jinja
md5sum = 720e90a829c63371696bc3009917a743
md5sum = 9d579353b579b6e488ae6330c7f4ad68
[jupyter-set-password]
filename = jupyter_set_password.cgi.jinja
......
......@@ -6,6 +6,7 @@ import ConfigParser
import random
from notebook.auth import passwd
import os
import ssl
def random_password(length = 10):
result = ""
......@@ -33,6 +34,9 @@ if not parser.has_option("jupyter_notebook", "password") or \
parser.set("jupyter_notebook", "password", random_password())
c.NotebookApp.password = passwd(parser.get("jupyter_notebook", "password"))
c.NotebookApp.ssl_options = {
'ssl_version': ssl.PROTOCOL_TLSv1_2,
}
with open(knowledge_0, 'w') as file:
parser.write(file)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment