azureblue has asked for the wisdom of the Perl Monks concerning the following question:
I've set the path to the gpg binary, and specified all the options required to ensure the encryption requires no user input (--always-trust --no-permission-warning --home /path/to/keys) and verified this in a shell.$gpg->encrypt("Some plain text", $recipientID);
I've tried setting some environment variables (TERM=dumb, SHELL=/bin/sh and LANG=C) early on in my script on the recommendation of a colleague, but it made no difference.
The script has been in active use for a couple of years on a now obsolete RedHat distro, and is being migrated to a current machine so the modules have all seen some updates. I'd rather not make any big changes to my script that are going to require changes at the recipient.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Module works when run in a shell, but not when run as a CGI
by bart (Canon) on Jul 20, 2007 at 10:45 UTC | |
by azureblue (Initiate) on Jul 20, 2007 at 10:50 UTC | |
|
Re: Module works when run in a shell, but not when run as a CGI
by atemon (Chaplain) on Jul 20, 2007 at 11:48 UTC | |
by azureblue (Initiate) on Jul 20, 2007 at 12:20 UTC | |
by atemon (Chaplain) on Jul 20, 2007 at 12:50 UTC | |
by azureblue (Initiate) on Jul 20, 2007 at 13:07 UTC | |
by atemon (Chaplain) on Jul 20, 2007 at 13:15 UTC |