Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.6.10

Bug #21220 Crypt_GPG_KeyNotFoundException
Submitted: 2017-06-21 08:32 UTC
From: krisidmisso Assigned:
Status: Bogus Package: Crypt_GPG (version 1.6.0)
PHP Version: Irrelevant OS: Linux Gentoo
Roadmaps: (Not assigned)    
Subscription  


 [2017-06-21 08:32 UTC] krisidmisso (Krisid Misso)
Description: ------------ Crypt_GPG_KeyNotFoundException Cannot decrypt data. No suitable private key is in the keyring. Import a suitable private key before trying to decrypt this data. in ProcessHandler.php (line 724) I use php v7.0.1 and the cli is php7 (php cli is v4.4.9(BAD SERVER I KNOW!)) Test script: --------------- $this->gpg_init = new Crypt_GPG(array('homedir' =>'~/.gnupg', "debug"=>true)); } public function index() { //message $data = 'Hello Krisid'; //initialisation $gpg = $this->gpg_init; //select encryption key $gpg->addEncryptKey('krisid@manoolia.com'); //encrypt data $encrypted = $gpg->encrypt($data); //show it echo "Encrypted message: \n".'<b><pre>'.$encrypted.'</pre></b>'; echo '<br><br><br>'; //select decrypt key $gpg->addDecryptKey('krisid@email.com','passphrase'); //decrypt msg // even tried adding this line below: //$gpg->addPassphrase('krisid@email.com','passphrase'); $decrypted = $gpg->decrypt($encrypted); //show it echo "<br>Decrypted message: <br> --------------------- <br><b>". $decrypted."</b>"; Expected result: ---------------- Displays the encrypted and decrypted message Actual result: -------------- displays only encrypted message, the decrypted one is NOT shown and the error above is displayed

Comments

 [2017-06-21 08:39 UTC] alec (Aleksander Machniak)
Could you provide the debug output?
 [2017-06-22 10:27 UTC] krisidmisso (Krisid Misso)
Maybe its because gnuPG v2 saves the public and private in the same file? v1.x saves both as different files
 [2017-06-22 10:28 UTC] krisidmisso (Krisid Misso)
@alec Crypt_GPG DEBUG: OPENING GPG SUBPROCESS WITH THE FOLLOWING COMMAND: Crypt_GPG DEBUG: /usr/bin/gpg --status-fd '3' --command-fd '4' --no-secmem-warning --no-tty --no-default-keyring --no-options --always-trust --ignore-time-conflict --ignore-valid-from --homedir '~/.gnupg' --version Crypt_GPG DEBUG: BEGIN PROCESSING Crypt_GPG DEBUG: selecting streams Crypt_GPG DEBUG: => got 1 Crypt_GPG DEBUG: GPG output stream ready for reading Crypt_GPG DEBUG: => about to read 65536 bytes from GPG output Crypt_GPG DEBUG: => read 560 bytes Crypt_GPG DEBUG: selecting streams Crypt_GPG DEBUG: => got 3 Crypt_GPG DEBUG: GPG output stream ready for reading Crypt_GPG DEBUG: => about to read 65536 bytes from GPG output Crypt_GPG DEBUG: => read 0 bytes Crypt_GPG DEBUG: GPG error stream ready for reading Crypt_GPG DEBUG: => about to read 65536 bytes from GPG error Crypt_GPG DEBUG: => read 0 bytes Crypt_GPG DEBUG: GPG status stream ready for reading Crypt_GPG DEBUG: => about to read 65536 bytes from GPG status Crypt_GPG DEBUG: => read 0 bytes Crypt_GPG DEBUG: END PROCESSING Crypt_GPG DEBUG: CLOSING GPG SUBPROCESS Crypt_GPG DEBUG: USING GPG 2.0.26 with PHP 7.0.6 Crypt_GPG DEBUG: OPENING GPG-AGENT SUBPROCESS WITH THE FOLLOWING COMMAND: Crypt_GPG DEBUG: /usr/bin/gpg-agent --daemon --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 '/kunden/U563883/kunden/laravel-project/vendor/pear/crypt_gpg/Crypt/GPG/../../scripts/crypt-gpg-pinentry' --homedir '~/.gnupg' Crypt_GPG DEBUG: GPG-AGENT-INFO: /tmp/gpg-3Kby79/S.gpg-agent:24461:1 Crypt_GPG DEBUG: CLOSING GPG-AGENT LAUNCH PROCESS Crypt_GPG DEBUG: GPG-AGENT LAUNCH PROCESS CLOSED Crypt_GPG DEBUG: OPENING GPG SUBPROCESS WITH THE FOLLOWING COMMAND: 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 --ignore-time-conflict --ignore-valid-from --with-colons --with-fingerprint --with-fingerprint --fixed-list-mode --homedir '~/.gnupg' --utf8-strings --list-secret-keys 'my@mail.com' Crypt_GPG DEBUG: BEGIN PROCESSING Crypt_GPG DEBUG: selecting streams Crypt_GPG DEBUG: => got 1 Crypt_GPG DEBUG: GPG output stream ready for reading Crypt_GPG DEBUG: => about to read 65536 bytes from GPG output Crypt_GPG DEBUG: => read 321 bytes Crypt_GPG DEBUG: selecting streams Crypt_GPG DEBUG: => got 3 Crypt_GPG DEBUG: GPG output stream ready for reading Crypt_GPG DEBUG: => about to read 65536 bytes from GPG output Crypt_GPG DEBUG: => read 0 bytes Crypt_GPG DEBUG: GPG error stream ready for reading Crypt_GPG DEBUG: => about to read 65536 bytes from GPG error Crypt_GPG DEBUG: => read 0 bytes Crypt_GPG DEBUG: GPG status stream ready for reading Crypt_GPG DEBUG: => about to read 65536 bytes from GPG status Crypt_GPG DEBUG: => read 0 bytes Crypt_GPG DEBUG: END PROCESSING Crypt_GPG DEBUG: CLOSING GPG SUBPROCESS Crypt_GPG DEBUG: STOPPING GPG-AGENT DAEMON Crypt_GPG DEBUG: GPG-AGENT DAEMON STOPPED Crypt_GPG DEBUG: USING GPG 2.0.26 with PHP 7.0.6 Crypt_GPG DEBUG: OPENING GPG-AGENT SUBPROCESS WITH THE FOLLOWING COMMAND: Crypt_GPG DEBUG: /usr/bin/gpg-agent --daemon --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 '/kunden/U563883/kunden/laravel-project/vendor/pear/crypt_gpg/Crypt/GPG/../../scripts/crypt-gpg-pinentry' --homedir '~/.gnupg' Crypt_GPG DEBUG: GPG-AGENT-INFO: /tmp/gpg-bQqbxc/S.gpg-agent:24464:1 Crypt_GPG DEBUG: CLOSING GPG-AGENT LAUNCH PROCESS Crypt_GPG DEBUG: GPG-AGENT LAUNCH PROCESS CLOSED Crypt_GPG DEBUG: OPENING GPG SUBPROCESS WITH THE FOLLOWING COMMAND: 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 --ignore-time-conflict --ignore-valid-from --with-colons --with-fingerprint --with-fingerprint --fixed-list-mode --homedir '~/.gnupg' --utf8-strings --list-public-keys 'my@mail.com' Crypt_GPG DEBUG: BEGIN PROCESSING Crypt_GPG DEBUG: selecting streams Crypt_GPG DEBUG: => got 1 Crypt_GPG DEBUG: GPG output stream ready for reading Crypt_GPG DEBUG: => about to read 65536 bytes from GPG output Crypt_GPG DEBUG: => read 541 bytes Crypt_GPG DEBUG: selecting streams Crypt_GPG DEBUG: => got 3 Crypt_GPG DEBUG: GPG output stream ready for reading Crypt_GPG DEBUG: => about to read 65536 bytes from GPG output Crypt_GPG DEBUG: => read 0 bytes Crypt_GPG DEBUG: GPG error stream ready for reading Crypt_GPG DEBUG: => about to read 65536 bytes from GPG error Crypt_GPG DEBUG: => read 0 bytes Crypt_GPG DEBUG: GPG status stream ready for reading Crypt_GPG DEBUG: => about to read 65536 bytes from GPG status Crypt_GPG DEBUG: => read 0 bytes Crypt_GPG DEBUG: END PROCESSING Crypt_GPG DEBUG: CLOSING GPG SUBPROCESS Crypt_GPG DEBUG: STOPPING GPG-AGENT DAEMON Crypt_GPG DEBUG: GPG-AGENT DAEMON STOPPED Crypt_GPG DEBUG: USING GPG 2.0.26 with PHP 7.0.6 Crypt_GPG DEBUG: OPENING GPG-AGENT SUBPROCESS WITH THE FOLLOWING COMMAND: Crypt_GPG DEBUG: /usr/bin/gpg-agent --daemon --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 '/kunden/U563883/kunden/laravel-project/vendor/pear/crypt_gpg/Crypt/GPG/../../scripts/crypt-gpg-pinentry' --homedir '~/.gnupg' Crypt_GPG DEBUG: GPG-AGENT-INFO: /tmp/gpg-8YKlWe/S.gpg-agent:24467:1 Crypt_GPG DEBUG: CLOSING GPG-AGENT LAUNCH PROCESS Crypt_GPG DEBUG: GPG-AGENT LAUNCH PROCESS CLOSED Crypt_GPG DEBUG: OPENING GPG SUBPROCESS WITH THE FOLLOWING COMMAND: 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 --ignore-time-conflict --ignore-valid-from --armor --recipient '51892BACB455CD701393324727D951E5EADB65DC' --homedir '~/.gnupg' --encrypt Crypt_GPG DEBUG: BEGIN PROCESSING Crypt_GPG DEBUG: selecting streams Crypt_GPG DEBUG: => got 1 Crypt_GPG DEBUG: GPG is ready for input Crypt_GPG DEBUG: => about to write 12 bytes to GPG input Crypt_GPG DEBUG: => wrote 12 bytes Crypt_GPG DEBUG: selecting streams Crypt_GPG DEBUG: => got 1 Crypt_GPG DEBUG: GPG is ready for input Crypt_GPG DEBUG: => about to write 0 bytes to GPG input Crypt_GPG DEBUG: => broken pipe on GPG input Crypt_GPG DEBUG: => closing pipe GPG input Crypt_GPG DEBUG: selecting streams Crypt_GPG DEBUG: => got 1 Crypt_GPG DEBUG: GPG status stream ready for reading Crypt_GPG DEBUG: => about to read 65536 bytes from GPG status Crypt_GPG DEBUG: => read 30 bytes Crypt_GPG DEBUG: STATUS: BEGIN_ENCRYPTION 0 2 Crypt_GPG DEBUG: selecting streams Crypt_GPG DEBUG: => got 1 Crypt_GPG DEBUG: GPG output stream ready for reading Crypt_GPG DEBUG: => about to read 65536 bytes from GPG output Crypt_GPG DEBUG: => read 498 bytes Crypt_GPG DEBUG: selecting streams Crypt_GPG DEBUG: => got 1 Crypt_GPG DEBUG: GPG status stream ready for reading Crypt_GPG DEBUG: => about to read 65536 bytes from GPG status Crypt_GPG DEBUG: => read 24 bytes Crypt_GPG DEBUG: STATUS: END_ENCRYPTION Crypt_GPG DEBUG: selecting streams Crypt_GPG DEBUG: => got 3 Crypt_GPG DEBUG: GPG output stream ready for reading Crypt_GPG DEBUG: => about to read 65536 bytes from GPG output Crypt_GPG DEBUG: => read 0 bytes Crypt_GPG DEBUG: GPG error stream ready for reading Crypt_GPG DEBUG: => about to read 65536 bytes from GPG error Crypt_GPG DEBUG: => read 0 bytes Crypt_GPG DEBUG: GPG status stream ready for reading Crypt_GPG DEBUG: => about to read 65536 bytes from GPG status Crypt_GPG DEBUG: => read 0 bytes Crypt_GPG DEBUG: END PROCESSING Crypt_GPG DEBUG: CLOSING GPG SUBPROCESS Crypt_GPG DEBUG: STOPPING GPG-AGENT DAEMON Crypt_GPG DEBUG: GPG-AGENT DAEMON STOPPED Encrypted message: -----BEGIN PGP MESSAGE----- Version: GnuPG v2 hQEMAyfZUeXq22XcAQgApZX3zXXArY0tom1lKOCByBVX19hrR1w4icswHUoKg+8C eEuaidRF+wPYwf7DotBiBd5Ade8Y9qHewPwueaj51uwfcs5H3b0teRtm2kQIP9lM ikFChMqz1aqOHd2bMnkL7YV0V3igCcJI0FOvEFQxnuGbd9nZOzqYlhIq3GLilmHt z0SSzGwmfSZIoXwLxgsQecV+OOcfwlinztl9f/BLYlEDi/WGJVph9LEytyxgz2kk o2Q9OPC2d1DG9ig31aYdgUxDi05bNYg5EdVKwb+8FetdSEm/1YLLYLwXWFip0Vpv MqhQA3m+dh8kxEI+ui9Ul6bzxPE3c5P4xiykps5AIMkiF60hbZYWBsg73UFhr4wZ LHejagXxc7O1z0jGLOVEVAqq0A== =RSZV -----END PGP MESSAGE----- Crypt_GPG DEBUG: USING GPG 2.0.26 with PHP 7.0.6 Crypt_GPG DEBUG: OPENING GPG-AGENT SUBPROCESS WITH THE FOLLOWING COMMAND: Crypt_GPG DEBUG: /usr/bin/gpg-agent --daemon --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 '/kunden/U563883/kunden/laravel-project/vendor/pear/crypt_gpg/Crypt/GPG/../../scripts/crypt-gpg-pinentry' --homedir '~/.gnupg' Crypt_GPG DEBUG: GPG-AGENT-INFO: /tmp/gpg-aePfqh/S.gpg-agent:24470:1 Crypt_GPG DEBUG: CLOSING GPG-AGENT LAUNCH PROCESS Crypt_GPG DEBUG: GPG-AGENT LAUNCH PROCESS CLOSED Crypt_GPG DEBUG: OPENING GPG SUBPROCESS WITH THE FOLLOWING COMMAND: 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 --ignore-time-conflict --ignore-valid-from --with-colons --with-fingerprint --with-fingerprint --fixed-list-mode --homedir '~/.gnupg' --utf8-strings --list-secret-keys 'my@mail.com' Crypt_GPG DEBUG: BEGIN PROCESSING Crypt_GPG DEBUG: selecting streams Crypt_GPG DEBUG: => got 1 Crypt_GPG DEBUG: GPG output stream ready for reading Crypt_GPG DEBUG: => about to read 65536 bytes from GPG output Crypt_GPG DEBUG: => read 321 bytes Crypt_GPG DEBUG: selecting streams Crypt_GPG DEBUG: => got 3 Crypt_GPG DEBUG: GPG output stream ready for reading Crypt_GPG DEBUG: => about to read 65536 bytes from GPG output Crypt_GPG DEBUG: => read 0 bytes Crypt_GPG DEBUG: GPG error stream ready for reading Crypt_GPG DEBUG: => about to read 65536 bytes from GPG error Crypt_GPG DEBUG: => read 0 bytes Crypt_GPG DEBUG: GPG status stream ready for reading Crypt_GPG DEBUG: => about to read 65536 bytes from GPG status Crypt_GPG DEBUG: => read 0 bytes Crypt_GPG DEBUG: END PROCESSING Crypt_GPG DEBUG: CLOSING GPG SUBPROCESS Crypt_GPG DEBUG: STOPPING GPG-AGENT DAEMON Crypt_GPG DEBUG: GPG-AGENT DAEMON STOPPED Crypt_GPG DEBUG: USING GPG 2.0.26 with PHP 7.0.6 Crypt_GPG DEBUG: OPENING GPG-AGENT SUBPROCESS WITH THE FOLLOWING COMMAND: Crypt_GPG DEBUG: /usr/bin/gpg-agent --daemon --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 '/kunden/U563883/kunden/laravel-project/vendor/pear/crypt_gpg/Crypt/GPG/../../scripts/crypt-gpg-pinentry' --homedir '~/.gnupg' Crypt_GPG DEBUG: GPG-AGENT-INFO: /tmp/gpg-pTUv5j/S.gpg-agent:24473:1 Crypt_GPG DEBUG: CLOSING GPG-AGENT LAUNCH PROCESS Crypt_GPG DEBUG: GPG-AGENT LAUNCH PROCESS CLOSED Crypt_GPG DEBUG: OPENING GPG SUBPROCESS WITH THE FOLLOWING COMMAND: 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 --ignore-time-conflict --ignore-valid-from --with-colons --with-fingerprint --with-fingerprint --fixed-list-mode --homedir '~/.gnupg' --utf8-strings --list-public-keys 'my@mail.com' Crypt_GPG DEBUG: BEGIN PROCESSING Crypt_GPG DEBUG: selecting streams Crypt_GPG DEBUG: => got 1 Crypt_GPG DEBUG: GPG output stream ready for reading Crypt_GPG DEBUG: => about to read 65536 bytes from GPG output Crypt_GPG DEBUG: => read 541 bytes Crypt_GPG DEBUG: selecting streams Crypt_GPG DEBUG: => got 3 Crypt_GPG DEBUG: GPG output stream ready for reading Crypt_GPG DEBUG: => about to read 65536 bytes from GPG output Crypt_GPG DEBUG: => read 0 bytes Crypt_GPG DEBUG: GPG error stream ready for reading Crypt_GPG DEBUG: => about to read 65536 bytes from GPG error Crypt_GPG DEBUG: => read 0 bytes Crypt_GPG DEBUG: GPG status stream ready for reading Crypt_GPG DEBUG: => about to read 65536 bytes from GPG status Crypt_GPG DEBUG: => read 0 bytes Crypt_GPG DEBUG: END PROCESSING Crypt_GPG DEBUG: CLOSING GPG SUBPROCESS Crypt_GPG DEBUG: STOPPING GPG-AGENT DAEMON Crypt_GPG DEBUG: GPG-AGENT DAEMON STOPPED Crypt_GPG DEBUG: USING GPG 2.0.26 with PHP 7.0.6 Crypt_GPG DEBUG: OPENING GPG-AGENT SUBPROCESS WITH THE FOLLOWING COMMAND: Crypt_GPG DEBUG: /usr/bin/gpg-agent --daemon --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 '/kunden/U563883/kunden/laravel-project/vendor/pear/crypt_gpg/Crypt/GPG/../../scripts/crypt-gpg-pinentry' --homedir '~/.gnupg' Crypt_GPG DEBUG: GPG-AGENT-INFO: /tmp/gpg-HAlerm/S.gpg-agent:24476:1 Crypt_GPG DEBUG: CLOSING GPG-AGENT LAUNCH PROCESS Crypt_GPG DEBUG: GPG-AGENT LAUNCH PROCESS CLOSED Crypt_GPG DEBUG: OPENING GPG SUBPROCESS WITH THE FOLLOWING COMMAND: 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 --ignore-time-conflict --ignore-valid-from --homedir '~/.gnupg' --decrypt Crypt_GPG DEBUG: BEGIN PROCESSING Crypt_GPG DEBUG: selecting streams Crypt_GPG DEBUG: => got 1 Crypt_GPG DEBUG: GPG is ready for input Crypt_GPG DEBUG: => about to write 498 bytes to GPG input Crypt_GPG DEBUG: => wrote 498 bytes Crypt_GPG DEBUG: selecting streams Crypt_GPG DEBUG: => got 1 Crypt_GPG DEBUG: GPG is ready for input Crypt_GPG DEBUG: => about to write 0 bytes to GPG input Crypt_GPG DEBUG: => broken pipe on GPG input Crypt_GPG DEBUG: => closing pipe GPG input Crypt_GPG DEBUG: selecting streams Crypt_GPG DEBUG: => got 1 Crypt_GPG DEBUG: GPG status stream ready for reading Crypt_GPG DEBUG: => about to read 65536 bytes from GPG status Crypt_GPG DEBUG: => read 37 bytes Crypt_GPG DEBUG: STATUS: ENC_TO 27D951E5EADB65DC 1 0 Crypt_GPG DEBUG: selecting streams Crypt_GPG DEBUG: => got 1 Crypt_GPG DEBUG: GPG error stream ready for reading Crypt_GPG DEBUG: => about to read 65536 bytes from GPG error Crypt_GPG DEBUG: => read 98 bytes Crypt_GPG DEBUG: ERROR: gpg: encrypted with 2048-bit RSA key, ID EADB65DC, created 2017-04-25 Crypt_GPG DEBUG: ERROR: "my@mail.com" Crypt_GPG DEBUG: selecting streams Crypt_GPG DEBUG: => got 2 Crypt_GPG DEBUG: GPG error stream ready for reading Crypt_GPG DEBUG: => about to read 65536 bytes from GPG error Crypt_GPG DEBUG: => read 38 bytes Crypt_GPG DEBUG: ERROR: gpg: decryption failed: No secret key Crypt_GPG DEBUG: GPG status stream ready for reading Crypt_GPG DEBUG: => about to read 65536 bytes from GPG status Crypt_GPG DEBUG: => read 113 bytes Crypt_GPG DEBUG: STATUS: NO_SECKEY 27D951E5EADB65DC Crypt_GPG DEBUG: STATUS: BEGIN_DECRYPTION Crypt_GPG DEBUG: STATUS: DECRYPTION_FAILED Crypt_GPG DEBUG: STATUS: END_DECRYPTION Crypt_GPG DEBUG: selecting streams Crypt_GPG DEBUG: => got 3 Crypt_GPG DEBUG: GPG output stream ready for reading Crypt_GPG DEBUG: => about to read 65536 bytes from GPG output Crypt_GPG DEBUG: => read 0 bytes Crypt_GPG DEBUG: GPG error stream ready for reading Crypt_GPG DEBUG: => about to read 65536 bytes from GPG error Crypt_GPG DEBUG: => read 0 bytes Crypt_GPG DEBUG: GPG status stream ready for reading Crypt_GPG DEBUG: => about to read 65536 bytes from GPG status Crypt_GPG DEBUG: => read 0 bytes Crypt_GPG DEBUG: END PROCESSING Crypt_GPG DEBUG: CLOSING GPG SUBPROCESS Crypt_GPG DEBUG: => subprocess returned an unexpected exit code: 2 Whoops, looks like something went wrong. (1/1) Crypt_GPG_KeyNotFoundException Cannot decrypt data. No suitable private key is in the keyring. Import a suitable private key before trying to decrypt this data. in ProcessHandler.php (line 724) at Crypt_GPG_ProcessHandler->throwException(2) in Engine.php (line 1789) at Crypt_GPG_Engine->_closeSubprocess() in Engine.php (line 837) at Crypt_GPG_Engine->run() in GPG.php (line 1748) at Crypt_GPG->_decrypt('-----BEGIN PGP MESSAGE-----Version: GnuPG v2hQEMAyfZUeXq22XcAQgApZX3zXXArY0tom1lKOCByBVX19hrR1w4icswHUoKg+8CeEuaidRF+wPYwf7DotBiBd5Ade8Y9qHewPwueaj51uwfcs5H3b0teRtm2kQIP9lMikFChMqz1aqOHd2bMnkL7YV0V3igCcJI0FOvEFQxnuGbd9nZOzqYlhIq3GLilmHtz0SSzGwmfSZIoXwLxgsQecV+OOcfwlinztl9f/BLYlEDi/WGJVph9LEytyxgz2kko2Q9OPC2d1DG9ig31aYdgUxDi05bNYg5EdVKwb+8FetdSEm/1YLLYLwXWFip0VpvMqhQA3m+dh8kxEI+ui9Ul6bzxPE3c5P4xiykps5AIMkiF60hbZYWBsg73UFhr4wZLHejagXxc7O1z0jGLOVEVAqq0A===RSZV-----END PGP MESSAGE-----', false, null) in GPG.php (line 833) at Crypt_GPG->decrypt('-----BEGIN PGP MESSAGE-----Version: GnuPG v2hQEMAyfZUeXq22XcAQgApZX3zXXArY0tom1lKOCByBVX19hrR1w4icswHUoKg+8CeEuaidRF+wPYwf7DotBiBd5Ade8Y9qHewPwueaj51uwfcs5H3b0teRtm2kQIP9lMikFChMqz1aqOHd2bMnkL7YV0V3igCcJI0FOvEFQxnuGbd9nZOzqYlhIq3GLilmHtz0SSzGwmfSZIoXwLxgsQecV+OOcfwlinztl9f/BLYlEDi/WGJVph9LEytyxgz2kko2Q9OPC2d1DG9ig31aYdgUxDi05bNYg5EdVKwb+8FetdSEm/1YLLYLwXWFip0VpvMqhQA3m+dh8kxEI+ui9Ul6bzxPE3c5P4xiykps5AIMkiF60hbZYWBsg73UFhr4wZLHejagXxc7O1z0jGLOVEVAqq0A===RSZV-----END PGP MESSAGE-----') in EncryptController.php (line 48) at EncryptController->index() at call_user_func_array(array(object(EncryptController), 'index'), array()) in Controller.php (line 55) at Controller->callAction('index', array()) in ControllerDispatcher.php (line 44) at ControllerDispatcher->dispatch(object(Route), object(EncryptController), 'index') in Route.php (line 203) at Route->runController() in Route.php (line 160) at Route->run() in Router.php (line 574) at Router->Illuminate\Routing\{closure}(object(Request)) in Pipeline.php (line 30) at Pipeline->Illuminate\Routing\{closure}(object(Request)) in SubstituteBindings.php (line 41) at SubstituteBindings->handle(object(Request), object(Closure)) in Pipeline.php (line 148) at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php (line 53) at Pipeline->Illuminate\Routing\{closure}(object(Request)) in VerifyCsrfToken.php (line 65) at VerifyCsrfToken->handle(object(Request), object(Closure)) in Pipeline.php (line 148) at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php (line 53) at Pipeline->Illuminate\Routing\{closure}(object(Request)) in ShareErrorsFromSession.php (line 49) at ShareErrorsFromSession->handle(object(Request), object(Closure)) in Pipeline.php (line 148) at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php (line 53) at Pipeline->Illuminate\Routing\{closure}(object(Request)) in StartSession.php (line 64) at StartSession->handle(object(Request), object(Closure)) in Pipeline.php (line 148) at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php (line 53) at Pipeline->Illuminate\Routing\{closure}(object(Request)) in AddQueuedCookiesToResponse.php (line 37) at AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) in Pipeline.php (line 148) at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php (line 53) at Pipeline->Illuminate\Routing\{closure}(object(Request)) in EncryptCookies.php (line 59) at EncryptCookies->handle(object(Request), object(Closure)) in Pipeline.php (line 148) at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php (line 53) at Pipeline->Illuminate\Routing\{closure}(object(Request)) in Pipeline.php (line 102) at Pipeline->then(object(Closure)) in Router.php (line 576) at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php (line 535) at Router->dispatchToRoute(object(Request)) in Router.php (line 513) at Router->dispatch(object(Request)) in Kernel.php (line 174) at Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) in Pipeline.php (line 30) at Pipeline->Illuminate\Routing\{closure}(object(Request)) in CheckForMaintenanceMode.php (line 46) at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in Pipeline.php (line 148) at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php (line 53) at Pipeline->Illuminate\Routing\{closure}(object(Request)) in Pipeline.php (line 102) at Pipeline->then(object(Closure)) in Kernel.php (line 149) at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php (line 116) at Kernel->handle(object(Request)) in index.php (line 55) Crypt_GPG DEBUG: STOPPING GPG-AGENT DAEMON Crypt_GPG DEBUG: GPG-AGENT DAEMON STOPPED
 [2017-06-22 10:31 UTC] krisidmisso (Krisid Misso)
The same project files work on an Ubuntu 16.4 with gnupg v1
 [2017-06-22 10:45 UTC] alec (Aleksander Machniak)
GnuPG 2.0 is not very nice version to work with, 1.x and 2.1 are better. Anyway: ERROR: gpg: encrypted with 2048-bit RSA key, ID EADB65DC, created 2017-04-25 ERROR: "my@mail.com" ERROR: gpg: decryption failed: No secret key STATUS: NO_SECKEY 27D951E5EADB65DC It does not really state where's the problem. I guess it might be something wrong with pinentry. Did you try to run /kunden/U563883/kunden/laravel-project/vendor/pear/crypt_gpg/Crypt/GPG/../../scripts/crypt-gpg-pinentry by hand to see if it prints any errors?
 [2017-06-22 12:41 UTC] krisidmisso (Krisid Misso)
No errors shown. just a message: "OK Crypt_GPG pinentry ready and waiting" also i noticed at the top there is a line "#! /usr/bin/env php". the server i have has the php cli v4.4 so i use php7 command to work with php v7.0. is this a issue? I dont have direct rights permissions on the server so if anything should be done at the server please help me understand so i can forward it to the server admins. otherwise please tell me what can i change in the library.
 [2017-06-22 12:51 UTC] alec (Aleksander Machniak)
It might be an issue. Yes.
 [2017-08-23 18:12 UTC] alec (Aleksander Machniak)
-Status: Open +Status: Bogus
Thank you for taking the time to report a problem with PHP. Unfortunately you are not using a current version of PHP -- the problem might already be fixed. Please download a new PHP version from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PEAR. We do not support PHP4 and I don't see how we could workaround that issue on our side. Anyway, there's not many user with such environment I suppose.