Cannot encrypt/decrypt zip-Files correctly (Andreas)
Leigh S. Jones
Wed Jun 5 03:58:02 2002
I haven't tackled this problem yet, but I can venture a guess.
GnuPG will allow a command line that contains the "--homedir
It also allows you to use a different option file from the usual one
with the command
line option "--options [filename]". You can use a directory with
for the user that your web server logs in as.
----- Original Message -----
Sent: Tuesday, June 04, 2002 6:28 PM
Subject: Re: Cannot encrypt/decrypt zip-Files correctly (Andreas)
> Does someone now, what I have to do, if my pgp is run by the
> has no home-directory, no keyrings, no keys, if I just want to get
> following script running:
> % That creates the file 'data.gpg', which I can decrypt an my PC. On
> this should look something like this:
> % <?
> % system( "gzip -c file.htm | gpg -o
> /path/to/file/data.gpg -e --default-recipient andreas");
> % ?>
> If I only compress a file with gzip, there is no problem, for
> system( "gzip -c file.htm > file.sql");
> this works, but pgp doesnīt and I donīt know why. The same code in
> works perfectly ?!?!
> David T-G said:
> % ... you've neglected an important part: when the php script is
> % run by the web server, and the web server is not you, and so gpg
> % home directory, no keyrings, and no keys.
> But how can I get this information into my code? Does someone know
> -- Andreas
> Gnupg-users mailing list