Hi

I am playing around with running a JupyterHub that uses the Docker 
singleuser image.  I have it up and running happily, but I cannot seem to 
connect to any HTTPS websites from it unless I turn off certificate 
validation.  In every case it complains that the certificate does not match 
the hostname, where the displayed hostname is the hostname of the hub 
(jupyterhubtest.genomespace.org) and not of the site I am trying to connect 
to.

e.g. 

import requests
requests.get('https://github.com')

CertificateError: hostname 'github.com' doesn't match 
'jupyterhubtest.genomespace.org'


Now the code below works, but I would rather not have to turn off 
verification for every request that is made from the hub

requests.get('https://github.com', verify=False)


Now I know that the kernel in Docker is proxying through the hub and that's 
probably the cause of the error, but I haven't been able to figure out a 
fix yet.  Has anyone else encountered this (and better yet figured out a 
fix?)

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jupyter+unsubscr...@googlegroups.com.
To post to this group, send email to jupyter@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/9be93e9b-d486-4546-ac60-c29ceebf7c3d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to