Hello,
I am getting following error in browser console when sending an
encrypted message.
==============================
ReferenceError: PublicKey is not defined
rcube_webmail/this.mailvelope_search_pubkeys()
app.min.js:161
rcube_webmail.prototype.enigma_find_publickey()
enigma.js:547
rcube_webmail.prototype.enigma_key_not_found/<.click()
enigma.js:537
._createButtons/</a.click()
jquery-ui-1.10.4.custom.min.js:37
n.event.dispatch()
jquery.min.js:35
n.event.add/r.handle()
jquery.min.js:35
==================================
enigma debug log
==================
[22-Jul-2016 11:56:01 +0530]: <1sd24gpn> GPG: USING GPG
2.0.22 with PHP 5.4.16
[22-Jul-2016 11:56:01 +0530]: <1sd24gpn> GPG: OPENING
GPG-AGENT SUBPROCESS WITH THE FOLLOWING COMMAND:
[22-Jul-2016 11:56:01 +0530]: <1sd24gpn> GPG:
/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
'/var/www/html/plugins/enigma/lib/Crypt_GPG-1.4.2/Crypt/GPG/../../scripts/crypt-gpg-pinentry'
--homedir '/var/www/enigma/home/soumitri'
[22-Jul-2016 11:56:01 +0530]: <1sd24gpn> GPG: CLOSING
GPG-AGENT LAUNCH PROCESS
[22-Jul-2016 11:56:01 +0530]: <1sd24gpn> GPG: GPG-AGENT
LAUNCH PROCESS CLOSED
[22-Jul-2016 11:56:01 +0530]: <1sd24gpn> GPG: OPENING GPG
SUBPROCESS WITH THE FOLLOWING COMMAND:
[22-Jul-2016 11:56:01 +0530]: <1sd24gpn> GPG: /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 --with-colons
--with-fingerprint --with-fingerprint --fixed-list-mode --homedir
'/var/www/enigma/home/soumitri' --list-public-keys
'soumitri@iitk.ac.in'
[22-Jul-2016 11:56:01 +0530]: <1sd24gpn> GPG: BEGIN
PROCESSING
[22-Jul-2016 11:56:01 +0530]: <1sd24gpn> GPG: selecting
streams
[22-Jul-2016 11:56:01 +0530]: <1sd24gpn> GPG: => got 3
[22-Jul-2016 11:56:01 +0530]: <1sd24gpn> GPG: GPG output
stream ready for reading
[22-Jul-2016 11:56:01 +0530]: <1sd24gpn> GPG: => about to
read 65536 bytes from GPG output
[22-Jul-2016 11:56:01 +0530]: <1sd24gpn> GPG: => read 658
bytes
[22-Jul-2016 11:56:01 +0530]: <1sd24gpn> GPG: GPG error
stream ready for reading
[22-Jul-2016 11:56:01 +0530]: <1sd24gpn> GPG: => about to
read 65536 bytes from GPG error
[22-Jul-2016 11:56:01 +0530]: <1sd24gpn> GPG: => read 0
bytes
[22-Jul-2016 11:56:01 +0530]: <1sd24gpn> GPG: GPG status
stream ready for reading
[22-Jul-2016 11:56:01 +0530]: <1sd24gpn> GPG: => about to
read 65536 bytes from GPG status
[22-Jul-2016 11:56:01 +0530]: <1sd24gpn> GPG: => read 0
bytes
[22-Jul-2016 11:56:01 +0530]: <1sd24gpn> GPG: selecting
streams
[22-Jul-2016 11:56:01 +0530]: <1sd24gpn> GPG: => got 1
[22-Jul-2016 11:56:01 +0530]: <1sd24gpn> GPG: GPG output
stream ready for reading
[22-Jul-2016 11:56:01 +0530]: <1sd24gpn> GPG: => about to
read 65536 bytes from GPG output
[22-Jul-2016 11:56:01 +0530]: <1sd24gpn> GPG: => read 0
bytes
[22-Jul-2016 11:56:01 +0530]: <1sd24gpn> GPG: END PROCESSING
[22-Jul-2016 11:56:01 +0530]: <1sd24gpn> GPG: CLOSING GPG
SUBPROCESS
[22-Jul-2016 11:56:01 +0530]: <1sd24gpn> GPG: STOPPING
GPG-AGENT DAEMON
[22-Jul-2016 11:56:01 +0530]: <1sd24gpn> GPG: GPG-AGENT
DAEMON STOPPED
===========================
OS: centos7.2, RC version: 1.2.0
I am not getting any other error in error log.
Thanks for any suggestion.
Regards,
I got the exact same error a few days ago. It appears that roundcube resets the php's "default include_path" variable, so installing Crypt_GPG via Pear in the php/lib dir doesn't help. Manually downlading the library in the enigma/lib dir solved for me.
I also dropped a note about this and enigma's configuration here http://notes.sagredo.eu/node/35#enigma