Signing git commits with GPG installed in WSL2 (with PHPStorm)

Philipp Scheit
Apr 17, 2024

--

Install git+gpg on WSL2. (Create your GPG keys)
Install Gpg4win on Windows.

Let PHPStorm use the git installed in WSL2

write this into ~/.gnupg/gpg-agent.conf (might be not existing)

pinentry-program "/mnt/c/Program Files (x86)/Gpg4win/bin/pinentry.exe

Then reload the gpg agent

gpg-connect-agent reloadagent /bye

--

--