Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't connect to jupyterhub with self signed certificate #58

Open
nikita-dev-null opened this issue May 28, 2024 · 1 comment
Open

Can't connect to jupyterhub with self signed certificate #58

nikita-dev-null opened this issue May 28, 2024 · 1 comment
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@nikita-dev-null
Copy link

nikita-dev-null commented May 28, 2024

Environment data

  • VS Code version: 1.89.1
  • Jupyter Extension version (available under the Extensions sidebar): 2024.4.1001491100
  • Python Extension version (available under the Extensions sidebar): 2024.6.0
  • OS Mac and version: Ventura 13.6.3
  • Python and/or Anaconda version: 3
  • Type of virtual environment used N/A
  • Jupyter server running: Remote

Expected behaviour

connect to jupyterhub

Actual behaviour

Can't connect to jupyterhub

Steps to reproduce:

  1. update from 2023.10.1003492320 to 2024.4.1001491100
  2. try connect to jupyterhub with self signed certificate

Logs

[warn] Could not fetch kernels from the remote server, falling back to cache: Error: request to https://jupyterhub.xxx/hub/api/authorizations/token failed, reason: unable to verify the first certificate

I added the certificate to the OS CA, but it didn't help
downgrade to 2023.10.1003492320 resolve this problem

@nikita-dev-null nikita-dev-null added the bug Issue identified by VS Code Team member as probable bug label May 28, 2024
@DonJayamanne DonJayamanne self-assigned this Jul 30, 2024
@steve-offutt
Copy link

We are experiencing similar behavior from a Windows client.

10:10:59.448 [error] Error sending request to https://hostname.example.com/hub/api FetchError: request to https://hostname.example.com/hub/api failed, reason: unable to verify the first certificate
    > at ClientRequest.<anonymous> (c:\Users\user_name\.vscode\extensions\ms-toolsai.jupyter-hub-2023.10.1003012305\dist\extension.node.js:63581:18)
    > type = system
    > errno = UNABLE_TO_VERIFY_LEAF_SIGNATURE
    > code = UNABLE_TO_VERIFY_LEAF_SIGNATURE

Interestingly connecting to JupyterHub from a MacOS client works fine.

On the Windows client I have the following settings set based on other related suggestions found in this repos issue tracker:

"jupyter.allowUnauthorizedRemoteConnection": true,
"http.systemCertificates": true,
"http.experimental.systemCertificatesV2": true,
"http.proxyStrictSSL": true,
"http.proxySupport": "override",

We experience the same behavior from both the Pre-Release and Release versions of the extension.

Release Version: v2023.10.1003012305
PreRelease Version: v2024.5.1002140811

Our company certificates are installed on both the client machines (MacOS and Windows). Any help on this issue would be greatly appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

3 participants