pinentry program for Visual Studio Code.
Settings should be set for workspace.
pinentry-vscode.PINENTRY_VSCODE_SOCKET: socket path that listens for password input requests.- for example,
/run/user/1000/pinentry-vscode.sock
- for example,
Install socat program.
sudo apt update
sudo apt install socatCreate shell script.
/path/to/pinentry-vscode
#!/bin/sh
exec /usr/bin/socat stdio unix-connect:/run/user/1000/pinentry-vscode.sockchmod +x /path/to/pinentry-vscodeThen, add following line to ~/.gnupg/gpg-agent.conf
pinentry-program /path/to/pinentry-vscode