evolution gpg encryption

Asked by w.0q

Hi,
I want to use Evolution 2.8.1 under Ubuntu 6.10 for my encrypted gpg mail corespondence. I have installed gpg package manualy from www.gnupg.org, have imported my key-pair (included my personel secret key and my public key) and public keys of my friends. Then I have adjusted preferences: Edit>Preferences>Mail accounts - Edit>Security, where I have written my key ID and checked the box "always encrypt to myself", all the other left blank. I though now I`m ready to encrypt, but not. When I write a mail and check the encryption possibilities in Security menu, I always get erorr saying:

Could not create message.

Because "gpg: using subkey 7B1F44F3 instead of primary key 99C86D1F
gpg: using PGP trust model
gpg: 7B1F44F3: There is no assurance this key belongs to the named user
gpg: [stdin]: encryption failed: unusable public key
", you may need to select different mail options.

I tried to set my ID in mail accounts security preferences to my primary key, my secret key, my subkey, in format 0x in straifgt format, I tried to give there my mail adress, but still I`m getting this very same erorr message. I found no solution for my problem on the net, in forums, neither in manual. Everywhere is said, that after filling the ID everything just works fine. Well, not for me.

It`s strange for me, that Evo doesn`t have it`s keys management and just check mail adress of recipient with gpg key list, I though problem might be there. I checked my list many times, I have my own keys, recipient`s key. When I write gpg --edit-key with my primary key ID, it confirms me "Secret key is available." I even installed seahorse 0.9.92 for doublecheck, that I really have my keys and recipient key, trusted, signed.

I just don`t know what to do. Thanks for help

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu evolution Edit question
Assignee:
No assignee Edit question
Solved by:
greenwood
Solved:
Last query:
Last reply:
Revision history for this message
Markus Thielmann (thielmann) said :
#1

Thanks for your question.

Is there any reason why you installed gnupg manually, instead using the repository version? The problem is obviously in the communnication between evolution and gpg.

So the easiest way to solve is to install gnupg's repository version.

Revision history for this message
w.0q (w.0q) said :
#2

Thank you very much for quick answer.

I found manual installation the clearest. Ok, maybe I was wrong :-) Well, how do I install gpg from repository? I tried "sudo apt-get install gpg", but no such package was found, then I tried to look up something using aptitude, but the character- chain "gpg" was only in names of packages of some libraries and gnomegpg and stuff like this. So what should I install and how?

Thanks.

Revision history for this message
Cesare Tirabassi (norsetto) said :
#3

gnupg is installed by default, so maybe adding the other broke it somehow.
You can try to reinstall with "sudo apt-get install gnupg".
Indeed, I just used the pre-installed package and I'm using encription (with or outside Evo) with no problem.

In case it is helpfull, I'm adding a link to a page with the basics of gpg on Ubuntu:

https://help.ubuntu.com/community/GnuPrivacyGuardHowto

Revision history for this message
w.0q (w.0q) said :
#4

"sudo apt-get install gnupg" didn`t work, because it was already installed in newest version, so I used "sudo apt-get remove gnupg" (which removed few more packages with it) and then install again with "sudo apt-get install gnupg". I checked I still have my keys by "gpg --keys-list", the launches evo, reviewed the security preferences and tried to send encypted mail but with no success and the same result - error message as before (mentioned above). grrr.

Revision history for this message
w.0q (w.0q) said :
#5

I would like to cross out the possibility, that mistake is in this one individual recipient and his subkey with new mail adress (he changed adress and generated new subkey, maybe this is my death-trap), so could you please someone give me your mail adress and public key, so I can try whether the problem still appears or successfully send you encrypted mail? Thank you

Revision history for this message
Markus Thielmann (thielmann) said :
#6

You'll find my E-Mail and GPG key in my launchpad profile.

Revision history for this message
w.0q (w.0q) said :
#7

Tried to send you encrypted mail, Markus, but still the same problem :-(

Revision history for this message
Launchpad Janitor (janitor) said :
#8

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
w.0q (w.0q) said :
#9

It seems, that evo has nothing to do with this issue. I think I should reinstall all the gpg and related packages. I tried, but unsuccessfuly. Please, which package exactly and how using what tool should I reinstall?
Thanks

Revision history for this message
Cesare Tirabassi (norsetto) said :
#10

These packages are standard in every Ubuntu installation:

gnupg
gpgv
libgpg-error0
libgpgme11
python-gnupginterface

You can therefore re-install them all with this command:

sudo apt-get install --reinstall gnupg gpgv libgpg-error0 libgpgme11 python-gnupginterface

Note that if you installed a self-compiled package, you should remove this too before attempting the reinstall.
You should look at the documentation provided with the source tarball for instructions on how to do it (usually a "sudo make unistall" command given in the unpackaged tree root).

Revision history for this message
w.0q (w.0q) said :
#11

thx

I did the "sudo make uninstall" then "sudo apt-get install --reinstall gnupg gpgv libgpg-error0 libgpgme11 python-gnupginterface". I got output, that package named "gpgv" cannot be found. Maybe your typo, I dont know, eh. Anyway I installed evrything except that unknown mystery gpgv and made a try with evo. well, I still can't encrypt my mail, but when I checked all the options in security menu while creating a message (PGP sign, PGP encrypt, S/MIME sign, S/MIME encrypt), then click send, write my passphrase, I got "new" error output in small window:

Because "Failed to execute gpg: Broken pipe", you may need to select different mail options.

But when I check only first two security options (PGP sign, PGP encrypt), I get that old error message (as in my first post above).

Revision history for this message
Cesare Tirabassi (norsetto) said :
#12

If you don't find gpgv most probably is because you are not using the 64 bits version of Ubuntu (its only available for 64 bits systems).

Revision history for this message
Don (don-donayreconsulting) said :
#13

Hello W.

I got *exactly* the same error message as you did.

The error message is fine as far as it goes, but the Evo manual is short on hints.

In my case, (names changed) I had imported a public key from Fred
1) try to send an enc. mail to Fred - error message
2) Signed Freds imported pubkey with my privatekey, and checked the
'yes I do believe that this is his pubkey' box
3) tried again, it worked - encrypted mail sent to Fred (and it arrived, and it decrypted!)

I know I'm not using Ubuntu (heresy! burn him!) but its not strictly a distribution problem.

Evolution 2.10.3
Qt: 3.3.8
KDE: 3.5.7-21.fc7 Fedora
KGpg: 1.2.2

yours
-D

Revision history for this message
ChesterElperro (chester-alliswell) said :
#14

I had exactly the same problem. Using seahorse, I changed the 'trust' of my own key to 'ultimate'. That solved the problem for me.

Revision history for this message
Best greenwood (sg-evergreen) said :
#15

In order to encrypt a mail using Evolution, you'll have to sign the recipient's public key with your private key as follows:

1. Import the recipient's public key into your keyring.

2. Sign the recipient's public key with your private key (You'll have the options of Not at all, Casually and Very Carefully. Choose as you wish).

Now, you're ready to send an encrypted mail to that recipient.

I've already tested on Ubuntu 8.10 using Evolution 2.24.1.

Revision history for this message
w.0q (w.0q) said :
#16

Yes, since later versions of Ubuntu and introduction of keyring, programs cooperate better. So, problem is solved, but still, I'd be happier with more sophisticated key-management implemented in Evo, so you can create rules per recipient - which key to which address, when encypt, when sign, when enclose MIME - I really miss these options in Evo.

Thank you anyway

Revision history for this message
abraxas@abraxas.us (abraxas) said :
#17

Hi,

May be you can help decipher this error message I get when tring to send an email, I have setup no encryption whatsoever nor I want any but evo tells me:

Could not create message.
Because "gpg: skipped "<email address hidden>": secret key not available
gpg: signing failed: secret key not available
", you may need to select different mail options.

I just want to send and receive emails. Oh! by the way, evo has the send/receive button greyed out from the begining so I cannot download messages from my server....any sugestons..please?

Thanks

Gus

Revision history for this message
abraxas@abraxas.us (abraxas) said :
#18

Hello !

Got it solved on my own ...of course these issues were silly.

On the servers security tab I had checked that all mail had to have a signature....duhhh I thought referred to name and other stuff one uses atbottom of email.

The send/receive button was greyed out because the little icon for connecting evolution was disconnected or off line mode...

So never mind, thankyou and lets see what evolution is this evolution...

Gus