vscode-remote-release icon indicating copy to clipboard operation
vscode-remote-release copied to clipboard

Error: self signed certificate. You may need to sign out and back in.

Open rmathieu25 opened this issue 2 years ago • 16 comments

Hello,

Since yesterday, when I tried to use remote - tunnel to connect to a remote machine, I have a message telling me: "The extension 'Remote - Tunnels' wants you to sign in again using github. I allowed it but I have then the error message "Error self signed certificate. You may need to sign out and back in.' Even if I sign out and back in this error message persists. Even when I open the link in my browser after executing ./code tunnel I am running into an issue saying: "An unexpected error occurred that requires a reload of this page. The workbench failed to connect to the server (Error: Network Error)".

I do not understand what is going on. Everything was working fine and I was actually connected to the VS code server and suddenly was disconnected and since then it is not possible anymore to connect to it.

rmathieu25 avatar Sep 11 '23 18:09 rmathieu25

Same issue for me

Edit: It got fix for me today

Pacalor avatar Sep 12 '23 11:09 Pacalor

I got it fix yesterday as well but that does not work again today

rmathieu25 avatar Sep 13 '23 18:09 rmathieu25

I have the same issue, is there any known fix?

cnellington avatar Sep 15 '23 00:09 cnellington

Looks like any remote extension can't be used right now, we need to wait until it's fixed

Pacalor avatar Sep 15 '23 08:09 Pacalor

Is there any update on this issue? Still not working for me.

rmathieu25 avatar Sep 19 '23 00:09 rmathieu25

Unluckily no 😅, still not working

Pacalor avatar Sep 19 '23 07:09 Pacalor

Same here. Tunnels have been dead for approximately a week or so.

Asmilex avatar Sep 19 '23 09:09 Asmilex

I hope it works again

ennioferreirab avatar Sep 19 '23 12:09 ennioferreirab

The tunnel GUI in vscode seems broken still, but I've gotten tunnels working on some machines by using the CLI code tunnel.

On other machines I'm still getting this error:

$ code tunnel
*
* Visual Studio Code Server
*
* By using the software, you agree to
* the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and
* the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement).
*
[2023-09-19 01:39:29] error error listing current tunnels: connection error: error sending request for url
(https://global.rel.tunnels.api.visualstudio.com/api/v1/tunnels?global=true&tags=vscode-server-launcher): 
error trying to connect: error:0A000086:SSL routines:tls_post_process_server_certificate:certificate verify 
failed:../src/nssl-3.1.2-a1adf9ea87.clean/ssl/statem/statem_clnt.c:1889: (unable to get
local issuer certificate)

This would seem like an SSL issue, but curl https://global.rel.tunnels.api.visualstudio.com works fine on this machine. Proxying HTTP/HTTPS to another machine doesn't fix this either. Any idea what's going on?

cnellington avatar Sep 19 '23 14:09 cnellington

@connor4312 @aeschli would be great to get your thoughts on this one.

bamurtaugh avatar Sep 29 '23 20:09 bamurtaugh

I was able to reproduce this by running the CLI on an image that lacked CA certificates. This should be resolved by installing the CA certificates package for your platform, e.g. apt install ca-certificates on Debian distros. Please let me know if not.

We recently updated to OpenSSL 3.1 which likely surfaced this problem.

connor4312 avatar Oct 03 '23 17:10 connor4312

@connor4312 I'm running Ubuntu 22.04 with already ca-certificates installed and still the same issue.

pipoe2h avatar Oct 10 '23 21:10 pipoe2h

I am getting this error trying to connect to VSCode running on Windows 11, from VSCode running on macOS. Any instructions on clearing out the certificate or how to sign out would be great.

marcoskirsch avatar Nov 15 '23 20:11 marcoskirsch

I think it is a proxy setting issue. When i set the proxy Global Routing to Global(previous rule) the connecting problem got fixed immediately.

Jen1us avatar Apr 28 '24 19:04 Jen1us

@Jen1us would you mind explaining in a bit more detail how to do this?

marcoskirsch avatar May 04 '24 14:05 marcoskirsch

@Jen1us would you mind explaining in a bit more detail how to do this?

The situation was same to you. I got this error when I was connecting vscode in Win11 from vscode.dev in safari. My iPad's proxy app is Shadowrocket that its Global routing gets setting to config. The issue got fixed when I change that setting to proxy.

Jen1us avatar May 06 '24 01:05 Jen1us