Update: While I can open and write to a file in the current (cgi) directory from within the program when running as a CGI, gpg as called from the CGI doesn't seem to write anything. I tried:
`gpg --export -a --batch -o /home/...../cgi-bin/NEW`;
but it only works on command line fwiw.
I think I got it to do something a little while ago but it would only create a zero byte file.
I wonder how I'd go about trying to do this without using GnuPG or any other module, just the cgi talking to the binary..
Ah yes, I tried $gpg->export_keys( armor => 1, output => "keyring.pub" );
which creates a file in the appropriate place but one of zero bytes only. Permissions were cool.
Update: By cool I mean that it could write something. I could write successfully to files from the CGI. But it is not cool that only a zero byte file came out.. I tried it in different directories, and made a file chmod 777 in a 777 directory and gpg still wouldn't write to it from CGI. I have a whole application working on this system already so I don't think it is permissions.. I'm wondering if Io::Pipe will work.
|