[horde] Encrypted notes cannot be decrypted

Michael J Rubinsky mrubinsk at horde.org
Sat Jun 12 16:56:56 UTC 2021


Quoting Andreas Mauser <andreas at mauser.info>:

> ----- Nachricht von Michael J Rubinsky <mrubinsk at horde.org> ---------
>      Datum: Mon, 31 May 2021 16:06:46 +0000
>        Von: Michael J Rubinsky <mrubinsk at horde.org>
> Antwort an: mrubinsk at horde.org
>    Betreff: Re: [horde] Encrypted notes cannot be decrypted
>         An: horde at lists.horde.org, Michael J Rubinsky <mrubinsk at horde.org>
>
>
>> Quoting Andreas Mauser <andreas at mauser.info>:
>>
>>>> I am also not able to encrypt new notes, where this appears in  
>>>> the horde.log:
>>>>
>>>> A fatal error has occurred:
>>>> The message could not be encrypted with PGP.
>>>>
>>>> Am I missing some pear modules?
>>>
>>> After setting Logging to Debug the horde.log shows
>>>
>>> 2021-05-26T21:33:20+02:00 DEBUG: HORDE Load config file (conf.php;  
>>> app: horde) [pid 71244 on line 109 of  
>>> "/usr/share/php/Horde/Registry/Loadconfig.php"]
>>> 2021-05-26T21:33:20+02:00 DEBUG: HORDE PHP ERROR: implode():  
>>> Passing glue string after array is deprecated. Swap the parameters  
>>> [pid 71244 on line 205 of "/usr/share/php/Horde/Memcache.php"]
>>> 2021-05-26T21:33:20+02:00 DEBUG: HORDE  1.  
>>> Horde_Registry::appInit() /var/www/html/post/mnemo/view.php:14
>>> 2. Horde_Registry->__construct() /usr/share/php/Horde/Registry.php:287
>>> 3. Horde_Session->setup() /usr/share/php/Horde/Registry.php:535
>>> 4. Horde_Injector->createInstance() /usr/share/php/Horde/Session.php:185
>>> 5. Horde_Injector_Binder_Factory->create()  
>>> /usr/share/php/Horde/Injector.php:238
>>> 6. Horde_Core_Factory_SessionHandler->create()  
>>> /usr/share/php/Horde/Injector/Binder/Factory.php:119
>>> 7. Horde_Injector->getInstance()  
>>> /usr/share/php/Horde/Core/Factory/SessionHandler.php:53
>>> 8. Horde_Injector->getInstance() /usr/share/php/Horde/Injector.php:267
>>> 9. Horde_Injector->createInstance() /usr/share/php/Horde/Injector.php:272
>>> 10. Horde_Injector_Binder_Factory->create()  
>>> /usr/share/php/Horde/Injector.php:238
>>> 11. Horde_Core_Factory_HashTable->create()  
>>> /usr/share/php/Horde/Injector/Binder/Factory.php:119
>>> 12. Horde_Memcache->__construct()  
>>> /usr/share/php/Horde/Core/Factory/HashTable.php:53
>>> 13. Horde_Memcache->_init() /usr/share/php/Horde/Memcache.php:138
>>> 14. implode() /usr/share/php/Horde/Memcache.php:205
>>> 15. Horde_ErrorHandler::errorHandler()
>>>
>>> Maybe someone sees directly whats going on here?
>>
>> This is from the no longer supported ordering of parameters to the  
>> implode command in PHP 8.0.  Fixed in Horde_Memcache 2.1.2
>>
>>
>
> Thank you Mike,
> I updated this new version, horde-clear-cache and full server  
> reboot, still I am not able to decrypt the notes.


This code is called during encryption, not decryption. Going to assume  
neither work for you. Other than verifying that the path to your pgp  
binary is correct in Horde's config, I'd start looking in  
Horde/Crypt/Pgp the command that is sent to the binary is built in  
Backend/Binary.php in the ecryptMessage method. Perhaps something in  
there points you in the right direction.


> I get:
>
> Die Nachricht konnte nicht mit PGP verschlüsselt werden.
> in /usr/share/php/Horde/Crypt/Pgp.php:595
>
> 1. Mnemo_Driver->add() /var/www/html/post/mnemo/memo.php:220
> 2. Mnemo_Driver->_encrypt() /var/www/html/post/mnemo/lib/Driver.php:126
> 3. Horde_Crypt_Pgp->encrypt() /var/www/html/post/mnemo/lib/Driver.php:353
>
> Any idea where to look?
> Best regards,
> Andreas Mauser
>
>
> -- 
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org



-- 
mike
The Horde Project
http://www.horde.org
https://www.facebook.com/hordeproject
https://www.twitter.com/hordeproject
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-keys
Size: 9272 bytes
Desc: PGP Public Key
URL: <https://lists.horde.org/archives/horde/attachments/20210612/419bd1d5/attachment-0001.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 851 bytes
Desc: PGP Digital Signature
URL: <https://lists.horde.org/archives/horde/attachments/20210612/419bd1d5/attachment-0001.sig>


More information about the horde mailing list