aboboras has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to use linux GPG on a Perl script but i can't get it working via Apache/CGI.
Iv'e tried:
1 - simple command line with `` it gives a fatal error if no --homedir is specified and permission error if --homedir is specified (/home/<user>/.gnupg).
2 - Crypt::GPG , seemed like the perfect solution but it does not work and it seems there is no way to read errors to figure it out.
3 - GnuPg module does not work. I try to encrypt and i get "Can't call method "encrypt" on an undefined value", anyway according to the documentation import function does not return key id of the imported pub key, i do need the key id on importing.
|
|---|