micropost: 11 January 2026

This commit is contained in:
Ming Di Leom 2026-01-10 22:09:12 +00:00
parent ac37775f45
commit 08e78449cd
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
---
title: GnuPG 2.5 for Windows is now 64-bit only
date: 2026-01-11
---
After updating GnuPG to 2.5.16 using Chocolatey, I wasn't able to sign commit in WSL with pinentry error. The "$HOME/.gnupg/gpg-agent.conf" was previously configured with `pinentry-program "/mnt/c/Program Files (x86)/gnupg/bin/pinentry-basic.exe"` which is now an invalid path. I updated it to:
`pinentry-program "/mnt/c/Program Files/GnuPG/bin/pinentry-basic.exe"`
Then run `systemctl --user restart gpg-agent.service`.
If Git and GnuPG are used in Windows, the gpg config in "$HOME\\.gitconfig" should be updated to:
```
[gpg]
program = C:\\Program Files\\GnuPG\\bin\\gpg.exe
```