vscode 安装插件报错 Signature verification failed with 'UnknownError' error.

This article was converted by SimpRead; the original URL is blog.csdn.net

Environment

  • VS Code version: 1.76.1
  • OS version: Windows 10

Error Message

VS Code reports an error when installing or updating extensions (regardless of which extension), displaying: [error] Untrusted: Signature, as shown in the image below:

Of course, you can follow the on-screen prompt to download the offline installation package and install it locally. If you prefer to continue installing extensions online, please refer to the following solutions.

Solutions

A reliable solution found online: Extension installation fails to verify signature on REMOTE release #173327

There are three possible approaches:

  • Add the root certificate to your .pem file.
  • Second method (recommended): In the remote settings.json, configure "extensions.verifySignature": false to disable extension signature verification.
  • Third method: Downgrade VS Code to version 1.74.3.

For the second method, add the following configuration to the file at:
C:\Users\Administrator (replace Administrator with your current system username)\.vscode-server\data\Machine\settings.json

"extensions.verifySignature": false

If the file does not exist, create it manually along the specified path, as shown in the image below:

Tips:

  • Replace Administrator with your actual system username.
  • Do not omit the leading dot (.) before vscode-server.

After completing the configuration and saving the file, restart VS Code — you’ll be able to install and use extensions smoothly again. We hope the VS Code team resolves this bug as soon as possible.

:red_question_mark: QQ: 806797785