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

[error] Failed: unable to verify the first certificate when trying to install extensions from UI #7028

Open
1 of 2 tasks
gregorycottone opened this issue Oct 7, 2024 · 1 comment
Labels
bug Something isn't working triage This issue needs to be triaged by a maintainer

Comments

@gregorycottone
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: Bing
  • Local OS: MacOS Sonoma Version 14.7 (23H124)
  • Remote OS: Linux 8021b6402892 6.8.8-300.fc40.aarch64 running in a Docker container
  • Remote Architecture: aarch64
  • code-server --version: 4.93.1

Steps to Reproduce

  1. Create a folder .config in your current path mkdir -p ~/Documents/jupyterlab_upgrade/.config
  2. Create a folder .local in your current path: mkdir -p ~/Documents/jupyterlab_upgrade/.local
  3. Run a container based on the official code-server image (https://hub.docker.com/r/codercom/code-server) by using the command:
docker run -it --name codercom-code-server -p 127.0.0.1:8080:8080 \
  -v "$PWD/.local:/home/coder/.local" \
  -v "$PWD/.config:/home/coder/.config" \
  -v "$PWD:/home/coder/project" \
  -e PUID=1000 \
  -e PGID=1000 \
  codercom/code-server:latest
  1. Access the code-server UI from the browser (Bing) at this address http://127.0.0.1:8080
  2. Install one extension using the "Extensions" button from the UI

Expected

I would expect to have the extension correctly installed.

Actual

I get an Error: unable to verify the first certificate

Logs

2024-10-07 13:18:22.181 [error] Error: unable to verify the first certificate
at TLSSocket.onConnectSecure (node:_tls_wrap:1674:34)
at TLSSocket.emit (node:events:519:28)
at TLSSocket._finishInit (node:_tls_wrap:1085:8)
at ssl.onhandshakedone (node:_tls_wrap:871:12)
2024-10-07 13:18:22.196 [error] unable to verify the first certificate: Error: unable to verify the first certificate
at TLSSocket.onConnectSecure (node:_tls_wrap:1674:34)
at TLSSocket.emit (node:events:519:28)
at TLSSocket._finishInit (node:_tls_wrap:1085:8)
at ssl.onhandshakedone (node:_tls_wrap:871:12)
2024-10-07 13:18:46.634 [error] Error: unable to verify the first certificate
at TLSSocket.onConnectSecure (node:_tls_wrap:1674:34)
at TLSSocket.emit (node:events:519:28)
at TLSSocket._finishInit (node:_tls_wrap:1085:8)
at ssl.onhandshakedone (node:_tls_wrap:871:12)
2024-10-07 13:18:46.647 [error] unable to verify the first certificate: Error: unable to verify the first certificate
at TLSSocket.onConnectSecure (node:_tls_wrap:1674:34)
at TLSSocket.emit (node:events:519:28)
at TLSSocket._finishInit (node:_tls_wrap:1085:8)
at ssl.onhandshakedone (node:_tls_wrap:871:12)

Screenshot/Video

No response

Does this bug reproduce in native VS Code?

This cannot be tested in native VS Code

Does this bug reproduce in GitHub Codespaces?

I did not test GitHub Codespaces

Are you accessing code-server over a secure context?

  • I am using a secure context.

Notes

No response

@gregorycottone gregorycottone added bug Something isn't working triage This issue needs to be triaged by a maintainer labels Oct 7, 2024
@code-asher
Copy link
Member

Are you using a proxy? This error suggests you have a proxy and will need to configure code-server with the proxy's certificate.

Or, it could be that the system is missing the standard certificates.

From the remote machine, are you able to curl open-vsx.org?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage This issue needs to be triaged by a maintainer
Projects
None yet
Development

No branches or pull requests

2 participants