Using the GnuPG perl module from the command line - all three functions - gen_key, encrypt, decrypt - work GREAT. From the web, can't get past encrypt.
When you drop some data in a form, it encrypts the data correctly but DIES. Pfft. The files are not deleted, nothing printed to output.
my $gpg = new GnuPG();
$gpg->encrypt (
recipient=>'This@that.com',
plaintext => '/path/to/original.txt',
output => '/path/to/encrypted_output_file.txt',
armor => 1,
passphrase => 'w00Hoo'
);
That's all there is to it. As I said, testing this from various angles it works GREAT on the cmd line but dies right after this, and ther's nothing superflous that could cause it.
Any ideas?
We expiramented with straight exec calls, etc., and had problems on and off until we verified that ALL the files invloved were owned by Apache. Once we did that it worked fine. Now I need to apply that to the calls to GnuPG.pm, because I'd really rather use that than some `rediculously long -a -n -d switch-ridden system call`! :D