jorgelbg / pinentry-touchid

Custom GPG pinentry program for macOS that allows using Touch ID for fetching the password from the macOS keychain.
Apache License 2.0
560 stars 27 forks source link

Fallback to password doesn't show password prompt #38

Open makkes opened 3 months ago

makkes commented 3 months ago

Describe the bug

When the Touch ID dialog opens and I click on "Use Password...", no password prompt opens and GPG says "gpg: signing failed: No passphrase given".

Steps to reproduce:

  1. Run echo 'hello, world!' | gpg -as
  2. In the Touch ID dialog click on "Use Password..."

System information

macOS

GPG

Configuration

gpg:OpenPGP:/opt/homebrew/Cellar/gnupg/2.4.5/bin/gpg
gpgsm:S/MIME:/opt/homebrew/Cellar/gnupg/2.4.5/bin/gpgsm
keyboxd:Public Keys:/opt/homebrew/Cellar/gnupg/2.4.5/libexec/keyboxd
gpg-agent:Private Keys:/opt/homebrew/Cellar/gnupg/2.4.5/bin/gpg-agent
scdaemon:Smartcards:/opt/homebrew/Cellar/gnupg/2.4.5/libexec/scdaemon
dirmngr:Network:/opt/homebrew/Cellar/gnupg/2.4.5/bin/dirmngr
pinentry:Passphrase Entry:/opt/homebrew/opt/pinentry/bin/pinentry

Logs

$ echo 'hello, world!' | gpg -as
gpg: signing failed: No passphrase given
-----BEGIN PGP MESSAGE-----

gpg: signing failed: No passphrase given

gpg-agent:

gpg-agent.log

pinentry-touchid:

2024/07/31 18:44:38 main.go:118: Ready!
2024/07/31 18:44:39 main.go:348: Failed to authenticate