我有以下错误。如何修复以下证书错误(ipython)? [英] I have the following error. How to fix the following certificate error (ipython)?

查看:323
本文介绍了我有以下错误。如何修复以下证书错误(ipython)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我想在我的macbook上运行ipython notebook时,我收到以下错误。有谁知道如何解决这个问题?

I'm getting the following error when I want to run ipython notebook on my macbook. Does anyone know how to fix this? Could you please help me about it?

ERROR:root:Exception in I/O handler for fd 6
Traceback (most recent call last):
  File "//anaconda/lib/python2.7/site-packages/zmq/eventloop/ioloop.py", line 346, in start
    self._handlers[fd](fd, events)
  File "//anaconda/lib/python2.7/site-packages/tornado/netutil.py", line 167, in accept_handler
    callback(connection, address)
  File "//anaconda/lib/python2.7/site-packages/tornado/tcpserver.py", line 217, in _handle_connection
    do_handshake_on_connect=False)
  File "//anaconda/lib/python2.7/site-packages/tornado/netutil.py", line 407, in ssl_wrap_socket
    return ssl.wrap_socket(socket, **dict(context, **kwargs))
  File "//anaconda/python.app/Contents/lib/python2.7/ssl.py", line 387, in wrap_socket
    ciphers=ciphers)
  File "//anaconda/python.app/Contents/lib/python2.7/ssl.py", line 141, in __init__
    ciphers)
SSLError: [Errno 336445449] _ssl.c:368: error:140DC009:SSL routines:SSL_CTX_use_certificate_chain_file:PEM lib
ERROR:root:Exception in I/O handler for fd 6
Traceback (most recent call last):
  File "//anaconda/lib/python2.7/site-packages/zmq/eventloop/ioloop.py", line 346, in start
    self._handlers[fd](fd, events)
  File "//anaconda/lib/python2.7/site-packages/tornado/netutil.py", line 167, in accept_handler
    callback(connection, address)
  File "//anaconda/lib/python2.7/site-packages/tornado/tcpserver.py", line 217, in _handle_connection
    do_handshake_on_connect=False)
  File "//anaconda/lib/python2.7/site-packages/tornado/netutil.py", line 407, in ssl_wrap_socket
    return ssl.wrap_socket(socket, **dict(context, **kwargs))
  File "//anaconda/python.app/Contents/lib/python2.7/ssl.py", line 387, in wrap_socket
    ciphers=ciphers)
  File "//anaconda/python.app/Contents/lib/python2.7/ssl.py", line 141, in __init__
    ciphers)
SSLError: [Errno 336445449] _ssl.c:368: error:140DC009:SSL routines:SSL_CTX_use_certificate_chain_file:PEM lib


推荐答案

您的浏览器尝试访问没有SSL的笔记本。请确保使用HTTPS访问该网站。例如,当您访问笔记本时,在浏览器中键入 https://127.0.0.1:9999 。 (或者服务器的任何地址。)

It appears that your browser is attempting to access the notebook without SSL. Make sure to access the site with HTTPS. For example, when you access the notebook, type in https://127.0.0.1:9999 in your browser. (Or whatever the address of the server is.)

这篇关于我有以下错误。如何修复以下证书错误(ipython)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆