jupyter SSL:错误的_版本号

2024-06-01 04:41:51 发布

您现在位置:Python中文网/ 问答频道 /正文

我的Jupyter配置如下:

# encoding=utf-8
c = get_config()
c.IPKernelApp.pylab = 'inline'
c.NotebookApp.certfile = u'/root/.ipython/profile_txz_server/mycert.pem'
c.NotebookApp.client_ca = u'/root/.ipython/profile_txz_server/mycert.pem'

c.NotebookApp.password = u'sha1:4a46aefd018f:170840e2f9af032488....' # txzing_token
c.NotebookApp.ip = '127.0.0.1'
c.NotebookApp.port = 8888
c.NotebookApp.open_browser = False
c.NotebookApp.trust_xheaders = True

我的Nginx HTTP配置如下:

^{pr2}$

最后我尝试访问url:https://xx.xx.com

Jupyter得到的错误如下:

SSL Error on 9 ('127.0.0.1', 43378): [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:749)

我该如何处理这个问题?在


Tags: configsslgetserveripythonjupyterrootprofile
1条回答
网友
1楼 · 发布于 2024-06-01 04:41:51

我来处理这个问题。我试着这样做:

# c.NotebookApp.certfile = u'/root/.ipython/profile_txz_server/mycert.pem'
# c.NotebookApp.client_ca = u'/root/.ipython/profile_txz_server/mycert.pem'

相关问题 更多 >