This is the debug log for the part that gives error:
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: OPENING GPG SUBPROCESS
WITH THE FOLLOWING COMMAND:
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: /usr/local/bin/gpg
--status-fd '3' --command-fd '4' --no-secmem-warning --no-tty
--no-default-keyring --no-options --always-trust --homedir
'/tmp/enigma/uten...@mail.qa.schema31.it' --version
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: BEGIN PROCESSING
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: selecting streams
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => got 1
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: GPG output stream ready
for reading
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => about to read 8192
bytes from GPG output
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => read 606 bytes
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: selecting streams
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => got 3
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: GPG output stream ready
for reading
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => about to read 8192
bytes from GPG output
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => read 0 bytes
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: GPG error stream ready for
reading
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => about to read 8192
bytes from GPG error
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => read 0 bytes
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: GPG status stream ready
for reading
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => about to read 8192
bytes from GPG status
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => read 0 bytes
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: END PROCESSING
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: CLOSING GPG SUBPROCESS
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: USING GPG 2.1.11 with PHP
5.6.21
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: OPENING GPG-AGENT
SUBPROCESS WITH THE FOLLOWING COMMAND:
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: /usr/local/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
'/usr/home/webmail-dev/www/gcloud-webmail/roundcube/vendor/pear-pear.php.net/Crypt_GPG/Crypt/GPG/../../bin/crypt-gpg-pinentry'
--homedir '/tmp/enigma/uten...@mail.qa.schema31.it'
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: CLOSING GPG-AGENT LAUNCH
PROCESS
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: GPG-AGENT LAUNCH PROCESS
CLOSED
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: OPENING GPG SUBPROCESS
WITH THE FOLLOWING COMMAND:
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: /usr/local/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 --homedir
'/tmp/enigma/uten...@mail.qa.schema31.it' --import
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: BEGIN PROCESSING
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: selecting streams
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => got 1
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: GPG is ready for input
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => about to write 3647
bytes to GPG input
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => wrote 3647 bytes
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => closing GPG input pipe
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: selecting streams
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => got 1
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: GPG error stream ready for
reading
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => about to read 8192
bytes from GPG error
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => read 86 bytes
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: ERROR: gpg: key B17C3A56:
public key "Utente di TEST <uten...@mail.qa.schema31.it>" imported
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => closing GPG input pipe
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: selecting streams
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => got 1
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: GPG status stream ready
for reading
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => about to read 8192
bytes from GPG status
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => read 142 bytes
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: STATUS: IMPORTED
40E0E761B17C3A56 Utente di TEST <uten...@mail.qa.schema31.it>
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: STATUS: IMPORT_OK 1
BCD716B06A540DD3E6577D0040E0E761B17C3A56
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => closing GPG input pipe
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: selecting streams
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => got 1
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: GPG error stream ready for
reading
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => about to read 8192
bytes from GPG error
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => read 201 bytes
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: ERROR: gpg: key
B17C3A56/B17C3A56: error sending to agent: No pinentry
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: ERROR: gpg: error building
skey array: No pinentry
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: ERROR: gpg: Total number
processed: 3
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: ERROR: gpg: imported: 1
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: ERROR: gpg: secret keys
read: 3
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => closing GPG input pipe
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: selecting streams
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => got 3
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: GPG output stream ready
for reading
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => about to read 8192
bytes from GPG output
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => read 0 bytes
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: GPG error stream ready for
reading
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => about to read 8192
bytes from GPG error
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => read 0 bytes
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: GPG status stream ready
for reading
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => about to read 8192
bytes from GPG status
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => read 50 bytes
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: STATUS: IMPORT_RES 3 0 1 0
0 0 0 0 0 3 0 0 0 0 0
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => closing GPG input pipe
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: selecting streams
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => got 1
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: GPG status stream ready
for reading
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => about to read 8192
bytes from GPG status
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => read 0 bytes
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => closing GPG input pipe
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: END PROCESSING
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: CLOSING GPG SUBPROCESS
[26-May-2016 11:55:36 +0200]: <bcqpqb4l> GPG: => subprocess returned an
unexpected exit code: 2
---
Andrea Brancatelli
Schema31 S.p.a.
Responsabile IT
ROMA - BO - FI - PA
ITALY
Tel: +39.06.98.358.472
Cell: +39.331.2488468
Fax: +39.055.71.880.466
Società del Gruppo SC31 ITALIA
Il 2016-05-25 18:34 Andrea Brancatelli ha scritto:
> Hello,
>
> we're trying to set up enigma/gpg on a test machine but I can't get it to
> work.
>
> Everything seems to work ok until I try to create a private key.
>
> Since this is a test platform I just everything enigma related in /tmp/enigma
> ....
>
> I have a test user uten...@mail.qa.schema31.it. After I go into settings ->
> pgp keys and i interact there i find this:
>
> [root@fosforo /tmp/enigma]# find . -ls
> 1295535 8 drwxrwxrwx 3 webmail-dev wheel 512 May 25 18:15 .
> 1295536 8 drwx------ 3 www wheel 512 May 25 18:22
> ./uten...@mail.qa.schema31.it
> 1295537 8 drwx------ 2 www wheel 512 May 25 18:15
> ./uten...@mail.qa.schema31.it/private-keys-v1.d
> 1295540 16 -rw-r--r-- 1 www wheel 5061 May 25 18:21
> ./uten...@mail.qa.schema31.it/pubring.kbx
> 1295542 8 -rw-r--r-- 1 www wheel 2702 May 25 18:20
> ./uten...@mail.qa.schema31.it/pubring.kbx~
>
> not that creating the keys gives an error ("Unable to import key(s)! Internal
> error.") and in fact there's no private key in the relative folder...
>
> But the pubring is fine and round cube correctly reports a key as created
> with all sub keys informations.
>
> Obviously signing or encrypting doesn't work.
>
> gpg agent is correctly running....
>
> [root@fosforo /tmp/enigma/uten...@mail.qa.schema31.it]# ps -ax | grep gpg
> 21900 - Ss 0:00.00 /usr/local/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
> /usr/home/webmail-dev/www/gcloud-webmail/roundcube/vendor/pear-pear.php.net/Crypt_GPG/Crypt/GPG/../../bin/crypt-gpg-pinentry
> --homedir /tmp/enigma/uten...@mail.qa.schema31.it
>
> Any idea?
>
> ---
>
> Andrea Brancatelli
> Schema31 S.p.a.
> Responsabile IT
>
> ROMA - BO - FI - PA
> ITALY
> Tel: +39.06.98.358.472
> Cell: +39.331.2488468
> Fax: +39.055.71.880.466
> Società del Gruppo SC31 ITALIA
>
> Il 2016-05-22 20:30 Thomas Bruederli ha scritto:
>
>> - PGP encryption
>> There wasn't much feedback on the 1.2-beta version and the release
>> candidate which we consider a good sign. Some cleanup and
>> stabilization of the Enigma plugin just happened for the now stable
>> version.
>
> _______________________________________________
> Roundcube Development discussion mailing list
> dev@lists.roundcube.net
> http://lists.roundcube.net/mailman/listinfo/dev
_______________________________________________
Roundcube Development discussion mailing list
dev@lists.roundcube.net
http://lists.roundcube.net/mailman/listinfo/dev