Skip to content

[WSL] Unable to locally verify the issuer's authority. #433

@ArchiePerera

Description

@ArchiePerera

cmd /c ver

Microsoft Windows [version 10.0.22631.3085]

wsl --status

Distribution par défaut : Ubuntu
Version par défaut : 2

Did the problem occur during installation?

  • Yes

What happened?

Opening VSCode through WSL with Ubuntu's distro :

[2024-02-02 10:19:05.475] Extension version: 0.86.0
[2024-02-02 10:19:05.476] L10N bundle: file:///c%3A/Users/archi/.vscode/extensions/ms-vscode-remote.remote-wsl-0.86.0/l10n/bundle.l10n.fr.json
[2024-02-02 10:19:05.486] authorityHierarchy: wsl+Ubuntu
[2024-02-02 10:19:05.486] WSL extension activating for a local WSL instance
[2024-02-02 10:19:05.493] Resolving wsl+Ubuntu, resolveAttempt: 1
[2024-02-02 10:19:05.493] NodeExecServer run: C:\WINDOWS\System32\wsl.exe --status
[2024-02-02 10:19:05.633] WSL feature installed: true (wsl --status)
[2024-02-02 10:19:05.633] NodeExecServer run: C:\WINDOWS\System32\wsl.exe --list --verbose
[2024-02-02 10:19:05.750] 2 distros found
[2024-02-02 10:19:05.751] Starting VS Code Server inside WSL (wsl2)
[2024-02-02 10:19:05.752] Windows build: 22631. Multi distro support: available. WSL path support: enabled
[2024-02-02 10:19:05.752] Scriptless setup: false
[2024-02-02 10:19:05.752] No shell environment set or found for current distro.
[2024-02-02 10:19:05.953] WSL daemon log file:
[2024-02-02 10:19:05.957] Probing if server is already installed: if [ -d ~/.vscode-server/bin/05047486b6df5eb8d44b2ecd70ea3bdf775fd937 ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m
[2024-02-02 10:19:05.957] NodeExecServer run: C:\WINDOWS\System32\wsl.exe -d Ubuntu -e sh -c if [ -d ~/.vscode-server/bin/05047486b6df5eb8d44b2ecd70ea3bdf775fd937 ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m
[2024-02-02 10:19:06.147] Probing result: x86_64
[2024-02-02 10:19:06.148] No server install found in WSL, needs linux-x64
[2024-02-02 10:19:06.148] Getting server from client side
[2024-02-02 10:19:06.148] Downloading VS Code Server stable - 05047486b6df5eb8d44b2ecd70ea3bdf775fd937 into C:\Users\archi\AppData\Local\Temp\vscode-remote-wsl\stable\05047486b6df5eb8d44b2ecd70ea3bdf775fd937\vscode-server-stable-linux-x64.tar.gz.
[2024-02-02 10:19:06.383] Unable to download server on client side: Error: Request downloadRequest failed with message: unable to get local issuer certificate. Will try to download on WSL side.
[2024-02-02 10:19:06.383] NodeExecServer run: C:\WINDOWS\System32\wsl.exe -d Ubuntu sh -c '"$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" 05047486b6df5eb8d44b2ecd70ea3bdf775fd937 stable code-server .vscode-server --host=127.0.0.1 --port=0 --connection-token=3080665829-3759056604-2104564590-3885344743 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --telemetry-level=all'
[2024-02-02 10:19:06.693] Setting up server environment: Looking for /home/archie/.vscode-server/server-env-setup. Not found.
[2024-02-02 10:19:06.693] WSL version: 5.15.133.1-microsoft-standard-WSL2 Ubuntu
[2024-02-02 10:19:06.693] Updating VS Code Server to version 05047486b6df5eb8d44b2ecd70ea3bdf775fd937
[2024-02-02 10:19:06.693] Removing previous installation...
[2024-02-02 10:19:06.693] Installing VS Code Server for x64 (05047486b6df5eb8d44b2ecd70ea3bdf775fd937)
[2024-02-02 10:19:06.693] Downloading:
[2024-02-02 10:19:06.998] 100%
[2024-02-02 10:19:06.998] Failed
[2024-02-02 10:19:06.998] --2024-02-02 11:19:06-- https://update.code.visualstudio.com/commit:05047486b6df5eb8d44b2ecd70ea3bdf775fd937/server-linux-x64/stable
[2024-02-02 10:19:06.998] Resolving update.code.visualstudio.com (update.code.visualstudio.com)... 13.107.213.43, 13.107.246.43, 2620:1ec:46::43, ...
[2024-02-02 10:19:06.998] Connecting to update.code.visualstudio.com (update.code.visualstudio.com)|13.107.213.43|:443... connected.
[2024-02-02 10:19:06.998] HTTP request sent, awaiting response... 302 Found
[2024-02-02 10:19:06.998] Location: https://vscode.download.prss.microsoft.com/dbazure/download/stable/05047486b6df5eb8d44b2ecd70ea3bdf775fd937/vscode-server-linux-x64.tar.gz [following]
[2024-02-02 10:19:06.998] --2024-02-02 11:19:06-- https://vscode.download.prss.microsoft.com/dbazure/download/stable/05047486b6df5eb8d44b2ecd70ea3bdf775fd937/vscode-server-linux-x64.tar.gz
[2024-02-02 10:19:06.998] Resolving vscode.download.prss.microsoft.com (vscode.download.prss.microsoft.com)...
[2024-02-02 10:19:07.080] ::ffff:146.112.61.106, 146.112.61.106
[2024-02-02 10:19:07.080] Connecting to vscode.download.prss.microsoft.com (vscode.download.prss.microsoft.com)|::ffff:146.112.61.106|:443... connected.
[2024-02-02 10:19:07.080] ERROR: cannot verify vscode.download.prss.microsoft.com's certificate, issued by ‘CN=Cisco Umbrella Secondary SubCA lon-SG,O=Cisco’:
[2024-02-02 10:19:07.080] Unable to locally verify the issuer's authority.
[2024-02-02 10:19:07.080] To connect to vscode.download.prss.microsoft.com insecurely, use `--no-check-certificate'.
[2024-02-02 10:19:07.080] ERROR: Failed to download https://update.code.visualstudio.com/commit:05047486b6df5eb8d44b2ecd70ea3bdf775fd937/server-linux-x64/stable to /home/archie/.vscode-server/bin/05047486b6df5eb8d44b2ecd70ea3bdf775fd937-1706869146.tar.gz
[2024-02-02 10:19:07.080] Please install missing certificates.
[2024-02-02 10:19:07.080] Debian/Ubuntu: sudo apt-get install ca-certificates
[2024-02-02 10:19:07.080] Pour obtenir de l’aide sur les problèmes de démarrage, accédez à https://code.visualstudio.com/docs/remote/troubleshooting#_wsl-tips
[2024-02-02 10:19:09.313] Download in background is enabled

What was expected?

Using VSCode through WSL

Steps to reproduce

open vscode
connect to wsl

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions