Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Thunderbird 2.0 and gpg
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Genetic
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jun 2006
Posts: 111

PostPosted: Sat Apr 21, 2007 9:13 am    Post subject: Thunderbird 2.0 and gpg Reply with quote

Hello,

since the thunderbird 2 upgrade I can't decrypt email encrypted with my public key. Thunderbird/Enigmail gives me the following error message:

Quote:

OpenPGP Security Info

Error - secret key needed to decrypt message

gpg command line and output:
/usr/bin/gpg --charset utf8 --batch --no-tty --status-fd 2 -d --use-agent
gpg: problem with the agent: No pinentry
gpg: encrypted with 2048-bit ELG key, ID ..., created 2004-01-29
"X Y <xy@xy.net>"
gpg: encrypted with 4096-bit ELG key, ID ..., created 2006-07-25
"Y Z <yz@yz.de>"
gpg: public key decryption failed: General error
gpg: encrypted with 2048-bit ELG key, ID ..., created 2003-11-22
"Z A <za@freenet.de>"
gpg: decryption failed: No secret key


(I replaced the key IDs with ... and changed the email addresses). The second key is mine (the one above the "General error" line. As I'm not familiar with gpg, can someone give me a hint of what's wrong or how to fix it? It worked just fine with Thunderbird 1.x.

Thanks in advance
//Genetic
Back to top
View user's profile Send private message
IQgryn
l33t
l33t


Joined: 05 Sep 2005
Posts: 764
Location: WI, USA

PostPosted: Sat Apr 21, 2007 4:10 pm    Post subject: Reply with quote

You may need to re-emerge enigmail after upgrading thunderbird.
Back to top
View user's profile Send private message
Genetic
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jun 2006
Posts: 111

PostPosted: Sat Apr 21, 2007 7:15 pm    Post subject: Reply with quote

I already did that. I even did an 'emerge -e thunderbird', where the last ebuild is enigmail.
By the way: I also tried gpg --encrypt and gpg --decrypt which worked for my private/public key.

//Genetic
Back to top
View user's profile Send private message
Genetic
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jun 2006
Posts: 111

PostPosted: Sun Apr 22, 2007 3:00 pm    Post subject: Reply with quote

Little addition: I just tried Thunderbird 1.5 and it works...
Do you think it is a bug in Thunderbird 2?

//Genetic
Back to top
View user's profile Send private message
meadlin
n00b
n00b


Joined: 15 Jan 2003
Posts: 14
Location: California City, CA

PostPosted: Sun Apr 29, 2007 4:09 am    Post subject: bump Reply with quote

Having the same problems here. Exist when using the xpi version of enigmail with the mozilla-thunderbird ebuild also. Note, I'm not using the mozilla-thunderbird-bin ebuild, but enigmail generates the error with the 0.95 ebuild of enigmail as well.
Back to top
View user's profile Send private message
karnesky
Apprentice
Apprentice


Joined: 18 Mar 2004
Posts: 218

PostPosted: Tue May 01, 2007 3:48 pm    Post subject: Reply with quote

The enigmail in portage with Thunderbird 2 mangles my outgoing PGP/MIME messages. The XPI version leads to the errors reported previously. This is on two different boxes (an x86 and an amd64). Something funny is going on.

Reverting to TB 1.5 fixes everything.
_________________
Donate to F/OSS
Back to top
View user's profile Send private message
meadlin
n00b
n00b


Joined: 15 Jan 2003
Posts: 14
Location: California City, CA

PostPosted: Wed May 02, 2007 6:56 am    Post subject: [Solved]...Partially... Reply with quote

Ok, after uninstalling the XPI, and the ebuild, and the mozilla-thunderbird ebuild...

If you install the mozilla-thunderbird-bin ebuild, then install the XPI version of enigmail, it works, at least for me.
Back to top
View user's profile Send private message
Skyr
n00b
n00b


Joined: 16 Mar 2005
Posts: 8

PostPosted: Tue May 22, 2007 3:27 pm    Post subject: Workaround: gpg-agent Reply with quote

Same problem here, just emerged thunderbird-2.0 (source, not the bin package) and enigmail; as a workaround, I just set up gpg-agent: Emerge app-crypt/pinentry and net-misc/keychain. Put the following in your ~/.gnupg/gpg-agent.conf:
Code:

pinentry-program usr/bin/pinentry-gtk-2
default-cache-ttl 7200
max-cache-ttl 14400

Make sure your gpg-agent is running (and the environment is set properly) - keychain helps you with that. Thunderbird/Enigmail will use the gpg-agent daemon - which in turn will ask for a passphrase when needed.
Back to top
View user's profile Send private message
grafrotz
n00b
n00b


Joined: 27 Aug 2006
Posts: 38
Location: Frankfurt, Germany

PostPosted: Tue May 29, 2007 11:38 am    Post subject: another solution Reply with quote

i had the same problem in mozilla-thunderbird 2.0.0.0 and enigmail-0.95.0-tb.xpi. (i compiled mozilla-thunderbird from source - emerge - and downloaded the xpi by hand.)

Code:

...
gpg: Problem mit dem Agenten: Ungültige IPC Antwort
...
gpg: Entschlüsselung mit Public-Key-Verfahren fehlgeschlagen: Allgemeiner Fehler
gpg: Entschlüsselung fehlgeschlagen: Kein geheimer Schlüssel


i found that it happens too without mozilla-thunderbird. i saved an email-source-code to a textfile and tried in the console: "gpg email.txt". i received the same errors as in thunderbird. so the problem is in gpg and/or pinentry.

i found that /usr/bin/pinentry-gtk-2 causes the problem.

:lol: my solution :lol: is to use another pinentry frontend: nano -w ~/.gnupg/gpg-agent.conf
Code:

pinentry-program /usr/bin/pinentry-qt
default-cache-ttl 7200
max-cache-ttl 14400


nano -w ~/.gnupg/gpg.conf
Code:

# Passphrase agent
use-agent


first i tried it with
Code:

gpg-agent --daemon
and copy&paste the output line to the command line (for example: "GPG_AGENT_INFO=/tmp/gpg-HqVL2H/S.gpg-agent:24323:1; export GPG_AGENT_INFO;")


but i noticed that when not starting "gpg-agent --daemon", gpg works too.
it works from the command line "gpg email.txt" and it works too out of thunderbird!

tip: start thunderbird from a console and watch the output.

update: using "pinentry-program /usr/bin/pinentry-curses" in the ~/.gnupg/gpg-agent.conf works too from the command line, but can not be used out of thunderbird (?!)...
perhaps the easiest solution is:
Code:

USE="-gtk qt3" emerge app-crypt/pinentry

and perhaps the problem is caused by gtk+...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum