Discussion:
[Citrusdb-users] (no subject)
d***@badbison.com
2010-05-23 23:04:17 UTC
Permalink
I'm having real trouble with the keys

when I execute the command it seems to write the key to /root/.gnupg

my config files looks like this
$gpg_command = "/usr/bin/gpg --homedir /root/.gnupg --armor --batch -e -r
'citrusdb'";
$gpg_decrypt = "/usr/bin/gpg --homedir /root/.gnupg --passphrase-fd 0
--yes --no-tty --skip-verify --decrypt";
$gpg_sign = "/usr/bin/gpg --homedir /root/.gnupg --passphrase-fd 0 --yes
--no-tty --clearsign -u 'citrusdb'";

citrusdb was the real name i gave the key gen.

but when I try to store a card number i get this error:

Credit Card Encryption Error: error: gpg: WARNING: unsafe ownership on
homedir `/root/.gnupg' gpg: failed to create temporary file
`/root/.gnupg/.#lk0x8117040.badbuntu.badbison.co.uk.6225': Permission
denied gpg: keyblock resource `/root/.gnupg/secring.gpg': general error
gpg: failed to create temporary file
`/root/.gnupg/.#lk0x8117040.badbuntu.badbison.co.uk.6225': Permission
denied gpg: keyblock resource `/root/.gnupg/pubring.gpg': general error
gpg: citrusdb: skipped: public key not found gpg: [stdin]: encryption
failed: public key not found


I bought the manual but that didn't make things much clearer.
i'd really appreciate some help. thanks

dave
Paul Yasi
2010-05-24 10:12:11 UTC
Permalink
I think your keyring is probably owned by a different user than the
one that the web server is running as. You must change the
permissions of the keyring files to allow read/write access from the
web server account.

I think the permissions below should work, though I haven't tested
them recently.

chmod 777 .gnupg

cd .gnupg
chmod 604 random_seed
chmod 644 pubring.gpg
chmod 644 secring.gpg
chmod 644 trustdb.gpg

Paul
Post by d***@badbison.com
I'm having real trouble with the keys
when I execute the command it seems to write the key to /root/.gnupg
my config files looks like this
$gpg_command = "/usr/bin/gpg --homedir /root/.gnupg --armor --batch -e -r
'citrusdb'";
$gpg_decrypt = "/usr/bin/gpg --homedir /root/.gnupg --passphrase-fd 0
--yes --no-tty --skip-verify --decrypt";
$gpg_sign = "/usr/bin/gpg --homedir /root/.gnupg --passphrase-fd 0 --yes
--no-tty --clearsign -u 'citrusdb'";
citrusdb was the real name i gave the key gen.
Credit Card Encryption Error: error: gpg: WARNING: unsafe ownership on
homedir `/root/.gnupg' gpg: failed to create temporary file
`/root/.gnupg/.#lk0x8117040.badbuntu.badbison.co.uk.6225': Permission
denied gpg: keyblock resource `/root/.gnupg/secring.gpg': general error
gpg: failed to create temporary file
`/root/.gnupg/.#lk0x8117040.badbuntu.badbison.co.uk.6225': Permission
denied gpg: keyblock resource `/root/.gnupg/pubring.gpg': general error
gpg: citrusdb: skipped: public key not found gpg: [stdin]: encryption
failed: public key not found
I bought the manual but that didn't make things much clearer.
i'd really appreciate some help. thanks
dave
------------------------------------------------------------------------------
_______________________________________________
Citrusdb-users mailing list
https://lists.sourceforge.net/lists/listinfo/citrusdb-users
--
The CitrusDB Project | http://www.citrusdb.org
Open Source Customer Care & Billing System
David Boutcher
2010-05-30 12:48:39 UTC
Permalink
Thanks Paul, works perfect now I think.

There's a lot I want to do with citrus.

If I want users to be able to make payment, what's the easiest way to
do this? I've always used paypal previously but I understand this
isn't so easy with citrus?

Thanks

David

_______________________
Post by Paul Yasi
I think your keyring is probably owned by a different user than the
one that the web server is running as. You must change the
permissions of the keyring files to allow read/write access from the
web server account.
I think the permissions below should work, though I haven't tested
them recently.
chmod 777 .gnupg
cd .gnupg
chmod 604 random_seed
chmod 644 pubring.gpg
chmod 644 secring.gpg
chmod 644 trustdb.gpg
Paul
Post by d***@badbison.com
I'm having real trouble with the keys
when I execute the command it seems to write the key to /root/.gnupg
my config files looks like this
$gpg_command = "/usr/bin/gpg --homedir /root/.gnupg --armor --batch -e -r
'citrusdb'";
$gpg_decrypt = "/usr/bin/gpg --homedir /root/.gnupg --passphrase-fd 0
--yes --no-tty --skip-verify --decrypt";
$gpg_sign = "/usr/bin/gpg --homedir /root/.gnupg --passphrase-fd 0 --yes
--no-tty --clearsign -u 'citrusdb'";
citrusdb was the real name i gave the key gen.
Credit Card Encryption Error: error: gpg: WARNING: unsafe ownership on
homedir `/root/.gnupg' gpg: failed to create temporary file
`/root/.gnupg/.#lk0x8117040.badbuntu.badbison.co.uk.6225': Permission
denied gpg: keyblock resource `/root/.gnupg/secring.gpg': general error
gpg: failed to create temporary file
`/root/.gnupg/.#lk0x8117040.badbuntu.badbison.co.uk.6225': Permission
denied gpg: keyblock resource `/root/.gnupg/pubring.gpg': general error
gpg: citrusdb: skipped: public key not found gpg: [stdin]: encryption
failed: public key not found
I bought the manual but that didn't make things much clearer.
i'd really appreciate some help. thanks
dave
---
---
---
---------------------------------------------------------------------
_______________________________________________
Citrusdb-users mailing list
https://lists.sourceforge.net/lists/listinfo/citrusdb-users
--
The CitrusDB Project | http://www.citrusdb.org
Open Source Customer Care & Billing System
---
---
---
---------------------------------------------------------------------
_______________________________________________
Citrusdb-users mailing list
https://lists.sourceforge.net/lists/listinfo/citrusdb-users
Loading...