C3S / redmine_openpgp

Redmine plugin for email encryption with the OpenPGP standard
GNU General Public License v3.0
19 stars 10 forks source link

GPGME issues #8

Open ageis opened 8 years ago

ageis commented 8 years ago

In one scenario where the gnupg2 package is not present, when running update_redmine_pgpkey rake task, I receive the error GPGME::Error::InvalidEngine: Invalid crypto engine.

Also when an email emission is triggered, in Redmine's production.log I see Email delivery error: Invalid crypto engine.

The cause of this, I believe, is that the libgpgme11 package is required by the GPGME gem, and needs to be installed. However, this package depends on gnupg2, so if you avoid ever installing GPG 2.x in order to deal with the known passphrase callback issue, shit will break. I believe this is why it's recommended to move /usr/bin/gpg2 elsewhere, and symlink it to /usr/bin/gpg.

However, if there's no passphrase on your secret key at all, shouldn't calling out to GnuPG 2 or greater simply just work correctly with GPGME?

timegrid commented 7 years ago

I'll need to setup a testing environment for that and #3 someday, but for me it has a low priority right now.