tag:gpgtools.tenderapp.com,2011-11-04:/discussions/problems/2128-gpg-errorGPGTools: Discussion 2017-09-14T11:49:27Ztag:gpgtools.tenderapp.com,2011-11-04:Comment/192817222012-10-04T00:47:22Z2012-10-04T00:47:22ZGPG error<div><p>Hi Mykola,</p>
<p>could you please install the latest GPGTools-Installer from
nightly.gpgtools.org?<br>
It should fix your problem.</p>
<p>Let us know if it works!</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/192817222012-10-14T22:54:43Z2012-10-14T22:54:43ZGPG error<div><p>No further user feedback. Closing.</p>
<p>@Mykola: Should your problem persist, feel free to re-open this
discussion any time.</p>
<p>All the best,<br>
steve</p>
<hr>
<p>Please consider a <a href=
"https://www.gpgtools.org/donate.html">donation</a>. We do all this
in our spare time.</p></div>Stevetag:gpgtools.tenderapp.com,2011-11-04:Comment/192817222012-10-15T21:41:49Z2012-10-15T21:41:51ZGPG error<div><p>Oops,</p>
<p>My letter was rejected by your (probably) email server. I can
provide rejection details if anyone interested.</p>
<p>On the matter:</p>
<p>I have GnuPG 1.4.12 installed from MacPorts, not from
GPGTools.<br>
And I would like to use only GPGMail.</p></div>Mykola Stryebkovtag:gpgtools.tenderapp.com,2011-11-04:Comment/192817222012-10-16T10:09:40Z2012-10-16T10:09:40ZGPG error<div><p>Hey Mykola,</p>
<p>any reason, why you don't want to use MacGPG2? You could
download our nightly installer. When installing choose customize
install and then select only the the tools you want to have
installed on your system. By the way, which OS X are you using?</p>
<p>Best,<br>
steve</p></div>Stevetag:gpgtools.tenderapp.com,2011-11-04:Comment/192817222012-10-17T13:20:17Z2012-10-17T13:20:18ZGPG error<div><p>Hey Steve,</p>
<p>The only reason is I already have GnuPG in my system and I'm not
sure I need another one. Any problem with using existing GnuPG?</p></div>Микола Стрєбковtag:gpgtools.tenderapp.com,2011-11-04:Comment/192817222012-10-17T13:25:12Z2012-10-17T13:25:12ZGPG error<div><p>Hey Mykola,</p>
<p>it's not per se a problem to use your own gnupg. But using gnupg
1.x is kind of a problem, if the agent doesn't work properly. Gnupg
2.x starts the agent on demand, so the agent is much more
reliable.</p>
<p>You could check what happens if you wanna use gnupg via Terminal
and see if that works.<br>
But we really encourage you to use our installer, or our version of
MacGPG1 (which you can find on nightly.gpgtools.org) because it
takes these issues into consideration and works around them if
necessary.</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/192817222012-10-17T13:32:47Z2012-10-17T13:32:48ZGPG error<div><p>Hey,</p>
<p>I'm using GnuPG extensively and I'm sure it works. Can you point
me to some documentation on how to setup gpg (gpg-agent?) 1.x
properly to make it work with GPGMail?</p></div>Микола Стрєбковtag:gpgtools.tenderapp.com,2011-11-04:Comment/192817222012-10-17T13:34:21Z2012-10-17T13:34:21ZGPG error<div><p>Could you please check your Console.app log to find any errors
related to gpg-agent<br>
It's really hard to guess without having more info.</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/192817222012-10-17T13:57:55Z2012-10-17T13:57:56ZGPG error<div><p>When I open Mail.app pointed to encrypted email I see:</p>
<p>17.10.12 16:54:09,512 Mail[52456]: Using V2 Layout<br>
17.10.12 16:54:09,527 Mail[52456]: objc[52456]: Class FlippedView
is implemented in both /Applications/Mail.app/Contents/MacOS/Mail
and
/Library/Mail/Bundles/GPGMail.mailbundle/Contents/MacOS/GPGMail.
One of the two will be used. Which one is undefined.<br>
17.10.12 16:54:09,532 Mail[52456]: Debug Log enabled: NO<br>
17.10.12 16:54:09,631 Mail[52456]: Loaded GPGMail 2.0b5 ML3<br>
17.10.12 16:54:10,191 Mail[52456]:
CFPropertyListCreateFromXMLData(): Old-style plist parser: missing
semicolon in dictionary on line 168. Parsing will be abandoned.
Break on _CFPropertyListMissingSemicolon to debug.<br>
17.10.12 16:54:11,318 Mail[52456]: *** -[IADomainCache init]: IA
domains cache is out of date.</p>
<p>And in the header of a letter I see a yellow banner "Decryption
failed with unknown error". When I click on "Show details" I see
the following:</p>
<p>An unknown error occurred while decrypting this message.</p>
<p>GPG error message:<br>
Error opening terminal: unknown.<br>
gpg-agent[52465]: command get_passphrase failed: End of file<br>
gpg: problem with the agent: End of file<br>
gpg: encrypted with 4096-bit ELG key, ID C43291E9, created
2009-08-19</p>
<pre>
<code> "Mykola Stryebkov (Seal) <nick@mykola.org>"</code>
</pre>
<p>gpg: public key decryption failed: Operation cancelled<br>
gpg: encrypted with 2048-bit RSA key, ID 23477079, created
2012-06-06</p>
<pre>
<code> "Sanya <sanya@408dev.com>"</code>
</pre>
<p>gpg: decryption failed: No secret key</p>
<p>Please contact us, including the GPG error message, at
support.gpgtools.org</p></div>Микола Стрєбковtag:gpgtools.tenderapp.com,2011-11-04:Comment/192817222012-10-17T14:08:53Z2012-10-17T14:08:54ZGPG error<div><p>BTW, I can send encrypted (not signed :-) emails w/o any
problems. Wich means, afaiu, that GPGMail uses installed GnuPG and
the only problem is to get a password to decrypt a private key.</p></div>Микола Стрєбковtag:gpgtools.tenderapp.com,2011-11-04:Comment/192817222012-10-17T15:24:10Z2012-10-17T15:24:11ZGPG error<div><p>Correction:</p>
<p>Errors above are shown when GnuPG2 is installed.<br>
When I have GnuPG 1.4.12 only I see in /var/log/system.log:</p>
<p>Oct 17 18:18:49 Taran.local Mail[98284]: [GPGMail] Task helper
Exception: *** setObjectForKey: object cannot be nil (key:
_NSTaskExecutablePath)</p>
<p>At the same time I still able to send encrypted emails.</p></div>Микола Стрєбковtag:gpgtools.tenderapp.com,2011-11-04:Comment/192817222012-10-17T15:29:42Z2012-10-17T15:29:42ZGPG error<div><p>Ah ok, I think I have an idea what's not working.<br>
Where does MacPorts install gnupg again?</p>
<p>Could you please make sure that you have the gpg binary in one
of the following locations:<br>
@"/usr/local/bin", @"/usr/local/MacGPG2/bin",
@"/usr/local/MacGPG1/bin", @"/usr/bin", @"/bin", @"/opt/local/bin",
@"/sw/bin"</p>
<p>If that's the case it might be related to the pinentry
program.</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/192817222012-10-17T15:32:21Z2012-10-17T15:32:23ZGPG error<div><blockquote>
<p>which gpg /usr/local/bin/gpg which pinentry pinentry not
found</p>
</blockquote></div>Микола Стрєбковtag:gpgtools.tenderapp.com,2011-11-04:Comment/192817222012-10-17T17:56:35Z2012-10-17T17:56:35ZGPG error<div><p>Ok, so I think the following steps should fix this problem for
you.<br>
Due to the sandboxing changes introduced by Mountain Lion, we still
have to fix the way we try to find the pinentry program.</p>
<p>1.) Edit (or create) gpg-agent.conf in ~/.gnupg/gpg-agent.conf
and add the following line:</p>
<pre>
<code>pinentry-program /Library/Mail/Bundles/GPGMail.mailbundle/Contents/Frameworks/Libmacgpg.framework/Resources/pinentry-mac.app/Contents/MacOS/pinentry-mac</code>
</pre>
<p>(Please check if the path actually exists and is
executable.)</p>
<p>2.) Save the file and run the following command:</p>
<pre>
<code>killall -9 gpg-agent</code>
</pre>
<p>After that, restart Mail.app and check if it works.</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/192817222012-10-17T18:57:28Z2012-10-17T18:57:29ZGPG error<div><p>It works! Thank you!</p>
<p>But. To make it work I installed GnuPG2 from macports and made a
symlink from /usr/local/bin/gpg2 to /usr/local/bin/gpg</p>
<p>And now I can see a cleartext but can't see if letter encrypted
and signed.</p>
<p>Also, I have a question: how to make a system to remember my
private key's password for some time</p></div>Микола Стрєбковtag:gpgtools.tenderapp.com,2011-11-04:Comment/192817222012-10-17T19:04:40Z2012-10-17T19:04:40ZGPG error<div><p>Oh interesting you needed the symlink.</p>
<p>What exactly doesn't work now?</p>
<p>As for the password question, you can set that via
GPGPreferences (download from <a href=
"https://github.com/downloads/GPGTools/GPGPreferences/GPGPreferences-0.9.2.dmg">
https://github.com/downloads/GPGTools/GPGPreferences/GPGPreferences...</a>)</p>
<p>You can either choose to save the password in OS X keychain or
you can choose to remember the password for some time. Default is 1
hour if I'm not mistaken</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/192817222012-10-17T23:24:04Z2012-10-17T23:24:05ZGPG error<div><p>Thank you!</p>
<p>Now everything works fine. I just set up an OS X login hook to
start gpg-agent on login store pins.</p>
<p>And yes, gnupg2 from mac ports does not create $PREFIX/bin/gpg
binary, it does create gpg2. That's the reason why I had to symlink
it.</p></div>Микола Стрєбковtag:gpgtools.tenderapp.com,2011-11-04:Comment/192817222012-10-17T23:27:21Z2012-10-17T23:27:21ZGPG error<div><p>Ah perfect! Very glad you got it working!</p>
<p>Closing this discussion. Feel free to open a new one
anytime!</p></div>Luke Le