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

Reinvent your career. Join DEV.

It takes one minute and is worth it for your career.

Get started

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay