Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 693 Bytes

README.md

File metadata and controls

39 lines (26 loc) · 693 Bytes

pinentry-vscode

pinentry program for Visual Studio Code.

Configuration

VSCode Setting

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

GPG Agent Setting

Install socat program.

sudo apt update
sudo apt install socat

Create shell script.

/path/to/pinentry-vscode

#!/bin/sh
exec /user/bin/socat stdio unix-connect:/run/user/1000/pinentry-vscode.sock
chmod +x /path/to/pinentry-vscode

Then, add following line to ~/.gnupg/gpg-agent.conf

pinentry-program /path/to/pinentry-vscode