Bug 3799 - gpg private key not found, only gpg v1.x used
Summary: gpg private key not found, only gpg v1.x used
Status: RESOLVED INVALID
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: Plugins/Privacy/PGP (show other bugs)
Version: 3.15.0
Hardware: Other Linux
: P3 normal
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2017-03-30 03:28 UTC by max_musterman256
Modified: 2017-03-31 08:40 UTC (History)
0 users

See Also:


Attachments

Description max_musterman256 2017-03-30 03:28:56 UTC
Most likely a private key is not found.
Thus only keys generated within the program with "weaker" cryptographic properties are used.
A related discription is stated here
https://superuser.com/questions/1112673/gpg2-no-secret-key
gpg version gpg (GnuPG) 1.4.20) does not work fully.

Will later dig into some details, using gpgv2 or gpg2 would be recommended I think. But not sure about this.

libetpan binding should further be better explained, make install somehow does not work.
Comment 1 Paul 2017-03-30 08:59:14 UTC
What has this got to do with Claws Mail? Please explain a little more verbosely.
Comment 2 max_musterman256 2017-03-30 18:23:46 UTC
(In reply to comment #1)
> What has this got to do with Claws Mail? Please explain a little more
> verbosely.

Reproduce with installing gpg and gpg2
sudo apt-get install gpgv gpgv2

gpg2 --gen-key
and follow instructions with correct mail adress

If you search within configuration -> account settings -> plugins -> gpg
you will not find your new key.

If you create your key within claw mail with help of the plugin,
lets say for my mail adress and you list it with
gpg2 --list-key max_muster
it is rsa2048 and has no expiration limit.

Expiration limit and abit longer key is recommended.
Further it is annoying that keys are not found.

I am unsure about the exact formatting and where what key is saved.
Further I have no idea about the plugin used/how the binding/linking works.
Comment 3 Paul 2017-03-30 18:53:41 UTC
(In reply to comment #2)

> If you search within configuration -> account settings -> plugins -> gpg
> you will not find your new key.

Where are you expecting to find it, why are you expecting to find it, and what are you expecting to find?
Comment 4 Paul 2017-03-30 18:55:35 UTC
(In reply to comment #2)

> If you create your key within claw mail with help of the plugin,
> lets say for my mail adress and you list it with
> gpg2 --list-key max_muster
> it is rsa2048 and has no expiration limit.
> 
> Expiration limit and abit longer key is recommended.
> Further it is annoying that keys are not found.

If you don't like the key that is generated from within Claws Mail, then don't generate a key from within Claws Mail.

I'm still not seeing the bug here.
Comment 5 max_musterman256 2017-03-31 03:34:31 UTC
Alright, missing configuration of gpgv2/gpg2 [with missing libgcrypt] does not work. calling gpg2 --version returned [ libgcrypt is too old (need 1.7.0, have 1.6.5) ] and thus was not correctly installed/linked and I fixed this with
# echo "/usr/local/lib" > /etc/ld.so.conf.d/gpg2.conf && ldconfig -v
Therefore the key could not be found.
-> not related related to this plugin

Mentioning gpg2.x as dependency in the plugin description would be great though.
More particular gpgv2 as ubuntu/debian package.
Editing and creating key with gpg1.x does not work (at least for me).
Comment 6 Paul 2017-03-31 08:40:39 UTC
(In reply to comment #5)
> Alright, missing configuration of gpgv2/gpg2 [with missing libgcrypt] does
> not work. calling gpg2 --version returned [ libgcrypt is too old (need
> 1.7.0, have 1.6.5) ] and thus was not correctly installed/linked and I fixed
> this with
> # echo "/usr/local/lib" > /etc/ld.so.conf.d/gpg2.conf && ldconfig -v
> Therefore the key could not be found.
> -> not related related to this plugin
> 
> Mentioning gpg2.x as dependency in the plugin description would be great
> though.
> More particular gpgv2 as ubuntu/debian package.
> Editing and creating key with gpg1.x does not work (at least for me).

That's a distro error, nothing to do with Claws-Mail. gpg1.x works fine.

Note You need to log in before you can comment on or make changes to this bug.