Signing with GPG in Windows System for Linux (WSL2) does not work smoothly out of the box. Notably, when using a TTY-based pinentry, signing in Visual Studio Code does not work at all.
- Install Gpg4Win:
winget install -e GnuPG.Gpg4winor download and install manually - Start Kleopatra and generate or import keys
- Insert links to
gpg.exeinside of WSL: