2014-04-18 81 views
1

我想在我的macbook上運行ipython筆記本時出現以下錯誤。有誰知道如何解決這一問題?你能幫我解答嗎?我有以下錯誤。如何解決以下證書錯誤(ipython)?

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 

回答

0

它不承認你傳遞它的文件 - 無論是:

  1. 傳遞的.pem文件(私鑰),以--NotebookApp.keyfile=和.crt文件(證書)到--NotebookApp.certfile=
  2. 通過將您的證書附加到您的密鑰並將此新文件傳遞到--certfile來創建一個新文件。
5

看來您的瀏覽器正試圖訪問沒有SSL的筆記本電腦。確保使用HTTPS訪問網站。例如,當您訪問筆記本時,請在瀏覽器中輸入https://127.0.0.1:9999。 (或者無論服務器的地址是什麼)

+0

Chrome和Google會給出「此連接不是私人的」消息,您必須點擊「高級」,然後繼續進入ipython服務器 – JCR000