我的jupyter笔记本不想从树莓派上的ssl开始。
c.NotebookApp.certfile = u'/home/user/jupyter_keys/mycert.pem'
c.NotebookApp.client_ca = u'/home/user/jupyter_keys/mycert.key'
ssl命令:
openssl req -x509 -nodes -days 365 -newkey rsa:4096 -keyout mycert.key -out mycert.pem
文件权限:
/home/user/jupyter_keys/ = drwx------
/home/user/jupyter_keys/* = -rw-------
错误消息:
raspberrypi jupyter[8779]: handler_func(fileobj, events)
raspberrypi jupyter[8779]: File "/home/user/.local/lib/python3.7/site-packages/tornado/netutil.py", line 273, in accept_handler
raspberrypi jupyter[8779]: callback(connection, address)
raspberrypi jupyter[8779]: File "/home/user/.local/lib/python3.7/site-packages/tornado/tcpserver.py", line 288, in _handle_connection
raspberrypi jupyter[8779]: do_handshake_on_connect=False,
raspberrypi jupyter[8779]: File "/home/user/.local/lib/python3.7/site-packages/tornado/netutil.py", line 605, in ssl_wrap_socket
raspberrypi jupyter[8779]: context = ssl_options_to_context(ssl_options)
raspberrypi jupyter[8779]: File "/home/user/.local/lib/python3.7/site-packages/tornado/netutil.py", line 574, in ssl_options_to_context
raspberrypi jupyter[8779]: ssl_options["certfile"], ssl_options.get("keyfile", None)
raspberrypi jupyter[8779]: ssl.SSLError: [SSL] PEM lib (_ssl.c:3845)
你有什么主意吗?