Getting GitHub Copilot to work inside a corporate JetBrains environment can be frustrating. You install the plugin into IntelliJ IDEA, PyCharm, or GoLand, trigger code completion or open the Copilot Chat tab, and you are greeted by an unresponsive status bar, an infinite authentication spinner, or an error banner declaring: GitHub Copilot could not connect to server. Extension activation failed: "unable to verify the first certificate".
At 365Finds, we see this exact pattern repeatedly across enterprise teams. The issue is rarely that GitHub Copilot is down. In nearly nine out of ten cases, the failure occurs because the developer workstation sits behind an inspecting corporate proxy or a firewall performing SSL/TLS decryption (such as Zscaler, Netskope, or Blue Coat), and the Copilot background agent cannot establish a trusted TLS handshake.
Here is the systematic, step-by-step troubleshooting protocol 365Finds recommends to identify the root cause, fix proxy routing, supply missing certificate authorities, and restore stable GitHub Copilot connectivity in JetBrains IDEs.
1. Diagnose First: Inspect idea.log and Enable Trace Logging
Before modifying network flags blindly, check what error the Copilot language server is actually throwing. In JetBrains IDEs, the GitHub Copilot plugin outputs its diagnostic telemetry and connection traces directly into JetBrains' core idea.log.
Finding Your Log File
- IntelliJ IDEA / PyCharm / WebStorm / GoLand / PhpStorm: In the top menu bar, go to Help > Show Log in Explorer (Windows) or Show Log in Finder (macOS) / Show Log in Files (Linux).
- JetBrains Rider: Go to Help > Diagnostic Tools > Show Log in Explorer/Finder.
Enabling Verbose Trace Logging
Default logs often summarize network drops as generic socket closures. To capture the precise TLS handshake error, HTTP status code, or proxy refusal:
- In the top menu, navigate to Help > Diagnostic Tools > Debug Log Settings...
- In the dialog, add the following line on its own row:
#com.github.copilot:trace - Click OK.
- Restart your IDE or disable and re-enable the GitHub Copilot plugin in Settings > Plugins.
- Reproduce the connectivity error, then open
idea.logand search forcom.github.copilot.
Note: Once troubleshooting is complete, remove #com.github.copilot:trace from the debug log configuration to keep log files manageable.
2. Match Common Error Signatures to the Root Cause
When reviewing idea.log, you will generally encounter one of four diagnostic signatures:
| Error Signature | Likely Root Cause | Immediate Action |
|---|---|---|
unable to verify the first certificate or self-signed certificate in certificate chain | Corporate proxy performing SSL/TLS MITM inspection; background agent missing root CA | Supply the corporate CA bundle via OS store or NODE_EXTRA_CA_CERTS |
read ETIMEDOUT or connect ETIMEDOUT | Outbound port 443 blocked, proxy bypass failure, or required endpoints not allowlisted | Check HTTP proxy settings and corporate firewall allowlists |
407 Proxy Authentication Required | Proxy server requires credentials not supplied or rejected | Configure Proxy Authentication in JetBrains settings |
| Infinite login loop / OAuth token not saving | Local loopback port blocked or IDE token keychain corrupted | Sign out of GitHub in IDE, invalidate caches, and re-authenticate |
3. Configure HTTP Proxy Settings in JetBrains
JetBrains provides a centralized proxy configuration panel that controls how the IDE and its plugins route outbound web traffic.
Configuring the Proxy
- Open settings:
- Windows / Linux: Go to File > Settings (shortcut:
Ctrl + Alt + S). - macOS: Go to IntelliJ IDEA (or IDE name) > Settings (shortcut:
Cmd + ,).
- Windows / Linux: Go to File > Settings (shortcut:
- Navigate to Appearance & Behavior > System Settings > HTTP Proxy.
- Choose Manual proxy configuration and select HTTP.
- Critical restriction: GitHub Copilot does not support proxy URLs starting with
https://. Ensure you specifyhttp://or raw hostnames for the proxy host.
- Critical restriction: GitHub Copilot does not support proxy URLs starting with
- Fill in your Host name (e.g.,
proxy.mycompany.internal) and Port number (e.g.,8080). - If your network requires authentication, tick Proxy authentication and enter your corporate login and password.
- In the No proxy for field, specify any internal corporate domains or local loopback addresses (
localhost,127.0.0.1) separated by commas. - Click the Check connection button at the bottom, enter
https://github.com, and click OK. If the check succeeds, click Apply and OK.
4. Fix SSL and Corporate Certificate Inspection Errors
This is where most enterprise engineers get stuck. Even after the IDE passes the "Check connection" test, GitHub Copilot continues to fail with unable to verify the first certificate.
Why does this happen? The JetBrains IDE itself runs on Java (the JetBrains Runtime), which can read certificates imported into its internal keystore. However, GitHub Copilot operates an out-of-process language server based on Node.js. That language server has its own TLS certificate resolution logic.
Method A: Ensure Corporate CA is in the OS Trust Store
GitHub Copilot queries the local host operating system's native certificate store:
- Windows: Copilot leverages
win-cato inspect the Windows Certificate Store (Certificates - Current User / Local Computer > Trusted Root Certification Authorities). - macOS: Copilot leverages
mac-cato inspect the macOS Keychain Access (System or login keychain). - Linux: Copilot inspects
/etc/ssl/certs/ca-certificates.crtor/etc/ssl/certs/ca-bundle.crt.
Ensure your corporate IT security root and intermediate CA certificates are installed in these system stores. If your machine is managed by company MDM (InTune, Jamf), verify that the certificate profile has synced.
Method B: Provide the CA Bundle via NODE_EXTRA_CA_CERTS (Recommended Fix)
When the background agent fails to pick up the OS trust store automatically, the most reliable fix is passing your company's PEM-formatted root certificate bundle directly to Node.js via an environment variable.
- Export your corporate root and intermediate CA certificates into a single
.pemfile (e.g.,C:\certs\company-ca-bundle.pemor/Users/username/certs/company-ca-bundle.pem). - Define the environment variable:
- Windows: Open System Properties > Environment Variables, and under User or System variables, add:
- Variable name:
NODE_EXTRA_CA_CERTS - Variable value:
C:\certs\company-ca-bundle.pem
- Variable name:
- macOS / Linux: Add to
~/.zshrcor~/.bashrc:
Note for macOS GUI apps: Launching JetBrains IDE from the Dock or Spotlight does not always inherit terminal shell variables. Launch the IDE from terminal (export NODE_EXTRA_CA_CERTS="/path/to/company-ca-bundle.pem"open -a "IntelliJ IDEA") or configure environment variables globally usinglaunchctl setenv NODE_EXTRA_CA_CERTS /path/to/company-ca-bundle.pem.
- Windows: Open System Properties > Environment Variables, and under User or System variables, add:
- Completely restart the JetBrains IDE.
Method C: Import into JetBrains Server Certificates
Go to Settings > Appearance & Behavior > System Settings > Server Certificates. Under Custom Certificates, click the + (Add) icon and select your company root CA file (.crt or .pem).
The Temporary Diagnostic Check: Bypassing Validation
In Settings > Appearance & Behavior > System Settings > Server Certificates, there is a checkbox: Accept non-trusted certificates automatically.
At 365Finds, our view is pragmatic: using this setting to test whether an error is strictly caused by certificates is fine. If checking this box immediately resolves the Copilot connection, you have confirmed that certificate verification is the culprit. However, do not leave this permanently enabled in production. Disabling certificate validation breaks end-to-end TLS integrity and exposes internal code snippets to man-in-the-middle exploits. Once verified, import the proper CA bundle and uncheck the box.
5. Environment Variable Routing and Precedence
If you do not configure a proxy inside the JetBrains GUI, GitHub Copilot automatically searches for standard proxy environment variables. It evaluates them in this strict order:
HTTPS_PROXYhttps_proxyHTTP_PROXYhttp_proxy
Unlike standard UNIX tool chains where HTTP_PROXY handles plain HTTP and HTTPS_PROXY handles SSL, GitHub Copilot selects the single highest-priority variable found and routes both HTTP and HTTPS traffic through it.
If your corporate proxy requires inline credentials:
export HTTPS_PROXY="http://username:password@proxy.corporate.internal:8080"
If your password contains special characters (such as @, :, #, or /), you must URL-encode them (for example, replace @ with %40). Failure to URL-encode credentials causes parser crashes in the Copilot agent socket.
6. Corporate Firewall and Endpoint Allowlisting
If your proxy settings and certificates are correctly configured but Copilot still drops connections with ETIMEDOUT or ECONNRESET, your company firewall or deep-packet inspection (DPI) gateway may be blocking required domains or terminating persistent WebSocket tunnels.
Enterprise network administrators must allowlist the following endpoints on port 443:
github.com(Authentication and account telemetry)api.github.com(API coordination)copilot-proxy.githubusercontent.com(Core completion and model inference routing)default.exp-tas.com(Configuration and experiment flag retrieval)- Wildcard endpoints returned by the GitHub Meta API:
gh api meta -q '.domains | .website, .copilot'
Additionally, verify that your corporate proxy allows HTTP upgrade requests for WebSockets (wss://). GitHub Copilot Chat and streaming code suggestions rely on continuous bidirectional streaming; proxies that aggressively sever long-lived socket connections will cause completions to stall halfway through generation.
7. Fixing Authentication Loops and Token Corruption
Occasionally, network dropouts corrupt the local OAuth session, leading to an endless sign-in loop where the browser reports successful login, but JetBrains never updates the Copilot status.
When this occurs:
- In the bottom-right status bar of your JetBrains IDE, click the GitHub Copilot icon and select Sign out of GitHub.
- Go to Settings > Version Control > GitHub, remove any existing GitHub accounts, and click Apply.
- Go to File > Invalidate Caches..., select Clear file system cache and Local History, and click Invalidate and Restart.
- Upon reboot, click the Copilot icon in the status bar and select Sign in to GitHub to generate a fresh device code.
365Finds Summary Recommendation
When troubleshooting GitHub Copilot in JetBrains IDEs behind enterprise infrastructure, 365Finds recommends addressing the problem in this exact sequence:
- Enable
#com.github.copilot:tracein Debug Log Settings to inspect the real network error inidea.log. - Confirm that your proxy uses an
http://URL scheme rather thanhttps://in JetBrains HTTP Proxy settings. - If the error mentions
unable to verify the first certificate, set theNODE_EXTRA_CA_CERTSenvironment variable to point to your corporate root CA bundle and restart the IDE. - Ensure your corporate network team has allowlisted
copilot-proxy.githubusercontent.comand explicitly enabled WebSocket protocol upgrading.