Bug #21016 [Com]: Signing is broken for gnupg 2.0.28

From: Date: Wed, 27 Jan 2016 19:13:44 +0000
Subject: Bug #21016 [Com]: Signing is broken for gnupg 2.0.28
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-11307@lists.php.net to get a copy of this message
Edit report at https://pear.php.net/bugs/bug.php?id=21016&edit=1 ID: 21016 Comment by: der@internethering.de Reported By: der at internethering dot de Summary: Signing is broken for gnupg 2.0.28 Status: Open Type: Bug Package: Crypt_GPG Operating System: Gentoo Linux Package Version: 1.4.0 PHP Version: 5.6.16 Roadmap Versions: New Comment: yay, with the Patch everything is working. Previous Comments: ------------------------------------------------------------------------ [2016-01-25 07:21:44] alec Could you try the patch from https://github.com/pear/Crypt_GPG/pull/18 ? ------------------------------------------------------------------------ [2016-01-08 11:21:53] alec Did you try to run these in command line? php /usr/bin/crypt-gpg-pinentry /usr/bin/gpg-agent --options /dev/null --csh --keep-display --no-grab --ignore-cache-for-signing --pinentry-touch-file /dev/null --disable-scdaemon --no-use-standard-socket --pinentry-program /usr/bin/crypt-gpg-pinentry ------------------------------------------------------------------------ [2016-01-08 11:14:02] internethering yes, the log is complete. the request got no response and I have some open processes: v10003 23334 0.4 0.2 481520 42776 ? S 16:13 0:00 php-fpm: pool v10003 v10003 23398 0.0 0.0 14052 2112 ? Ss 16:13 0:00 /usr/bin/gpg-agent --options /dev/null --csh --keep-display --no-grab --ignore-cache-for-signing --pinentry-touch-file /dev/null --disable-scdaemon --no-use-standard-socket --pinentry-program /usr/bin/crypt-gpg-pinent v10003 23399 0.0 0.0 23268 3424 ? SL 16:13 0:00 /usr/bin/gpg --status-fd 3 --command-fd 4 --no-secmem-warning --no-tty --no-default-keyring --no-options --no-permission-warning --exit-on-status-write-error --trust-model always --armor --textmode --local-user 2C193C v10003 23400 0.0 0.1 255112 31620 ? S 16:13 0:00 php /usr/bin/crypt-gpg-pinentry I found nothing else in the logs. On commandline the command is running fine and the difference is: diff 2.0.28.asc 2.0.26.asc 2c2 < Hash: SHA256 --- > Hash: SHA1 ATM I've no idea. The running processes are open since one hour. ------------------------------------------------------------------------ [2016-01-08 07:16:25] alec Is the 2.0.28 log complete? It looks like it just stopped working at some point? Any errors in (Roundcube or http server) log? Did you try to sign a message using gnupg in command line, e.g.: /usr/bin/gpg --no-secmem-warning --no-default-keyring --no-options --no-permission-warning --exit-on-status-write-error --trust-model always --armor --textmode --local-user '2C193C1CFCD3B32F30E860531B108E8A2BDF7FD4' --homedir '/var/www/v10003/docroot/enigma/richard@richardhering.de' --clearsign ------------------------------------------------------------------------ [2016-01-07 18:34:55] internethering GNUPG 2.0.28 [08-Jan-2016 00:11:50 Europe/Berlin] Crypt_GPG DEBUG: /usr/bin/gpg --status-fd '3' --command-fd '4' --no-secmem-warning --no-tty --no-default-keyring --no-options --no-permission-warning --exit-on-status-write-error --trust-model always --armor --textmode --local-user '2C193C1CFCD3B32F30E860531B108E8A2BDF7FD4' --homedir '/var/www/v10003/docroot/enigma/richard@richardhering.de' --clearsign [08-Jan-2016 00:11:50 Europe/Berlin] Crypt_GPG DEBUG: BEGIN PROCESSING [08-Jan-2016 00:11:50 Europe/Berlin] Crypt_GPG DEBUG: selecting streams [08-Jan-2016 00:11:50 Europe/Berlin] Crypt_GPG DEBUG: => got 1 [08-Jan-2016 00:11:50 Europe/Berlin] Crypt_GPG DEBUG: GPG is ready for input [08-Jan-2016 00:11:50 Europe/Berlin] Crypt_GPG DEBUG: => about to write 4 bytes to GPG input [08-Jan-2016 00:11:50 Europe/Berlin] Crypt_GPG DEBUG: => wrote 4 bytes [08-Jan-2016 00:11:50 Europe/Berlin] Crypt_GPG DEBUG: => closing GPG input pipe [08-Jan-2016 00:11:50 Europe/Berlin] Crypt_GPG DEBUG: selecting streams [08-Jan-2016 00:11:50 Europe/Berlin] Crypt_GPG DEBUG: => got 1 [08-Jan-2016 00:11:50 Europe/Berlin] Crypt_GPG DEBUG: GPG status stream ready for reading [08-Jan-2016 00:11:50 Europe/Berlin] Crypt_GPG DEBUG: => about to read 8192 bytes from GPG status [08-Jan-2016 00:11:50 Europe/Berlin] Crypt_GPG DEBUG: => read 143 bytes [08-Jan-2016 00:11:50 Europe/Berlin] Crypt_GPG DEBUG: STATUS: USERID_HINT 1B108E8A2BDF7FD4 Richard Hering <richard@richardhering.de> [08-Jan-2016 00:11:50 Europe/Berlin] Crypt_GPG DEBUG: STATUS: NEED_PASSPHRASE 1B108E8A2BDF7FD4 1B108E8A2BDF7FD4 1 0 [08-Jan-2016 00:11:50 Europe/Berlin] Crypt_GPG DEBUG: => closing GPG input pipe [08-Jan-2016 00:11:50 Europe/Berlin] Crypt_GPG DEBUG: selecting streams [08-Jan-2016 00:11:50 Europe/Berlin] Crypt_GPG DEBUG: => got 1 [08-Jan-2016 00:11:50 Europe/Berlin] Crypt_GPG DEBUG: GPG is ready for command data [08-Jan-2016 00:11:50 Europe/Berlin] Crypt_GPG DEBUG: => about to write 16 bytes to GPG command [08-Jan-2016 00:11:50 Europe/Berlin] Crypt_GPG DEBUG: => wrote 16 [08-Jan-2016 00:11:50 Europe/Berlin] Crypt_GPG DEBUG: => closing GPG input pipe [08-Jan-2016 00:11:50 Europe/Berlin] Crypt_GPG DEBUG: selecting streams GNUPG 2.0.26 [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: /usr/bin/gpg --status-fd '3' --command-fd '4' --no-secmem-warning --no-tty --no-default-keyring --no-options --no-permission-warning --exit-on-status-write-error --trust-model always --armor --textmode --local-user '2C193C1CFCD3B32F30E860531B108E8A2BDF7FD4' --homedir '/var/www/v10003/docroot/enigma/richard@richardhering.de' --clearsign [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: BEGIN PROCESSING [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: selecting streams [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: => got 1 [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: GPG is ready for input [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: => about to write 4 bytes to GPG input [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: => wrote 4 bytes [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: => closing GPG input pipe [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: selecting streams [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: => got 1 [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: GPG status stream ready for reading [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: => about to read 8192 bytes from GPG status [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: => read 143 bytes [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: STATUS: USERID_HINT 1B108E8A2BDF7FD4 Richard Hering <richard@richardhering.de> [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: STATUS: NEED_PASSPHRASE 1B108E8A2BDF7FD4 1B108E8A2BDF7FD4 1 0 [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: => closing GPG input pipe [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: selecting streams [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: => got 1 [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: GPG is ready for command data [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: => about to write 16 bytes to GPG command [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: => wrote 16 [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: => closing GPG input pipe [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: selecting streams [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: => got 1 [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: GPG status stream ready for reading [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: => about to read 8192 bytes from GPG status [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: => read 51 bytes [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: STATUS: GOOD_PASSPHRASE [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: STATUS: BEGIN_SIGNING H2 [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: => closing GPG input pipe [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: selecting streams [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: => got 1 [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: GPG output stream ready for reading [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: => about to read 8192 bytes from GPG output [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: => read 52 bytes [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: => closing GPG input pipe [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: selecting streams [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: => got 2 [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: GPG output stream ready for reading [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: => about to read 8192 bytes from GPG output [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: => read 819 bytes [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: GPG status stream ready for reading [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: => about to read 8192 bytes from GPG status [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: => read 82 bytes [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: STATUS: SIG_CREATED C 1 2 01 1452208708 2C193C1CFCD3B32F30E860531B108E8A2BDF7FD4 [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: => closing GPG input pipe [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: selecting streams [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: => got 3 [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: GPG output stream ready for reading [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: => about to read 8192 bytes from GPG output [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: => read 0 bytes [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: GPG error stream ready for reading [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: => about to read 8192 bytes from GPG error [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: => read 0 bytes [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: GPG status stream ready for reading [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: => about to read 8192 bytes from GPG status [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: => read 0 bytes [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: => closing GPG input pipe [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: END PROCESSING [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: CLOSING GPG SUBPROCESS [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: STOPPING GPG-AGENT DAEMON [08-Jan-2016 00:18:28 Europe/Berlin] Crypt_GPG DEBUG: GPG-AGENT DAEMON STOPPED ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://pear.php.net/bugs/bug.php?id=21016 -- Edit this bug report at https://pear.php.net/bugs/bug.php?id=21016&edit=1

« previous php.pear.bugs (#11307) next »