-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[error] Failed: unable to verify the first certificate when trying to install extensions from UI #7028
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
Comments
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 |
Same Problem here, I'm using code-marketplace instead of standard open-vsx since we are in a closed network environment. I deployed the code marketplace in the docker container and proxied it with Nginx, as well as a self-signed certificate created by custom root CA. When I test extension installation on code-server on a physical Ubuntu server (Which is also the host of docker containers), it fails with "unable to verify the first certificate". I've already put root CA into /usr/local/share/ca-certificates and run update-ca-certificates on both the host machine and docker images, and I've heard that node uses its own trusted CA list. How can I add our root CA to the |
Does that error appear in the browser logs or the remote logs? Request to the marketplace can be made both from the browser and the remote where code-server is running, so maybe one is configured properly but not the other. But, it sounds like the error comes from the remote, in which case I would expect |
Thank you for the reply. I passed a single
I tried both browsers and NodeJS. The browser can display the extension list and extension details, but when I click
I'm using Terraform to create infrastructures, and there is one resource named |
Oh interesting! I wonder if the single
Yup, exactly. The list and details are done by calling the API directly from the browser, but the install happens on the backend. |
Yes, that single |
Is there an existing issue for this?
OS/Web Information
code-server --version
: 4.93.1Steps to Reproduce
mkdir -p ~/Documents/jupyterlab_upgrade/.config
mkdir -p ~/Documents/jupyterlab_upgrade/.local
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?
Notes
No response
The text was updated successfully, but these errors were encountered: