doc/editor_extensions/visual_studio_code/ssl.md
You can still use the GitLab for VS Code extension even if your GitLab instance uses a self-signed SSL certificate.
If you also use a proxy to connect to your GitLab instance, let us know in issue 314. If you still have connection problems after completing these steps, review epic 6244, which links to all existing SSL issues for the GitLab for VS Code extension.
Prerequisites:
gitlab.ca VS Code setting is not in use.Ensure your CA certificate is correctly added to your system for the extension to work. VS Code reads
the system certificate store, and changes all node http requests to trust the certificates:
%%{init: { "fontFamily": "GitLab Sans" }}%%
graph LR
accTitle: Self-signed certificate chain
accDescr: Shows a self-signed CA that signs the GitLab instance certificate.
A[Self-signed CA] -- signed --> B[Your GitLab instance certificate]
The GitLab instance certificate's CA must be explicitly specified as a trusted CA. If intermediate certificates are in use, these must be available on the system. If the entire chain does not validate successfully, network connections within the extension fail to authenticate.
For more information, see Self-signed certificate error when installing Python support in WSL in the Visual Studio Code issue tracker.
In your VS Code settings.json, set "http.systemCertificates": true. The default value is true, so you might not need to change this value.
Complete the instructions in the following sections for your operating system.
[!note] These instructions were tested on Windows 10 and VS Code 1.60.0.
Make sure you can see your self-signed CA in your certificate store:
certmgr.[!note] These instructions were tested on Arch Linux
5.14.3-arch1-1and VS Code 1.60.0.
update-ca-trust (Fedora, RHEL, CentOS)update-ca-certificates (Ubuntu, Debian, OpenSUSE, SLES)trust (Arch)/etc/ssl/certs/ca-certificates.crt or /etc/ssl/certs/ca-bundle.crt.
VS Code checks this location.[!note] These instructions were tested on macOS Tahoe 26, VS Code 1.101.2, and GitLab for VS Code 6.51.1.
Make sure you see the self-signed CA in your keychain: