Ben Monypenny
2010-02-19 14:59:05 UTC
Hi Paul,
Thanks for your extensive answer yesterday. It was very helpful.
I have been encountering problems configuring my gpg key.
I have created a 1024 bit GPG key using gpg --gen-key with option [1]
DSA and Elgamal and 0 as the expiration time (no expiry). This has
stored the following files in the /.gnupg folder:
gpg.conf
pubring.gpg
pubring.gpg~
random_seed
secring.gpg
trustdb.gpg
I have added the following in /include/config.inc.php:
$gpg_command = "/usr/bin/gpg --homedir /home/myuser/.gnupg --armor
--batch -e -r 'CitrusDB'"; <=====replaced CitrusDB here with 'Real Name'
field from gpg --gen-key command
$gpg_decrypt = "/usr/bin/gpg --homedir /home/myuser/.gnupg
--passphrase-fd 0 --yes --no-tty --skip-verify --decrypt";
$gpg_sign = "/usr/bin/gpg --homedir /home/myuser/.gnupg --passphrase-fd
0 --yes --no-tty --clearsign -u 'CitrusDB'"; <=====replaced CitrusDB
here with 'Real Name' field from gpg --gen-key command
When attempting to export a credit card batch in CitrusDB I have been
getting the error:
message_decrypt failed: eof
I opened up the permissions on the files in the /.gnupg folder but now I
get the error:
010-02-19Signature Error: error: gpg: WARNING: unsafe permissions on
homedir `/home/myuser/.gnupg'
Do you have any idea where I have been going wrong?
Many thanks,
Ben Monypenny
Thanks for your extensive answer yesterday. It was very helpful.
I have been encountering problems configuring my gpg key.
I have created a 1024 bit GPG key using gpg --gen-key with option [1]
DSA and Elgamal and 0 as the expiration time (no expiry). This has
stored the following files in the /.gnupg folder:
gpg.conf
pubring.gpg
pubring.gpg~
random_seed
secring.gpg
trustdb.gpg
I have added the following in /include/config.inc.php:
$gpg_command = "/usr/bin/gpg --homedir /home/myuser/.gnupg --armor
--batch -e -r 'CitrusDB'"; <=====replaced CitrusDB here with 'Real Name'
field from gpg --gen-key command
$gpg_decrypt = "/usr/bin/gpg --homedir /home/myuser/.gnupg
--passphrase-fd 0 --yes --no-tty --skip-verify --decrypt";
$gpg_sign = "/usr/bin/gpg --homedir /home/myuser/.gnupg --passphrase-fd
0 --yes --no-tty --clearsign -u 'CitrusDB'"; <=====replaced CitrusDB
here with 'Real Name' field from gpg --gen-key command
When attempting to export a credit card batch in CitrusDB I have been
getting the error:
message_decrypt failed: eof
I opened up the permissions on the files in the /.gnupg folder but now I
get the error:
010-02-19Signature Error: error: gpg: WARNING: unsafe permissions on
homedir `/home/myuser/.gnupg'
Do you have any idea where I have been going wrong?
Many thanks,
Ben Monypenny