Mailing List Archive

Executing GPG Please help!
Hi list!
I4m trying to encrypt a document with GPG using a Php-Script.
Now I4ve created some keys and exported them.
The Script executes this command: "gpg -e -r test@test.com Test.doc".
This works fine when executing in the console.
But on Apache it outputs an error message logged in httpd_error_log:

gpg: Warning: using insecure memory!
gpg: //.gnupg: can't create directory: Permission denied
gpg: keyblock resource `//.gnupg': file open error
gpg: //.gnupg: can't create directory: Permission denied
gpg: keyblock resource `//.gnupg': file open error
gpg: test@test.com: skipped: public key not found
gpg: Rechnung.xml: encryption failed: public key not found

The key is definitely there, the permissions are set to all users.
Can anybody help me with this? What directories it tries to
create, and why it doesn4t find the public key?

Thank you in advance and sorry my english ... : )
Re: Executing GPG Please help! [ In reply to ]
> Berkant Özdemir:

> The Script executes this command: "gpg -e -r test@test.com Test.doc".

"gpg -e -r test@test.com < Test.doc".

clemens
Re: Executing GPG Please help! [ In reply to ]
On Sat, 10 Jun 2000, Berkant Özdemir wrote:

> gpg: Warning: using insecure memory!
> gpg: //.gnupg: can't create directory: Permission denied
> gpg: keyblock resource `//.gnupg': file open error

Make sure that you can access the keyrings. Either set $HOME
or pass "--homedir somedir" to gpg.

Werner

--
Werner Koch OpenPGP key 621CC013
OpenIT GmbH tel +49 211 239577-0
Birkenstr. 12 email wk@OpenIT.de
D-40233 Duesseldorf http://www.OpenIT.de
RE: Executing GPG Please help! [ In reply to ]
Where are the keyrings kept in a default installation?

thanks.


>-----Original Message-----
>From: Werner Koch [mailto:wk@gnupg.org]
>Sent: Monday, June 12, 2000 3:43 AM
>To: gnupg-users
>Subject: Re: Executing GPG Please help!
>
>
>On Sat, 10 Jun 2000, Berkant Özdemir wrote:
>
>> gpg: Warning: using insecure memory!
>> gpg: //.gnupg: can't create directory: Permission denied
>> gpg: keyblock resource `//.gnupg': file open error
>
>Make sure that you can access the keyrings. Either set $HOME
>or pass "--homedir somedir" to gpg.
>
> Werner
>
>--
>Werner Koch OpenPGP key 621CC013
>OpenIT GmbH tel +49 211 239577-0
>Birkenstr. 12 email wk@OpenIT.de
>D-40233 Duesseldorf http://www.OpenIT.de
>
RE: Executing GPG Please help! [ In reply to ]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 12 Jun 2000, Ed Padin wrote:

> Date: Mon, 12 Jun 2000 13:36:44 -0400
> From: Ed Padin <epadin@wagweb.com>
> To: gnupg-users <gnupg-users@gnupg.org>
> Subject: RE: Executing GPG Please help!
> Resent-Date: Mon, 12 Jun 2000 19:55:31 +0200
> Resent-From: gnupg-users@gnupg.org
>
> Where are the keyrings kept in a default installation?

Every user has his own public and secret keyrings.

$HOME/.gnupg/pubring.gpg
$HOME/.gnupg/secring.gpg

- --
"The Funk, the whole Funk, and nothing but the Funk."
Billy Donahue <mailto:billy@dadadada.net>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: Made with pgp4pine 1.75

iD8DBQE5RTHa+2VvpwIZdF0RAmrbAKCS/kFk37ZThQZr4RXYp6w8MShtVQCeItBg
1SvEbQvlqTb9IbvtnhGuuY8=
=TLHw
-----END PGP SIGNATURE-----