mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-09 03:50:45 +08:00
make certif 0o600 also.
This commit is contained in:
parent
efc7e8f4ea
commit
de405586e3
@ -56,8 +56,11 @@ def create_self_signed_cert(cert_dir, keyfile, certfile):
|
||||
|
||||
with io.open(join(cert_dir, certfile), "wt") as f:
|
||||
f.write(crypto.dump_certificate(crypto.FILETYPE_PEM, cert).decode('utf8'))
|
||||
os.chmod(join(cert_dir, certfile), 0o600)
|
||||
|
||||
with io.open(join(cert_dir, keyfile), "wt") as f:
|
||||
f.write(crypto.dump_privatekey(crypto.FILETYPE_PEM, k).decode('utf8'))
|
||||
os.chmod(join(cert_dir, keyfile), 0o600)
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user