tag:gpgtools.tenderapp.com,2011-11-04:/discussions/problems/1116-messages-no-longer-decrypting-pinentry-mac-crashingGPGTools: Discussion 2018-10-18T19:52:53Ztag:gpgtools.tenderapp.com,2011-11-04:Comment/146045112012-03-19T17:51:44Z2012-03-19T17:51:44ZMessages no longer decrypting, pinentry-mac crashing<div><p>It is in fact related to pinentry crashing. I've seen this
problem before on my own mac but couldn't reproduce it after a
while.<br>
Could you please try to install GPGMail or GPGTools Installer from
<a href=
"http://nightly.gpgtools.org">http://nightly.gpgtools.org</a>?</p>
<p>That should most definitely fix the problem.</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/146045112012-03-19T17:55:55Z2014-08-13T20:50:58ZMessages no longer decrypting, pinentry-mac crashing<div><p>Thanks for your suggestion Luke.</p>
<p>I reinstalled GPGTools, and afterward I checked my ~/.gnupg
directory and saw a 0 byte file was present named gpg-agent.conf.
Now when I open Mail.app, I am prompted to allow pinentry-mac the
access to my Keychain, and if I do, then decryption works just
fine. No more crashing.</p>
<p>Why am I prompted to allow pinentry-mac to have access to my
Keychain? I could be wrong, but I don't recall doing this before.
Also, the prompt message says that "authenticity cannot be
verified" (I guess this has something to do with OS X doing a code
signature check?). I'm always paranoid about these sorts of
prompts. ;-)</p></div>michael.myerstag:gpgtools.tenderapp.com,2011-11-04:Comment/146045112012-03-19T18:02:20Z2012-03-19T18:02:20ZMessages no longer decrypting, pinentry-mac crashing<div><p>Ah good, so at least a little progress.</p>
<p>Try to write this information in your .gnupg/gpg-agent.conf:</p>
<p>default-cache-ttl 1800<br>
pinentry-program
/Users/mmyers/Library/Mail/Bundles/GPGMail.mailbundle/Contents/Frameworks/Libmacgpg.framework/Resources/pinentry-mac.app/Contents/MacOS/pinentry-mac<br>
max-cache-ttl 21600</p>
<p>That might make things go back to normal.</p>
<p>As for the keychain and verification problem, could you please
post some screenshots?</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/146045112012-03-19T19:07:14Z2014-08-13T20:50:58ZMessages no longer decrypting, pinentry-mac crashing<div><p>Ok, the gpg-agent.conf file had since been filled in with the
pinentry-program path in GPGTools:</p>
<p>pinentry-program
/usr/local/MacGPG2/libexec/pinentry-mac.app/Contents/MacOS/pinentry-mac</p>
<p>I replaced that with the lines you suggested. It still
works.</p>
<p>As for the keychain approval prompt, I received it only once
(even though I answered "Allow", not "Always Allow"). Once I
switched to the other copy of the pinentry-mac executable as you
suggested, I received the prompt again, and was able to take a
screenshot (attached).</p></div>michael.myerstag:gpgtools.tenderapp.com,2011-11-04:Comment/146045112012-03-19T20:22:13Z2012-03-19T20:22:13ZMessages no longer decrypting, pinentry-mac crashing<div><p>The one time question is only coming up, because this is a new
version of pinentry-mac app. It's shown once for every new version,
that's OS X's rule for apps accessing the keychain.</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/146045112012-03-20T12:36:43Z2012-03-20T12:36:43ZMessages no longer decrypting, pinentry-mac crashing<div><p>We've created two tickets for this problem. If you want to
receive notifications when anything is done related to this problem
feel free to subscribe to:</p>
<ul>
<li><a href=
"http://gpgtools.lighthouseapp.com/projects/65162/tickets/137">http://gpgtools.lighthouseapp.com/projects/65162/tickets/137</a></li>
<li><a href=
"http://gpgtools.lighthouseapp.com/projects/66001/tickets/86">http://gpgtools.lighthouseapp.com/projects/66001/tickets/86</a></li>
</ul></div>Stevetag:gpgtools.tenderapp.com,2011-11-04:Comment/146045112012-03-27T11:59:49Z2012-03-27T11:59:49ZMessages no longer decrypting, pinentry-mac crashing<div><p>Again: please subscribe to the lighthouse tickets for updates.
Closing this discussion for now. Should you have more problems or
need help with anything please open a new discussion any time and
we'd be glad to help you out.</p>
<p>All the best, steve</p></div>Steve