Skip to content

Error getting Copilot to work in visual studio 2022 pro. #50484

Answered by yk-sd
yk-sd asked this question in Copilot
Discussion options

You must be logged in to vote

Fixed.

Solution:

Open Microsoft Edge (or another browser that shows certificate information).
Navigate to the github.com website.
Click on the SSL lock icon next to the address bar.
Click on "Connection is secure".
Click on "Certificate (Valid)".
In the certificate window, select the top-most certificate in the chain (usually the root or intermediate certificate).
Click on "Export" and save the certificate as a .pem file.
Open a Command Prompt as an administrator.
Run the command: (setx NODE_EXTRA_CA_CERTS "C:\path\to\your\certificate.pem"). Replace "C:\path\to\your\certificate.pem" with the actual path to the .pem file that you saved.
Restart Visual Studio.
Copilot should now work.
Note:…

Replies: 8 comments 10 replies

Comment options

You must be logged in to vote
1 reply
@yk-sd
Comment options

Comment options

You must be logged in to vote
7 replies
@yk-sd
Comment options

@Alineol
Comment options

@nbelley
Comment options

@nbelley
Comment options

@tolgabalci
Comment options

Answer selected by yk-sd
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@borninarage
Comment options

@NeilYager
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working correctly Visual Studio View and incorporate suggestions from GitHub Copilot directly within the Visual Code. Copilot Code accurately and faster with your AI powered pair-programmer.