This forum has been archived. All content is frozen. Please use KDE Discuss instead.

kmail and gpg

Tags: None
(comma "," separated)
User avatar
jemadux
Registered Member
Posts
28
Karma
0
OS

kmail and gpg

Tue Dec 28, 2010 8:20 pm
i send one encrypted mail to my friend and when i m going to see what happend i am seeing this
Image
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: kmail and gpg  Topic is solved

Tue Dec 28, 2010 10:05 pm
Have you checked in the KMail message menus to see if a "Decrypt" option is available?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
jemadux
Registered Member
Posts
28
Karma
0
OS

Re: kmail and gpg

Wed Dec 29, 2010 11:59 am
hmm ... in this message has nothing else .. maybe a make a mistake
User avatar
ivan
KDE Developer
Posts
918
Karma
14
OS

Re: kmail and gpg

Wed Dec 29, 2010 12:08 pm
That is what encrypted messages look like.

It would be a security issue if kmail would decrypt it automatically for you.


Image
User avatar
annew
Manager
Posts
1155
Karma
11
OS

Re: kmail and gpg

Wed Dec 29, 2010 12:34 pm
Check the settings under Configure KMail -> Security Section -> Composing tab. You probably have "Store Sent messages encrypted" which is good for security. If you have the signature of your friend as well as your own on your keyring you should be able to decrypt it automatically within KMail. What you are seeing is what you usually see if gpg is not installed or the keyring isn't readable.

You may find the following pages helpful:

http://userbase.kde.org/KMail/PGP_MIME
http://userbase.kde.org/KMail/gpg

If you haven't already done so, make sure that pinentry-qt4 is installed, and also install kgpg.


annew, proud to be a member of KDE forums since 2008-Oct and a KDE user since 2002.
Join us on http://userbase.kde.org
User avatar
ivan
KDE Developer
Posts
918
Karma
14
OS

Re: kmail and gpg

Wed Dec 29, 2010 12:58 pm
If the mail is encrypted with someone's public key, only the one who has the private key can decrypt it.

So, if kmail doesn't do the encryption (I have no clue how it is managed in kmail) with both receiver's and sender's keys and keep both, the sender will not be able to decrypt the message.


Image
User avatar
annew
Manager
Posts
1155
Karma
11
OS

Re: kmail and gpg

Wed Dec 29, 2010 3:24 pm
That's exactly how it works. You have your private key and your friend's public key. You sign it with the combination of the two - all you have to do to read the message is to provide the passphrase for your own part of the key. If gpg-agent is running you can set it to cache for a specific time, too, so that it doesn't become a nuisance. Since I need my keys regularly I set it to require a password once an hour. UserBase explains the use of all this.


annew, proud to be a member of KDE forums since 2008-Oct and a KDE user since 2002.
Join us on http://userbase.kde.org
User avatar
ivan
KDE Developer
Posts
918
Karma
14
OS

Re: kmail and gpg

Wed Dec 29, 2010 4:54 pm
"You sign it with the combination of the two - all you have to do to read the message is to provide the passphrase for your own part of the key."

It is not the matter of signing. If you meant it 'encrypts' the message with both your public and someone else's public key, then ok.

(i'm a bit of cryptology nut :) )


Image
User avatar
annew
Manager
Posts
1155
Karma
11
OS

Re: kmail and gpg

Thu Dec 30, 2010 11:36 am
You are correct. I should have written that you encrypt it with the combination of the two keys. Apologies.


annew, proud to be a member of KDE forums since 2008-Oct and a KDE user since 2002.
Join us on http://userbase.kde.org


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]