You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by NWB <ni...@ntlworld.com> on 2012/12/12 17:52:50 UTC
Re: GnuPG module producing empty files
I had this problem recently and found it was due to mod_perl running as user
"apache" which does not have a home directory in the same way that the
script running under cgi-bin did. Use of homedir in the
$gnupg->options->hash_init line sorted this out though. I guess an
environment variable GNUPGHOME may be a better way to go when I've finished
with this.
Laurent MARTIN wrote:
>
> Hi!
>
> I've recently upgraded one of my old website to mod_perl
> (ModPerl::PerlRun) and I'm not able to make GnuPG (0.10) work
> properly :/ As soon as I try to encrypt a plaintext file, I get an
> empty encrypted file. See below what I get in error log with the
> 'trace' option set to true:
> protocol error: expected SHM_GET_XXX got \n at /usr/lib/perl5/
> site_perl/5.8.5/GnuPG.pm line 154
>
> Any clue? Thanks in advance :)
>
> --
> Laurent MARTIN
>
--
View this message in context: http://old.nabble.com/GnuPG-module-producing-empty-files-tp25909395p34789227.html
Sent from the mod_perl - General mailing list archive at Nabble.com.