ssl - ipython笔记本服务器SSL错误

ssl - ipython笔记本服务器SSL错误,第1张

我的服务器(它是一个.crt软件包)有一个SSL证书,但在尝试将它与ipython笔记本服务器一起使用时,我一直收到错误

我在Windows中安装了nginx。通过反向代理设置对ipython的访问。我在这里跟着这个帖子:How to configure IPython behind nginx in a subpath?

我按照how to set up a notebook server上的说明操作。我也使用/ ipython前缀。我更改了证书的位置,即.crt文件,而不是.pem,其他所有内容都保持不变(除了密码)。

每当我尝试访问www.domain.com/ipython时,都会收到此错误:

[W 03:43:22.463 NotebookApp] SSL Error on 916 ('127.0.0.1', 1586): [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:581)

[E 03:43:22.463 NotebookApp] Uncaught exception
    Traceback (most recent call last):
      File "C:\Python27\lib\site-packages\tornado\http1connection.py", line 693,
 in _server_request_loop
        ret = yield conn.read_response(request_delegate)
      File "C:\Python27\lib\site-packages\tornado\gen.py", line 870, in run
        value = future.result()
      File "C:\Python27\lib\site-packages\tornado\concurrent.py", line 215, in result
        raise_exc_info(self._exc_info)
      File "C:\Python27\lib\site-packages\tornado\gen.py", line 876, in run
        yielded = self.gen.throw(*exc_info)
      File "C:\Python27\lib\site-packages\tornado\http1connection.py", line 168, in _read_message
        quiet_exceptions=iostream.StreamClosedError)
      File "C:\Python27\lib\site-packages\tornado\gen.py", line 870, in run
        value = future.result()
      File "C:\Python27\lib\site-packages\tornado\concurrent.py", line 215, in result
        raise_exc_info(self._exc_info)
      File "<string>", line 3, in raise_exc_info
    SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:581)

如果我使用自签名证书,Everythings在本地计算机上运行,​​但它不能远程工作。使用签名证书不能在本地或远程工作,并给出了上述错误。任何想法可能是什么问题?

最佳答案:

1 个答案:

答案 0 :(得分:2)

这已经解决了。我盲目地遵循ipython文档中的说明,没有意识到我应该只让nginx处理所有SSL连接,并且ipython不应该设置为首先使用SSL

本文经用户投稿或网站收集转载,如有侵权请联系本站。

发表评论

0条回复