vscode unable to get local issuer certificate
时间: 2023-10-28 07:00:00 浏览: 206
cacert.pem(Composer SSL certificate problem: 可用)
This issue usually occurs when Visual Studio Code (VSCode) is unable to verify the SSL certificate of the server you are connecting to. Here are a few steps you can follow to resolve the "unable to get local issuer certificate" error:
1. Update Visual Studio Code: Make sure you are using the latest version of VSCode. You can check for updates by going to Help > Check for Updates.
2. Update Git: If you are using Git with VSCode, update Git to the latest version. You can download and install the latest version from the official Git website.
3. Configure Git to use the system's certificate store: Open Git Bash or your terminal and run the following command:
```
git config --global http.sslBackend schannel
```
4. Configure VSCode to trust the certificate: Open VSCode and go to File > Preferences > Settings. In the search bar, type "http.proxyStrictSSL" and check if it is set to true. If so, set it to false.
5. Disable SSL verification for Git: Open Git Bash or your terminal and run the following command:
```
git config --global http.sslVerify false
```
6. Clone or fetch the repository again: If you were experiencing this issue while cloning or fetching a repository, try cloning/fetching it again to see if the error persists.
If none of these steps resolve the issue, it could be related to your network configuration or proxy settings. You may need to contact your network administrator or IT support for further assistance.
阅读全文