Scripting and CGI use of GPG

Lennert Buytenhek
Tue, 31 Aug 1999 10:19:05 +0200 (CEST)

On Mon, 30 Aug 1999 wrote:

> OK, I've been tearing my hair out over a simple implementation of a Perl
> CGI which uses GPG. I've got this test CGI:
> If I run it on the command line (as the user which the web server runs
> under), I get the expected out (i.e., the environment followed by my
> encrypted 'blah').
> If I run it as a CGI through Apache, I only get the environment and not
> any encrypted message! For some reason, GPG doesn't run when it is in a
> CGI for me. :'( I've made sure that my key is available for the user which
> the web server is running as, and have done everything else I can think
> of.
What if you redirect stderr to stdout? How does gpg find your keyring? Did you do a 'export HOME=/home/myname' ? Greetings, Lennert