[IPython-User] nbserver SSL Errors

MinRK benjaminrk@gmail....
Fri Feb 1 16:26:58 CST 2013


On Fri, Feb 1, 2013 at 1:59 PM, K.-Michael Aye <kmichael.aye@gmail.com>wrote:

> On 2013-02-01 21:48:50 +0000, K.-Michael Aye said:
>
> > On 2013-02-01 21:41:39 +0000, Brian Granger said:
> >
> >> I think you have to specify the path to the ssl files using absolute
> paths.
> >
> > That was it, thanks!
> >
> > But now the next problem:
> > The dashboard looks okay and lists all my notebooks that were found in
> > the configured notebook_dir, but trying to launch one I get this error:
> >
> > Websocket connection to
> > wss://
> luna1.diviner.ucla.edu:8888/kernels/7c62fbb3-c4fb-47d7-8ca8-03f6dd87b5f1
> > could not be established. You will NOT be able to run code. Your
> > browser may not be compatible with the websocket version in the server,
> > or if the url does not look right, there could be an error in the
> > server's configuration.
> >
> > What's missing now?
>
> I can report that it works using Firefox and have found, that there is
> a known problem with Safari's secure websocket connection (in a thread
> of Jan 2012). So I take it that there was no progress on that?
> It's a minor hassle, but as Safari is my main browser, it would be nice
> to have it running there as well.
>

There is no progress to be made.  Safari does not allow HTTPS websocket
connections to an untrusted host.
If you generate an appropriate certificate and add it to your keychain,
then it will work.
But if you get the 'untrusted...' warning when you connect to the notebook,
websockets *will not work* in Safari.
There is nothing IPython can do about it.

-MinRK


> Many thanks,
> Michael
>
>
> >
> > Michael
> >
> >>
> >> On Fri, Feb 1, 2013 at 1:37 PM, K.-Michael Aye <kmichael.aye@gmail.com>
> wrote:
> >>> I am trying to configure a notebook server accessible from an outside
> browser.
> >>>
> >>> So, I got it working but ONLY if I launch the notebook from inside the
> >>> .ipython/profile_nbserver directory (using 'ipython notebook
> >>> --profile=nbserver' as cmd).
> >>> In any other folder I get SSL errors:
> >>>
> >>> ERROR:root:Exception in I/O handler for fd 3
> >>> Traceback (most recent call last):
> >>> File
> >>> "/usr/local/epd/lib/python2.7/site-packages/zmq/eventloop/ioloop.py",
> >>> line 330, in start
> >>> self._handlers[fd](fd, events)
> >>> File "/usr/local/epd/lib/python2.7/site-packages/tornado/netutil.py",
> >>> line 319, in accept_handler
> >>> callback(connection, address)
> >>> File "/usr/local/epd/lib/python2.7/site-packages/tornado/netutil.py",
> >>> line 199, in _handle_connection
> >>> **self.ssl_options)
> >>> File "/usr/local/epd/lib/python2.7/ssl.py", line 381, in wrap_socket
> >>> ciphers=ciphers)
> >>> File "/usr/local/epd/lib/python2.7/ssl.py", line 141, in __init__
> >>> ciphers)
> >>> SSLError: [Errno 336265218] _ssl.c:351: error:140B0002:SSL
> >>> routines:SSL_CTX_use_PrivateKey_file:system lib
> >>>
> >>> What am I doing wrong?
> >>>
> >>> Thanks,
> >>> Michael
> >>>
> >>>
> >>>
> >>> _______________________________________________
> >>> IPython-User mailing list
> >>> IPython-User@scipy.org
> >>> http://mail.scipy.org/mailman/listinfo/ipython-user
>
>
>
> _______________________________________________
> IPython-User mailing list
> IPython-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20130201/ee238e51/attachment-0003.html 


More information about the IPython-User mailing list