You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
copilot command silently fails on Windows due to getCACertificates('system') error #1250
The copilot CLI command silently exits without any output or error message on Windows 11 (on my machine). No error is displayed, making it very difficult to diagnose the issue.
node:tls:138
systemCACertificates ||= ObjectFreeze(getSystemCACertificates());
Error: X509 to PEM conversion
at cacheSystemCACertificates (node:tls:138:41)
at Module.getCACertificates (node:tls:193:14)
at Hcl (file:///C:/Users/.../AppData/Roaming/npm/node_modules/@github/copilot/index.js:150:9436)
at ohn (file:///C:/Users/.../AppData/Roaming/npm/node_modules/@github/copilot/index.js:150:8933)
at ihn (file:///C:/Users/.../AppData/Roaming/npm/node_modules/@github/copilot/index.js:3188:2888)
at file:///C:/Users/.../AppData/Roaming/npm/node_modules/@github/copilot/index.js:3849:955
Node.js v24.13.0
Related issues
nodejs/node#61636 — Upstream issue about getCACertificates('system') failing without useful error information on Windows
Reacted by nzagorac-ms, Yigit Konur, Shahm Najeeb and Miroslav Obradovic
import * as CD from "node:tls";
CD.getCACertificates("system")
Error: X509 to PEM conversion
at cacheSystemCACertificates (node:tls:123:41)
at Module.getCACertificates (node:tls:178:14)
at file:///Q:/.tools/.npm-global/node_modules/@github/copilot/test.js:2:4
at ModuleJob.run (node:internal/modules/esm/module_job:345:25)
at async onImport.tracePromise.proto (node:internal/modules/esm/loader:651:26)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5)
Does it mean there's a bad cert in my system cert store? Would expect that bad cert can be skipped/ignored instead of blocking the startup.
@miobrado it turned out that when you install application used for reading of government issued ID cards in Serbia, some broken certificates get loaded to your system as part of it. And all node apps fail when attempting to read such certs.
Two workarounds that worked for me:
Uninstalling "Čelik" app by MUP RS - GHC starts working immediately.
Uninstall only the CA certs that cause problem (not all of them cause problems, and reading the ID cards still works after removing them).
This appears to be resolved as of GitHub Copilot CLI v1.0.88. Please update to that release or a newer stable version. We're closing this as completed. If it still happens, please comment with your version and reproduction steps.
Activity
nzagorac-ms commentedon Feb 4, 2026
+1, I'm having the exact same issue.
yigitkonur commentedon Feb 9, 2026
same here! after every an hour long intensive session, it crash and can't even restore session (jsonl is malformed, it may be hint)
miobrado commentedon Apr 20, 2026
This thing failing for me:
Error: X509 to PEM conversion
at cacheSystemCACertificates (node:tls:123:41)
at Module.getCACertificates (node:tls:178:14)
at file:///Q:/.tools/.npm-global/node_modules/@github/copilot/test.js:2:4
at ModuleJob.run (node:internal/modules/esm/module_job:345:25)
at async onImport.tracePromise.proto (node:internal/modules/esm/loader:651:26)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5)
Does it mean there's a bad cert in my system cert store? Would expect that bad cert can be skipped/ignored instead of blocking the startup.
nzagorac-ms commentedon Apr 20, 2026
@miobrado it turned out that when you install application used for reading of government issued ID cards in Serbia, some broken certificates get loaded to your system as part of it. And all node apps fail when attempting to read such certs.
Two workarounds that worked for me:
copilot-cli-bot commentedon Sep 28, 2026
This appears to be resolved as of GitHub Copilot CLI v1.0.88. Please update to that release or a newer stable version. We're closing this as completed. If it still happens, please comment with your version and reproduction steps.