LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-04-2009, 11:26 AM   #1
harkonen
Member
 
Registered: May 2007
Distribution: slackware
Posts: 46

Rep: Reputation: 16
GPG issues with Kmail and, to a lesser extent, Alpine


Slackware 13 64bit.

gnuPG worked well on 32bit 12.2 system, and I exported the keys with these commands:
bash$ gpg --armor --export > public.asc
bash$ gpg --armor --export-secret-keys > secret.asc
bash$ gpg --export-ownertrust > trustdb

Then I imported into slack13:
bash$ gpg --import public.asc private.asc
bash$ gpg --import-ownertrust trustdb

I set it as the key for signing and encrypting in Kmail and Pine and this is what happens:

Kmail:
error message == "Signing failed: Bad Passphrase"

Pine:
It does sign my messages successfully.
It does NOT encrypt, returning error: "Pipe command returned error. Hit return to continue."



Does any of this make sense to anyone? What am I doing wrong here? It feels like I'm not importing or exporting the keys correctly but I'm at a loss about what I need to do differently.
 
Old 09-04-2009, 02:22 PM   #2
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,160
Blog Entries: 5

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
Hello,

To setup GPG with KMail, please follow this KMail PGP_MIME HOW-TO.

In particular after the configuration of KMail, pay attention to the "Issues" section:

Quote:
To be sure the "passphrase agent" (gpg-agent) is enabled check your ~/.gnupg/gpg.conf and eventually uncomment the line containing "use-agent".
Quote:
* If you do not have it already, in ~/.kde create a directory called env. In there, create a file called gpgagent.sh containing
Code:
#!/bin/bash
killall gpg-agent
eval `gpg-agent --daemon`
Save it and make it executable.

In the same way you would clean up gpg-agent on shutdown, so if you do not have it already, create another directory called shutdown into ~/.kde and create in it another script file called stop_gpgagent.sh containing
Code:
#!/bin/bash
killall gpg-agent
Save it and make it executable.

It worked for me after I logout KDE and login again.
 
Old 09-04-2009, 06:44 PM   #3
harkonen
Member
 
Registered: May 2007
Distribution: slackware
Posts: 46

Original Poster
Rep: Reputation: 16
Linuxquestions does it again. Amazing. Thanks, gegechris99 it worked like a charm. Brilliant. I'm adding that to my book of tricks.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GPG: Bad session key gpg between gpg on linux and gpg gui on windows XP konqi Linux - Software 1 07-21-2009 09:37 AM
GPG Encryption Problems in Kmail TatforTit Linux - Newbie 16 02-27-2006 10:35 PM
KMail and PGP/GPG not working - doesn't ask for passphrase steve1401 Linux - General 2 02-08-2005 06:42 AM
Kmail doesn't allow gpg encrypted emails steve1401 Debian 5 02-07-2005 05:07 PM
kmail and GPG jayakrishnan Linux - Security 1 07-10-2003 06:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration