Staring at a crossed-out GitHub Copilot icon in VS Code is one of the quickest ways to ruin a workday. The notification is almost always useless: "GitHub Copilot could not connect to server. Extension activation failed." Behind that generic failure lies a corporate obstacle course—deep packet inspection proxies, custom root certificates, strict firewalls, or cached OAuth tokens that quietly fell out of sync.
At 365Finds, we see developers repeatedly make the same mistake when this happens: they Google the error, find a thread recommending "http.proxyStrictSSL": false, and immediately disable TLS validation across their entire editor. 365Finds strongly advises against treating that workaround as a solution. Turning off SSL validation strips encryption defenses from every extension running in your environment. You can fix GitHub Copilot cleanly without punching holes in your machine's security.
Here is the exact diagnostic sequence and fix path 365Finds recommends to restore GitHub Copilot through enterprise proxies, corporate firewalls, and custom certificate authorities.
Step 1: Stop Guessing and Turn on Trace Logs
Before touching network settings, make the extension tell you why it failed. VS Code suppresses verbose connection logs by default.
- Open the Command Palette (
Ctrl+Shift+Pon Windows/Linux,Cmd+Shift+Pon macOS). - Run Developer: Set Log Level....
- Select GitHub Copilot from the list.
- Set the log level to Trace.
- Open the Output panel (
Ctrl+~orView > Output) and select GitHub Copilot from the top-right dropdown.
Reproduce the error by reloading the window (Developer: Reload Window). Your log will reveal the exact failure pattern:
| Log Signature | Root Cause | Immediate Action |
|---|---|---|
SELF_SIGNED_CERT_IN_CHAIN or unable to get local issuer certificate | Corporate SSL/TLS interception proxy (Zscaler, Netskope, Blue Coat) | Inject internal Root CA via NODE_EXTRA_CA_CERTS |
HTTP 407 Proxy Authentication Required | Upstream proxy demands credentials | Add credentials to http.proxy or pass Kerberos tokens |
ETIMEDOUT or ENOTFOUND | Firewall or DNS dropping GitHub Copilot endpoints | Whitelist required domains on corporate gateway |
401 Unauthorized or Token refresh loop | Stale secret storage, seat unassigned, or blocked org policy | Clear GitHub credentials and check seat assignment |
Step 2: Fix SSL Inspection and Custom Root Certificates
Most corporate connection failures stem from Man-in-the-Middle (MITM) inspection. Tools like Zscaler, Palo Alto Networks, or Netskope terminate your outbound TLS connection and re-sign GitHub's traffic with your company's private Certificate Authority (CA). Web browsers trust this because IT injected the certificate into the operating system store during provisioning. But Node.js—which runs inside the VS Code extension host—relies on an embedded list of public Mozilla root certificates and rejects your internal CA.
The Recommended Fix: NODE_EXTRA_CA_CERTS
Export your corporate Root CA (and any intermediate CAs) in .pem or .crt format, save the file to a secure local path, and point Node.js to it:
- Windows (PowerShell as Administrator or User):
[System.Environment]::SetEnvironmentVariable("NODE_EXTRA_CA_CERTS", "C:\Certs\CorporateRootCA.pem", "User") - macOS / Linux:
Add the variable to your shell configuration (
~/.bashrc,~/.zshrc, or/etc/environment):export NODE_EXTRA_CA_CERTS="/etc/ssl/certs/CorporateRootCA.pem"
Restart VS Code completely from a fresh terminal or desktop launcher so the editor inherits the new environment variable.
Alternative: OS Trust Store Sync via Extension
If company policy prevents setting global environment variables, install the win-ca extension (on Windows) or configure VS Code's certificate injection to read directly from the Windows CryptoAPI or macOS Keychain. In 365Finds' view, setting NODE_EXTRA_CA_CERTS at the OS user level remains far more dependable because it persists across extension updates and covers CLI tooling as well.
Step 3: Configure VS Code Proxy Settings Correctly
GitHub Copilot respects VS Code's internal proxy configurations, but it has one critical limitation that catches many engineers off guard: Copilot does not support proxy URLs starting with https://. The destination tunnel must use http://.
Open your VS Code user settings.json (Preferences: Open User Settings (JSON)) and verify these keys:
{
"http.proxy": "http://proxy.yourcompany.corp:8080",
"http.proxySupport": "override",
"http.proxyStrictSSL": true
}
If your enterprise proxy requires basic authentication, embed the credentials in the URL:
http://username:password@proxy.yourcompany.corp:8080
If your password contains special characters (such as @, :, or /), encode them into percent-encoding (e.g., %40 for @). For Active Directory or Kerberos-authenticated proxies, ensure your workstation holds an active Kerberos ticket (klist on Windows and Linux) and leave credentials out of the string so the system passes NTLM/Kerberos negotiation transparently.
Step 4: Verify Corporate Firewall and Domain Allowlist
If your logs display repeated ETIMEDOUT errors on port 443, the connection is dying before reaching GitHub's ingress. Corporate security gateways frequently block the secondary API and WebSocket domains Copilot uses for completions and real-time chat streaming.
Request your network administration team to allow outbound HTTPS (port 443) traffic to the following required endpoints:
github.comandapi.github.com(Account authentication and license checks)api.githubcopilot.com(Copilot telemetry and language model endpoints)copilot-proxy.githubusercontent.com(Token exchange and proxy routing)default.exp-tas.com(Experimentation and feature flag service)*.webpubsub.azure.com(Real-time streaming for Copilot Chat)
You can verify whether an endpoint is reachable through your proxy using curl:
curl -v -x http://proxy.yourcompany.corp:8080 https://api.githubcopilot.com/_ping
A reachable gateway returns an HTTP 200 or 401 response; an immediate timeout or TCP reset confirms a network-level firewall drop.
Step 5: Resolve Activation Loops and Corrupted Credentials
Sometimes your network is completely healthy, but GitHub Copilot remains in an infinite activation loop. This almost always indicates a corrupted token stored in the OS credential manager (Windows Credential Manager, macOS Keychain, or Linux Secret Service).
Follow this clean re-authentication routine:
- Click the Accounts icon in the bottom-left corner of VS Code.
- If your GitHub account is listed, click your username and select Sign Out.
- Open the Command Palette and run:
Developer: Reload Window - Sign back in by clicking the Accounts icon > Sign in with GitHub. Complete the browser authentication grant.
- In your browser, navigate to GitHub.com > Settings > Copilot and verify that your personal subscription is active or that your organization administrator has allocated a seat to your handle.
If your organization recently introduced policy restrictions (such as disabling public code suggestions or requiring specific IDE versions), GitHub Copilot will refuse to initialize until those local editor criteria match organization rules.