question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Self-signed certificates for Jupyter URI (Support Jupyter Hub)

See original GitHub issue

Environment data

  • VS Code version: 1.32.1
  • Extension version (available under the Extensions sidebar): 2019.2.5558
  • OS and version: OS X 10.13.6
  • Python version: 3.7
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): pipenv, virtualenv
  • Relevant/affected Python packages and their versions: Jupyter

Jupyter

Connecting to a Jupyter server via https with a self-signed certificate fails:

Failed to connect to remote Jupyter notebook. Check that the Jupyter Server URI setting has a valid running server specified. 

TypeError: request to https://blah.blah.blah.com:8000/api/contents/?xxxxxxx failed

reason: self signed certificate

Setting:

{
"http.proxyStrictSSL": false
}

has no impact.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
IanMatthewHuffcommented, Jun 7, 2019

Since I promised an update. The workaround is looking good. As long as you trust me that this is the same server name blacked out here is the interactive window hitting a self cert server and connecting and running code. I need to so some more verification that my workaround isn’t exposing any new issues, so I don’t see the fix getting in today. But provided that I don’t fine any blocking issues with the workaround should be early next week. My current plan is to expose some type of allow self signed certs setting that defaults to no as default but can be flipped to true.

SelfCertConnection

2reactions
IanMatthewHuffcommented, Jun 6, 2019

Hey Everyone. Sorry about the radio silence here for a while. Currently the @jupyterlab/services that we use to connect to Jupyter servers really only support token authentication and don’t support self signed certificates by default. Recently I’ve worked on a bit of a workaround to get passwords working for with @jupyterlab/services, and I think that I can apply the same workaround to self signed certs. Looking into that as we speak. I should know by tomorrow EOD if this fix will work as well to enable self-certs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Self-signed certificates for Jupyter URI (Support Jupyter Hub)
Jupyter. Connecting to a Jupyter server via https with a self-signed certificate fails: Failed to connect to remote Jupyter notebook.
Read more >
Note: Self-Signed SSL Certificate for (local) JupyterHub
In this note I'll go through creating self-signed SSL certificates and adding them to a JupyterHub configuration running on a LAN or VPN....
Read more >
Getting self-signed certificates to work for Jupyter notebook ...
Yes, it is possible! Please, follow this step-by-step guide to access Jupyter Notebook server on iOS via SSL using a self-signed cert.
Read more >
Jupyter Notebook — adding certificates for security & ease of ...
Jupyter Notebook — adding certificates for security & ease of use. This howto covers adding ssh certs to the jupyter notebook. We will...
Read more >
Running a notebook server
The Jupyter notebook web application is based on a server-client structure. ... A self-signed certificate can be generated with openssl .
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found