Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Thunderbird 2.0 and gpg

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
Genetic
Tux's lil' helper
Tux's lil' helper
Posts: 111
Joined: Fri Jun 09, 2006 8:44 am

Thunderbird 2.0 and gpg

  • Quote

Post by Genetic » Sat Apr 21, 2007 9:13 am

Hello,

since the thunderbird 2 upgrade I can't decrypt email encrypted with my public key. Thunderbird/Enigmail gives me the following error message:
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
Top
IQgryn
l33t
l33t
Posts: 764
Joined: Mon Sep 05, 2005 10:54 pm
Location: WI, USA

  • Quote

Post by IQgryn » Sat Apr 21, 2007 4:10 pm

You may need to re-emerge enigmail after upgrading thunderbird.
Top
Genetic
Tux's lil' helper
Tux's lil' helper
Posts: 111
Joined: Fri Jun 09, 2006 8:44 am

  • Quote

Post by Genetic » Sat Apr 21, 2007 7:15 pm

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
Top
Genetic
Tux's lil' helper
Tux's lil' helper
Posts: 111
Joined: Fri Jun 09, 2006 8:44 am

  • Quote

Post by Genetic » Sun Apr 22, 2007 3:00 pm

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

//Genetic
Top
meadlin
n00b
n00b
User avatar
Posts: 14
Joined: Wed Jan 15, 2003 5:36 pm
Location: California City, CA

bump

  • Quote

Post by meadlin » Sun Apr 29, 2007 4:09 am

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.
Top
karnesky
Apprentice
Apprentice
Posts: 218
Joined: Thu Mar 18, 2004 9:07 pm
Contact:
Contact karnesky
Website

  • Quote

Post by karnesky » Tue May 01, 2007 3:48 pm

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
Top
meadlin
n00b
n00b
User avatar
Posts: 14
Joined: Wed Jan 15, 2003 5:36 pm
Location: California City, CA

[Solved]...Partially...

  • Quote

Post by meadlin » Wed May 02, 2007 6:56 am

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.
Top
Skyr
n00b
n00b
Posts: 8
Joined: Wed Mar 16, 2005 11:53 am

Workaround: gpg-agent

  • Quote

Post by Skyr » Tue May 22, 2007 3:27 pm

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: Select all

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.
Top
grafrotz
n00b
n00b
User avatar
Posts: 38
Joined: Sun Aug 27, 2006 11:10 am
Location: Frankfurt, Germany

another solution

  • Quote

Post by grafrotz » Tue May 29, 2007 11:38 am

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: Select all

...
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: Select all

pinentry-program /usr/bin/pinentry-qt
default-cache-ttl 7200
max-cache-ttl 14400
nano -w ~/.gnupg/gpg.conf

Code: Select all

# Passphrase agent
use-agent
first i tried it with

Code: Select all

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: Select all

USE="-gtk qt3" emerge app-crypt/pinentry
and perhaps the problem is caused by gtk+...
Top
Post Reply

9 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic