title: Jupyter on EC2: SSL Error
body: <p>I'm trying to serve a Jupyter notebook from EC2 but I'm getting an SSL error.
  I'm using this AMI: <code>TensorFlow GPU - @nottombrown (ami-8ed4d0e4)</code>. I used a self-signed certificate and that might be part of the problem.</p>
  
  <p>I've looked at several other SO posts that have a similar error such as <a href="https://stackoverflow.com/questions/5833642/python-apns-sslerror">this</a>, <a href="https://stackoverflow.com/questions/5790627/ssl-error-while-implementing-apple-push-notification">this</a> and <a href="https://stackoverflow.com/questions/10667960/python-requests-throwing-up-sslerror">this</a>, but they're getting the error in a quite different context and I can't figure out how to get the solutions (such as setting <code>verify=False</code>) to work for me.</p>
  
  <pre><code>[E 15:52:44.954 NotebookApp] Exception in callback (&lt;socket._socketobject object at 0x7f5f993dad00&gt;, &lt;function null_wrapper at 0x7f5f99319758&gt;)
      Traceback (most recent call last):
        File "/usr/local/lib/python2.7/dist-packages/tornado/ioloop.py", line 883, in start
          handler_func(fd_obj, events)
        File "/usr/local/lib/python2.7/dist-packages/tornado/stack_context.py", line 275, in null_wrapper
          return fn(*args, **kwargs)
        File "/usr/local/lib/python2.7/dist-packages/tornado/netutil.py", line 274, in accept_handler
          callback(connection, address)
        File "/usr/local/lib/python2.7/dist-packages/tornado/tcpserver.py", line 239, in _handle_connection
          do_handshake_on_connect=False)
        File "/usr/local/lib/python2.7/dist-packages/tornado/netutil.py", line 521, in ssl_wrap_socket
          return ssl.wrap_socket(socket, **dict(context, **kwargs))
        File "/usr/lib/python2.7/ssl.py", line 487, in wrap_socket
          ciphers=ciphers)
        File "/usr/lib/python2.7/ssl.py", line 241, in __init__
          ciphers)
      SSLError: [Errno 336265225] _ssl.c:355: error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib
  </code></pre>