Problem
Recently whilst trying to enable GitHub CoPilot within VSCode in a corporate enterprise environment, I encountered the following warning when trying to authenticate with GitHub:
[certificates] failed to read root certificates
Often in a corporate enterprise IT environment, IT will install a self-signed root certificate, which all devices must trust before they can access the internet via a central proxy server. This was indeed the case in my situation. However, the above error message indicated that VS Code didn’t recognise or trust this self-signed certificate, preventing it from properly authenticating with GitHub.
Continue reading