This question is migrated from here.
I have a server running Ubuntu 12.04. I have installed IPython on it. Now, I would like to access IPython via HTTPS.
I have done the following steps:
Creating an SSL certificate with openssl:
openssl req -x509 -nodes -newkey rsa:1024 -keyout ipython_cert.pem -out ipython_cert.pem
Create a password hash, in IPython:
from IPython.lib import passwd
passwd()
Creating a Notebook profile:
ipython profile create nbserver
Edit the config file for the nbserver profile:
nano /.ipython/profile_nbserver/ipython_notebook_config.py
c = get_config() c.IPKernalApp.pylab = 'inline' c.NotebookApp.certfile = u'/home/user/ipython_cert.pem' c.NotebookApp.ip = '*' c.NotebookApp.open_browser = False c.NotebookApp.password = u'XXX' c.NotebookApp.port = 4096 c.NotebookManager.notebook_dir = u'/home/user/pynb'
Next, I start IPython notebook like this: ipython notebook --profile nbserver
. Now, in my browser on my laptop, I enter the IP address of my server, followed by port number 4096
. IPython throws this error:
SSL Error on 6 ('ip address', 54169): [Errno 1] _ssl.c:504: error:1407609C:SSL routines:SSL23_GET_CLIENT_HELLO:http request
Why is this and how can I fix this?