DEV Community

Malik Benkirane
Malik Benkirane

Posted on

pinentry-touchid

❯ pinentry-touchid  --check                                                                                                                                                                                            
❌ /opt/homebrew/opt/pinentry/bin/pinentry is a symlink that resolves to /opt/homebrew/Cellar/pinentry/1.2.1/bin/pinentry-curses not to pinentry-mac
Enter fullscreen mode Exit fullscreen mode

symlink correction

sudo rm /opt/homebrew/opt/pinentry/bin/pinentry
sudo ln -s $(which pinentry-mac) /opt/homebrew/opt/pinentry/bin/pinentry
Enter fullscreen mode Exit fullscreen mode

or just

pinentry-touchid -fix
Enter fullscreen mode Exit fullscreen mode

gpg-agent

~/.gnupg/gpg-agent.conf

pinentry-program $(which pinentry-touchid)
Enter fullscreen mode Exit fullscreen mode

do not forget to replace $(which pinentry-touchid) with its evaluated result as pinentry-touchid absolute path

Then reloading the agent

gpg-connect-agent reloadagent /bye
Enter fullscreen mode Exit fullscreen mode

Top comments (0)