I haven't used gpg in awhile, but i seem to remember having to feed it entropy by typing on the keyboard and moving the mouse. I can't remember why, but hope that helps.

On 02/03/18 12:05, Thuban wrote:
* Thuban <[email protected]> le [03-02-2018 18:38:27 +0100]:
* jul <jul@localhost> le [03-02-2018 12:47:19 +0100]:
Thuban <[email protected]> wrote:

I can't figure exactly how to configure it with httpd chroot, even after
copying gpg binaries in chroot.
Hello Thuban

To know what to copy in the chroot, ldd(1) is your friend.
thanks, it works as expected now.

For the record :

        cd /var/www
        mkdir -p usr/local/lib
        mkdir -p usr/local/bin
        mkdir -p usr/lib
        mkdir -p usr/libexec
        mkdir dev

        # create /dev/null
        mknod dev/null c 1 3
        chmod 666 dev/null
        chown -R www:daemon dev/

        # copy files
        for i in $(ldd /usr/local/bin/gpg2 | awk '{if(NR>2)print $7}'); do cp 
$i $(echo $i | cut -d'/' -f2); done
        for i in $(ldd /usr/local/bin/gpg-agent | awk '{if(NR>2)print $7}'); do 
cp $i $(echo $i | cut -d'/' -f2); done
        # pinentry if required
        cp /usr/local/bin/pinentry usr/local/bin/

        cd plugins/enigma
        cp config.inc.php.dist config.inc.php
        #comment location of gpg binary

well, almost work.

GPG complains that he can't access to any entropy :

        GPG: ERROR: gpg: Fatal: no entropy gathering module detected

Any idea ?

Creating dev/urandom doesn't help


Reply via email to