LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-05-2005, 08:51 AM   #1
OneManArmy
Member
 
Registered: Apr 2004
Location: Motherboard
Distribution: Debian GNU/Linux
Posts: 156

Rep: Reputation: 30
kMail and GnuPG


I am currently having a problem importing a signed key. One of my friends have
sent me my key signed by him so I need to import it to my keyring.
When I first received the email from him, the email showed that it had an attachment.
And since the email itself was encrypted with my PGP key, I thought that KMail should popup a message asking me to enter the passphrase to decrypt the mail (just like when sending) but this didn't happen. However, I got this message in the email body
Code:
Encrypted message (decryption not possible)
Reason: Crypto plug-in "openpgp" could not decrypt the data.
Error: Bad passphrase

Encrypted data not shown.

End of encrypted message
I tried saving the email itself as a normal file (right click on the email and save as), and used the command (in shell) 'gpg --decrypt filename' which seemed to work, asking me for the passphrase, entering it revealed the email contents.
My friend was telling me (in the email's plaintext) that my signed key is attached (encrypted as well), so I had to decrypt it first before importing it.

Code:
Content-Type: multipart/mixed; boundary="ZoaI/ZTpAVc4A5k6"
Content-Disposition: inline


--ZoaI/ZTpAVc4A5k6
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Email's plaintext

--ZoaI/ZTpAVc4A5k6
Content-Type: application/octet-stream
Content-Disposition: attachment; filename="assem.key.gpg"
Content-Transfer-Encoding: base64

wiCd01FzD8w+m5IDoCu5E2NmQjNceVNP4OJeF5Dcsq0zlFVWmwjGkxei3NiOe1Px6sMHt0mz
.....etc
--ZoaI/ZTpAVc4A5k6--
gpg: Signature made Wed 15 Dec 2004 08:01:11 PM CET using DSA key ID ****
gpg: Good signature from ****
The point is that I don't what to do now. Is my signed key that ciphertext *only*, and if so, should I save to a file or what? I tried saving the ciphertext as the filename assem.key.gpg and doing
Code:
onemanarmy@spark:~$ gpg --decrypt assem.key.gpg
gpg: no valid OpenPGP data found.
gpg: decrypt_message failed: eof
Any help would be highly appreciated.
Thanx

Last edited by OneManArmy; 02-05-2005 at 08:53 AM.
 
Old 02-06-2005, 12:52 PM   #2
ironwalker
Member
 
Registered: Feb 2003
Location: 1st hop-NYC/NewJersey shore,north....2nd hop-upstate....3rd hop-texas...4th hop-southdakota(sturgis)...5th hop-san diego.....6th hop-atlantic ocean! Final hop-resting in dreamland dreamwalking and meeting new people from past lives...gd' night.
Distribution: Siduction, the only way to do Debian Unstable
Posts: 506

Rep: Reputation: Disabled
He was sending you his keys so you can decrypt his emails...so I have to ask why did he send them in an encrypted email?
 
Old 02-06-2005, 02:16 PM   #3
OneManArmy
Member
 
Registered: Apr 2004
Location: Motherboard
Distribution: Debian GNU/Linux
Posts: 156

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by ironwalker
He was sending you his keys so you can decrypt his emails...so I have to ask why did he send them in an encrypted email?
He was sending *my* signed key. So I decrypted the mail he sent me and now I don't know
how to extract the attached signed key from it !
 
  


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
SuSE 8.2 and KMail/GnuPG Conficio SUSE / openSUSE 0 10-15-2004 12:40 PM
kmail and gnupg axlotl Linux - Security 1 11-04-2003 12:21 PM
KMail with gnupg tarballedtux Linux - Security 2 03-02-2003 03:18 PM
Kmail + GnuPG problem unsane Linux - Software 0 06-25-2002 07:38 AM
GNUpg on Kmail chas Linux - Software 1 08-26-2000 06:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:35 AM.

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