Skip to main content

Timeline for gpg: signing failed: No pinentry

Current License: CC BY-SA 4.0

18 events
when toggle format what by license comment
Apr 19 at 19:48 comment added vadersfather @JustTheHighlights a line pinentry-program /opt/homebrew/bin/pinentry-mac in ~/.gnupg/gpg-agent.conf or can specify inline like $ gpg-agent --pinentry-program=/opt/homebrew/bin/pinentry-mac --daemon
Jan 3 at 13:56 comment added ayandebnath @WhatWouldBeCool installing pinentry-mac worked.
Dec 11, 2023 at 9:33 comment added dastrobu Ran into exactly this problem after the homebrew location changed after an upgrade to an Apple Silicon-based mac.
Mar 28, 2023 at 19:39 comment added Mark The only step I needed was gpgconf --kill gpg-agent after gpg stopped working when my mac restarted.
Dec 24, 2022 at 14:44 comment added cyberwombat I needed to do this unix.stackexchange.com/a/671592/361917
Oct 21, 2022 at 16:56 comment added JustTheHighlights How exactly should I "put into gpg-agent.conf file"?
May 5, 2022 at 20:08 comment added What Would Be Cool Did you mean brew install pinentry-mac?
Nov 22, 2021 at 23:22 comment added cweekly Same exact issue as reported and commented on here (albeit MacOS 11.6), and this answer fixed it. Thanks @ragulin et al! :)
S Oct 12, 2021 at 3:55 history suggested TheScrappyDev CC BY-SA 4.0
Added some additional instruction, and emphasized the "Very important"
Oct 11, 2021 at 23:08 review Suggested edits
S Oct 12, 2021 at 3:55
S Jul 29, 2021 at 10:33 history suggested Jianwu Chen CC BY-SA 4.0
Add important step to kill pgp-agent, without it, it won't work.
Jul 29, 2021 at 8:58 review Suggested edits
S Jul 29, 2021 at 10:33
Jun 25, 2021 at 4:54 review Suggested edits
Jun 25, 2021 at 22:22
Jun 25, 2021 at 0:21 comment added antonimmo Had the same issue as @RobM did, so just restarted it (gpgconf --kill gpg-agent) and it worked again
Apr 14, 2021 at 2:10 comment added RobM Same as @JérémieBoulay but in my case the reason was that OSX's UI crashed during the night without rebooting the base OS apparently (uptime was still 8 days+). Apparently my new login instance wasn't able to contact the running gpg agent and git commit was failing to sign my commits. Again, killing the agent as above fixed the problem.
Mar 2, 2021 at 12:59 comment added Jérémie Boulay Oh! It's finally worked after using this command: gpgconf --kill gpg-agent. Maybe the pinentry upgrade wasn't take in account by the previous gpg-agent.
Mar 2, 2021 at 11:26 comment added Jérémie Boulay That didn't worked for me. I've the same path saved in gpg-agent.cong.file than the one given by the command which pinentry-mac.
Feb 24, 2021 at 22:53 history answered ragulin CC BY-SA 4.0