gpg im CGI Script

Dr. Bodo Zimmermann
Wed, 5 Jul 2000 18:06:37 +0200

In a CGI-Script (named, e.g.) I have called:

system "gpg -se -r dozi /tmp/TEST";

After   https://dozi2/cgi-bin/

I got in  error_log des httpd:

gpg: Warning: using insecure memory!
gpg: fatal: ~/.gnupg: canīt create directory: no such file or directory
secmem usage: 0/0 bytes in 0/0 blocks of pool 0/16384

What should I do in order to get /tmp/TEST.gpg
which I got when running the CGI script directly from command line?

P.S. My idea is, to make an "upload"  of plain text via an SSL secured browser
an encrypt the uploaded file /tmp/TEST immediately after the upload, then
deleting  the plain file /tmp/TEST

I know there is a securty hole, but as long as WIN-gnupg doesn`t work ......


Bodo Zimmermann

IWKA Informationssysteme GmbH
Tel +49 7244 968 260    FAX +49 7244 968 370

Dr Bodo Zimmermann