6.0.0-git
2018-12-15

[#14014] Add support for GnuPG 2.1 API and/or gnupg extension
Summary Add support for GnuPG 2.1 API and/or gnupg extension
Queue IMP
Queue Version Git master
Type Enhancement
State Feedback
Priority 1. Low
Owners
Requester software-horde (at) interfasys (dot) ch
Created 2015-06-13 (1281 days ago)
Due
Updated 2017-04-19 (605 days ago)
Assigned
Resolved
Milestone
Patch No

History
2017-04-19 12:16:11 Jan Schneider Comment #11
State ⇒ Feedback
Reply to this comment
Neither the GPG_TTY or the '--keyid-format short' seemed to have been 
necessary in my tests on Ubuntu 16.04 LTS, so I left them out for now. 
I had to explicitly allow the loopback pinentry in gpg-agent.conf 
though.
2017-04-19 12:14:33 Git Commit Comment #10 Reply to this comment
Changes have been made in Git (master):

commit 12b0b389efc81d525ca0d0da8b4a4b4b4bab3d5a
Author: Jan Schneider <jan@horde.org>
Date:   Wed Apr 19 14:13:30 2017 +0200

     [jan] Support GnuPG 2.1+ too (Bug #14014).

  framework/Crypt/lib/Horde/Crypt/Pgp/Backend/Binary.php | 11 +++++++++++
  framework/Crypt/package.xml                            |  4 ++--
  2 files changed, 13 insertions(+), 2 deletions(-)

http://github.com/horde/horde/commit/12b0b389efc81d525ca0d0da8b4a4b4b4bab3d5a
2017-04-19 12:14:33 Git Commit Comment #9 Reply to this comment
Changes have been made in Git (master):

commit 7857060cc9bc6f067886cf5e949c79fa7cb095c3
Author: Jan Schneider <jan@horde.org>
Date:   Wed Apr 19 14:12:40 2017 +0200

     Test GnuPG 2 too (Bug #14014).

  .travis.yml                                         | 1 +
  framework/Crypt/test/Horde/Crypt/Pgp/BinaryTest.php | 7 ++++++-
  framework/Crypt/test/Horde/Crypt/conf.php.dist      | 1 +
  3 files changed, 8 insertions(+), 1 deletion(-)

http://github.com/horde/horde/commit/7857060cc9bc6f067886cf5e949c79fa7cb095c3
2017-04-19 12:14:32 Git Commit Comment #8 Reply to this comment
Changes have been made in Git (master):

commit 040e5761b2e00f54fc55452a2de8b6163ea63546
Author: Jan Schneider <jan@horde.org>
Date:   Wed Apr 19 14:05:46 2017 +0200

     Support testing multiple PGP backends.

     Required for testing bug #14014.

  framework/Crypt/test/Horde/Crypt/Pgp/TestBase.php | 174 
+++++++++++++++-------
  1 file changed, 120 insertions(+), 54 deletions(-)

http://github.com/horde/horde/commit/040e5761b2e00f54fc55452a2de8b6163ea63546
2017-04-18 21:46:56 math (dot) parent (at) gmail (dot) com Comment #7 Reply to this comment
DUP of #14548 ?
2017-04-18 21:10:18 math (dot) parent (at) gmail (dot) com Comment #6 Reply to this comment
This may fix this issue: <https://bugs.debian.org/849151>.

But this use short keyid format which is not recommended today.
2017-02-10 17:41:52 mike (dot) gabriel (at) das-netzwerkteam (dot) de Comment #5 Reply to this comment
Hi Jan,
This has been known for ages now, and is the reason why I started to 
write the Horde_Pgp library.

Unfortunately, someone will need to finish that work since I don't 
have the time to finish.
I have sort-of latest Horde (from Debian testing/unstable) running with gpg2.

See https://bugs.debian.org/854819

2016-01-22 15:45:21 Jan Schneider Summary ⇒ Add support for GnuPG 2.1 API and/or gnupg extension
Version ⇒ Git master
 
2016-01-22 15:44:36 Jan Schneider Type ⇒ Enhancement
State ⇒ Accepted
Priority ⇒ 1. Low
 
2015-07-15 06:37:00 Michael Slusarz Comment #4 Reply to this comment
This has been known for ages now, and is the reason why I started to 
write the Horde_Pgp library.

Unfortunately, someone will need to finish that work since I don't 
have the time to finish.
2015-06-19 09:45:02 user66 (at) arcor (dot) de Comment #3 Reply to this comment
I can confirm this bug.

After upgrading my Linux distribution, which upgraded GnuPG from 
2.0.26 to 2.1.4, I can't sign and decrypt E-Mails using PGP any more. 
The GUI always tells me that the password (for the private key) is 
wrong.

So, it really seems that GnuPG 2.1.x does not work with Horde 5.
2015-06-13 18:03:43 software-horde (at) interfasys (dot) ch Comment #2 Reply to this comment
Reading through the commits, it seems GnuPG 2.1 is not supported yet 
and that the gnupg PECL extension will be required.

If that's the case, I think the pgp section of the Horde config should 
let users know.
2015-06-13 17:43:00 software-horde (at) interfasys (dot) ch Comment #1
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Summary ⇒ Can't store PGP passphrase + tests are failing
Queue ⇒ IMP
Milestone ⇒
Patch ⇒ No
Reply to this comment
I can't store the PGP passphrase.
I've noticed that before storing the passphrase IMP is performing a 
test and maybe something isn't working in the library since the 
phpunit tests are failing.

There were 2 errors:

1) Horde_Crypt_PgpTest::testPgpDecrypt
Horde_Crypt_Exception: Could not decrypt PGP data: gpg: decryption 
failed: No secret key

/usr/local/php55/lib/php/Horde/Crypt/Pgp.php:1153
/usr/local/php55/lib/php/Horde/Crypt/Pgp.php:866
/usr/local/php55/lib/php/test/Horde_Crypt/Horde/Crypt/PgpTest.php:74
/usr/local/php55/lib/php/Horde/Test/AllTests.php:84

2) Horde_Crypt_PgpTest::testPgpSign
file_get_contents(/tmp/1am9erx6/horde-pgp5kHzka): failed to open 
stream: No such file or directory

/usr/local/php55/lib/php/Horde/Crypt/Pgp.php:1504
/usr/local/php55/lib/php/Horde/Crypt/Pgp.php:1077
/usr/local/php55/lib/php/Horde/Crypt/Pgp.php:842
/usr/local/php55/lib/php/test/Horde_Crypt/Horde/Crypt/PgpTest.php:430
/usr/local/php55/lib/php/Horde/Test/AllTests.php:84

--

There was 1 failure:

1) Horde_Crypt_PgpTest::testVerifyPassphrase
Failed asserting that false is true.

/usr/local/php55/lib/php/test/Horde_Crypt/Horde/Crypt/PgpTest.php:520
/usr/local/php55/lib/php/Horde/Test/AllTests.php:84

Saved Queries